Package org.xhtmlrenderer.layout
Class TextUtil
java.lang.Object
org.xhtmlrenderer.layout.TextUtil
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static String
capitalizeWords
(String text) private static String
doCapitalizeWords
(String text) static boolean
isFirstLetterSeparatorChar
(char c) static String
replaceChar
(String text, char newChar, int index) Replace character at the specified index by another.static String
transformFirstLetterText
(String text, CalculatedStyle style) (package private) static String
transformText
(String text, IdentValue transform, IdentValue fontVariant) static String
transformText
(String text, CalculatedStyle style)
-
Constructor Details
-
TextUtil
public TextUtil()
-
-
Method Details
-
transformText
-
transformText
-
transformFirstLetterText
-
replaceChar
Replace character at the specified index by another.- Parameters:
text
- Source textnewChar
- Replacement character- Returns:
- Returns the new text
-
isFirstLetterSeparatorChar
public static boolean isFirstLetterSeparatorChar(char c) -
capitalizeWords
-
doCapitalizeWords
-