aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/poi/util/StringUtil.java
Commit message (Collapse)AuthorAgeFilesLines
* 65206 - Migrate ant / maven to gradle buildAndreas Beeker2021-03-271-677/+0
| | | | | | | | update gradle files and project structure along https://github.com/centic9/poi/tree/gradle_build remove eclipse IDE project files remove obsolete record generator files git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1888111 13f79535-47bb-0310-9956-ffa450edef68
* [github-198] Remove jdk.charset module dependency for spreadsheets ↵PJ Fanning2020-12-191-1/+0
| | | | | | generation. Thanks to Robert Marcano. This closes #198 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1884631 13f79535-47bb-0310-9956-ffa450edef68
* Replace Allocate+System.arraycopy with Array.copyOf/Range and ↵Andreas Beeker2020-04-161-0/+3
| | | | | | IOUtils.safelyClone git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876640 13f79535-47bb-0310-9956-ffa450edef68
* #64350 - Sonar fix - "Iterator.next()" methods should throw ↵Andreas Beeker2020-04-141-34/+2
| | | | | | "NoSuchElementException" git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876525 13f79535-47bb-0310-9956-ffa450edef68
* Bug 60656 - Emf image support in slideshowsAndreas Beeker2020-04-051-44/+10
| | | | | | | | | | | | | - fixed WmfExtTextOut dx handling for variable text spacing - fixed WmfExtTextOut text position for (0,0) references based on the current/last path location - fixed WmfExtTextOut handling of symbol/wingdings charset (move ascii to unicode private area, because Java font loader maps the glyphs there) - and use existing workaround if the fonts aren't installed, i.e. use corresponding unicode characters of the logcial font then - provide option in PPTX2PNG to use given file input type, if the file magic is unknown - provide option in PPTX2PNG to render text as shapes in SVG, as dx handling (above) implemented via TextAttribute.TRACKING is not supported by batik source of the sample.wmf, which I've used: https://stackoverflow.com/questions/58726194/svg-rendering-with-batik-produce-broken-image git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1876136 13f79535-47bb-0310-9956-ffa450edef68
* fix result of multiplication cast to wider typeAlain Béarez2019-05-211-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859595 13f79535-47bb-0310-9956-ffa450edef68
* fix boxed variable is never nullAlain Béarez2019-05-211-7/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1859593 13f79535-47bb-0310-9956-ffa450edef68
* Code-style: Unify how arrays are specified from C-style to normal Java-styleDominik Stadler2018-12-251-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1849716 13f79535-47bb-0310-9956-ffa450edef68
* lgtm issuesPJ Fanning2018-12-081-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1848438 13f79535-47bb-0310-9956-ffa450edef68
* #61459 - HSLFShape.getShapeName() returns name of shapeType and not the ↵Andreas Beeker2018-04-201-0/+72
| | | | | | shape name git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1829656 13f79535-47bb-0310-9956-ffa450edef68
* use StandardCharsetsPJ Fanning2017-12-191-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1818628 13f79535-47bb-0310-9956-ffa450edef68
* use codepoint iterator in a few placesPJ Fanning2017-11-221-3/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1815998 13f79535-47bb-0310-9956-ffa450edef68
* add forbidden api checks for non-Locale toLowerCase and toUpperCasePJ Fanning2017-11-211-446/+470
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1815994 13f79535-47bb-0310-9956-ffa450edef68
* replace "".equals(string) with string.isEmpty() to avoid null strings ↵Javen O'Neal2017-10-181-1/+1
| | | | | | silently evaluating to false; most code should probably check string for null if it is not already git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1812476 13f79535-47bb-0310-9956-ffa450edef68
* Bug 61349 -- add more sanity checks when allocating byte[]Tim Allison2017-09-211-2/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1809169 13f79535-47bb-0310-9956-ffa450edef68
* Fix some warnings in unit testsDominik Stadler2017-09-161-3/+0
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808521 13f79535-47bb-0310-9956-ffa450edef68
* Remove unnecessary type arguments (Java 8)Dominik Stadler2017-09-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808516 13f79535-47bb-0310-9956-ffa450edef68
* Remove unnecessary initialization of membersDominik Stadler2017-09-161-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808510 13f79535-47bb-0310-9956-ffa450edef68
* javadoc: replace invalid self enclosing elementsPJ Fanning2017-07-171-2/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1802110 13f79535-47bb-0310-9956-ffa450edef68
* bug 50955 and bug 60953 improve Big5 reader; ensure one characterTim Allison2017-04-051-22/+0
| | | | | | per byte pair git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1790172 13f79535-47bb-0310-9956-ffa450edef68
* bug 50955 -- word 6.0 charset fixTim Allison2017-04-041-2/+30
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1790061 13f79535-47bb-0310-9956-ffa450edef68
* Eclipse automated refactor/cleanup: convert for loops to for-each loopsJaven O'Neal2016-10-201-1/+11
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765736 13f79535-47bb-0310-9956-ffa450edef68
* add StringUtil.count, inspired by Apache Commons Lang ↵Javen O'Neal2016-10-191-0/+20
| | | | | | StringUtils#countMatches and Python's str.count(substr) git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1765730 13f79535-47bb-0310-9956-ffa450edef68
* bug 59773: move loop invariants outside of loop or change for loops to ↵Javen O'Neal2016-07-031-2/+1
| | | | | | for-each loops git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1751131 13f79535-47bb-0310-9956-ffa450edef68
* Fix some compiler/IntelliJ warningsDominik Stadler2016-05-311-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1746274 13f79535-47bb-0310-9956-ffa450edef68
* reformat exclude classes regular expression for OOXMLLiteJaven O'Neal2016-04-171-0/+17
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1739643 13f79535-47bb-0310-9956-ffa450edef68
* bug 52949: add VBAMacroReader unit tests for H/XSLF, H/XWPF, and HGDF; OLE ↵Javen O'Neal2016-04-111-1/+17
| | | | | | directories as case-insensitive git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1738513 13f79535-47bb-0310-9956-ffa450edef68
* sonar fixesAndreas Beeker2016-03-101-6/+5
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1734337 13f79535-47bb-0310-9956-ffa450edef68
* Remove a superfluous/bloated log function, which String.format can do better ↵Andreas Beeker2016-03-091-83/+2
| | | | | | and is only used once ... git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1734310 13f79535-47bb-0310-9956-ffa450edef68
* Fix inconsistent indent/whitespaceNick Burch2015-09-011-143/+142
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700647 13f79535-47bb-0310-9956-ffa450edef68
* Fix some Forbidden APIs errorsNick Burch2015-09-011-7/+4
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1700646 13f79535-47bb-0310-9956-ffa450edef68
* Bug 58040 - Log ForgingAndreas Beeker2015-06-211-1/+2
| | | | | | and marked POILogger/POILogFactory internal git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1686748 13f79535-47bb-0310-9956-ffa450edef68
* Bug 49541 - Mapping of symbol characters to unicode equivalent Andreas Beeker2014-12-291-0/+247
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1648415 13f79535-47bb-0310-9956-ffa450edef68
* Charset.forName() for known encodings makes catching ↵Andreas Beeker2014-12-271-59/+36
| | | | | | | | | | UnknownEncodingException obsolete Unify UTF-16LE conversion to StringUtil BugFix for RecordInputStream.readFully in combination with continuing records BugFix for integration tests - fix pathname for handler/exclude lookup on windows git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1648032 13f79535-47bb-0310-9956-ffa450edef68
* Improve error message, and fix generics warningsNick Burch2010-01-281-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@904049 13f79535-47bb-0310-9956-ffa450edef68
* Improved how HSMF handles multiple recipientsNick Burch2010-01-121-0/+27
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@898295 13f79535-47bb-0310-9956-ffa450edef68
* More FeatRecord supportNick Burch2010-01-031-0/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@895487 13f79535-47bb-0310-9956-ffa450edef68
* Bugzilla 47962 - Fixed some potential NPEs. Avoided unnecessary creation of ↵Josh Micich2009-10-081-18/+18
| | | | | | box instances. Applied patch with mods git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@823348 13f79535-47bb-0310-9956-ffa450edef68
* Patch 46301 - (from Patrick Cheng) - added some pivot table records: SXDI, ↵Josh Micich2008-11-261-1/+41
| | | | | | | | SXVDEX, SXPI, SXIDSTM, SXVIEW, SXVD, SXVS, and others. Improved command line parsing in BiffViewer git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@721007 13f79535-47bb-0310-9956-ffa450edef68
* javadocs cleanupYegor Kozlov2008-11-071-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@712196 13f79535-47bb-0310-9956-ffa450edef68
* Converted ConstantValueParser to use plain Strings instead of UnicodeStringsJosh Micich2008-11-051-0/+9
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@711513 13f79535-47bb-0310-9956-ffa450edef68
* Further conversion of Ptg classes to use LittleEndian input/output interfacesJosh Micich2008-10-241-0/+21
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@707525 13f79535-47bb-0310-9956-ffa450edef68
* Fix for unicode string bug in StyleRecord. Improvements to WriteAccessRecord.Josh Micich2008-10-241-56/+41
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@707519 13f79535-47bb-0310-9956-ffa450edef68
* Fix for bug 45778 - made ObjRecord read sub-record ftLbsData properlyJosh Micich2008-10-231-138/+131
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@707450 13f79535-47bb-0310-9956-ffa450edef68
* Start to support HPBF hyperlinksNick Burch2008-08-311-1/+1
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@690726 13f79535-47bb-0310-9956-ffa450edef68
* String Continue records support (with test), from bug #41064Nick Burch2007-12-041-1/+2
| | | | git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@600995 13f79535-47bb-0310-9956-ffa450edef68
* Applying the copy2license.pl script (with tiny modification to allow for ↵Henri Yandell2006-12-221-5/+6
| | | | | | more whitespace than it expects in the POI header) to all files. ant jar succeeds, and the svn diff has been verified by eye. Still more files to do, this is the first pass. git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@489730 13f79535-47bb-0310-9956-ffa450edef68
* If given an empty (but not null) byte array to get a whole string from, ↵Nick Burch2006-05-101-0/+2
| | | | | | return an empty string rather than an exception git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@405755 13f79535-47bb-0310-9956-ffa450edef68
* StringUtil javadocs, supplied by Nick Burch, thanks. bug 34922Avik Sengupta2005-05-161-32/+39
| | | | git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353681 13f79535-47bb-0310-9956-ffa450edef68
* refactoredAvik Sengupta2005-05-021-3/+3
| | | | git-svn-id: https://svn.apache.org/repos/asf/jakarta/poi/trunk@353665 13f79535-47bb-0310-9956-ffa450edef68