Package com.openhtmltopdf.layout
Class TextUtil
- java.lang.Object
-
- com.openhtmltopdf.layout.TextUtil
-
public class TextUtil extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTextUtil.DefaultCharacterBreakerstatic classTextUtil.DefaultToLowerTransformerstatic classTextUtil.DefaultToTitleTransformerA best effort implementation of title casing.static classTextUtil.DefaultToUpperTransformer
-
Constructor Summary
Constructors Constructor Description TextUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanisFirstLetterSeparatorChar(int currentChar)According to the CSS spec the first letter includes certain punctuation immediately preceding or following the actual first letter.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)
-
isFirstLetterSeparatorChar
public static boolean isFirstLetterSeparatorChar(int currentChar)
According to the CSS spec the first letter includes certain punctuation immediately preceding or following the actual first letter.- Parameters:
currentChar-- Returns:
-
-