Class WhiteSpaceUtil
java.lang.Object
com.itextpdf.styledxmlparser.util.WhiteSpaceUtil
Utility class for white-space handling methods that are used both in pdfHTML and the iText-core SVG module
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic String
Collapse all consecutive spaces of the passed String into single spacesstatic boolean
isNonEmSpace
(char ch) Checks if a character is white space value that is not em, en or similar special whitespace character.
-
Field Details
-
EM_SPACES
-
-
Constructor Details
-
WhiteSpaceUtil
public WhiteSpaceUtil()
-
-
Method Details
-
collapseConsecutiveSpaces
Collapse all consecutive spaces of the passed String into single spaces- Parameters:
s
- String to collapse- Returns:
- a String containing the contents of the input, with consecutive spaces collapsed
-
isNonEmSpace
public static boolean isNonEmSpace(char ch) Checks if a character is white space value that is not em, en or similar special whitespace character.- Parameters:
ch
- the character- Returns:
- true, if the character is a white space character, but no em, en or similar
-