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 class
TextUtil.DefaultCharacterBreaker
static class
TextUtil.DefaultToLowerTransformer
static class
TextUtil.DefaultToTitleTransformer
A best effort implementation of title casing.static class
TextUtil.DefaultToUpperTransformer
-
Constructor Summary
Constructors Constructor Description TextUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
isFirstLetterSeparatorChar(int currentChar)
According to the CSS spec the first letter includes certain punctuation immediately preceding or following the actual first letter.static java.lang.String
transformFirstLetterText(java.lang.String text, CalculatedStyle style)
static java.lang.String
transformText(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:
-
-