Package com.vladsch.flexmark.util.format
Interface CharWidthProvider
-
public interface CharWidthProvider
-
-
Field Summary
Fields Modifier and Type Field Description static CharWidthProviderNULL
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description intgetCharWidth(char c)intgetSpaceWidth()default intgetStringWidth(@NotNull CharSequence chars)default intgetStringWidth(@NotNull CharSequence chars, @NotNull com.vladsch.flexmark.util.misc.CharPredicate zeroWidthChars)
-
-
-
Field Detail
-
NULL
static final CharWidthProvider NULL
-
-
Method Detail
-
getSpaceWidth
int getSpaceWidth()
-
getCharWidth
int getCharWidth(char c)
-
getStringWidth
default int getStringWidth(@NotNull @NotNull CharSequence chars)
-
getStringWidth
default int getStringWidth(@NotNull @NotNull CharSequence chars, @NotNull @NotNull com.vladsch.flexmark.util.misc.CharPredicate zeroWidthChars)
-
-