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
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)
-
Constructor Details
-
TextUtil
public TextUtil()
-
-
Method Details
-
transformText
-
transformFirstLetterText
-
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:
-