Package org.xhtmlrenderer.layout
Class TextUtil
- java.lang.Object
-
- org.xhtmlrenderer.layout.TextUtil
-
public class TextUtil extends Object
-
-
Constructor Summary
Constructors Constructor Description TextUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisFirstLetterSeparatorChar(char c)static StringreplaceChar(String text, char newChar, int index)Replace character at the specified index by another.static StringtransformFirstLetterText(String text, CalculatedStyle style)static StringtransformText(String text, CalculatedStyle style)
-
-
-
Method Detail
-
transformText
public static String transformText(String text, CalculatedStyle style)
-
transformFirstLetterText
public static String transformFirstLetterText(String text, CalculatedStyle style)
-
replaceChar
public static String replaceChar(String text, char newChar, int index)
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)
-
-