Package com.openhtmltopdf.layout
Class TextUtil
- java.lang.Object
-
- com.openhtmltopdf.layout.TextUtil
-
public class TextUtil extends java.lang.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 java.lang.StringtransformFirstLetterText(java.lang.String text, CalculatedStyle style)static java.lang.StringtransformText(java.lang.String text, CalculatedStyle style)
-
-
-
Method Detail
-
transformText
public static java.lang.String transformText(java.lang.String text, CalculatedStyle style)
-
transformFirstLetterText
public static java.lang.String transformFirstLetterText(java.lang.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:
-
-