クラス CharUtils
java.lang.ObjectSE
org.springframework.shell.test.jediterm.terminal.util.CharUtils
ネストされたクラスの要約
ネストされたクラスフィールドのサマリー
フィールド修飾子と型フィールド説明static final charstatic final charstatic final charstatic byte[]メソッドのサマリー
修飾子と型メソッド説明static voidappendBuf(StringBuilderSE sb, char[] bs, int begin, int length) static CharUtils.CharacterTypeappendChar(StringBuilderSE sb, CharUtils.CharacterType last, char c) static intcountDoubleWidthCharacters(char[] buf, int start, int length, boolean ambiguousIsDWC) static StringSEgetNonControlCharacters(int maxChars, char[] buf, int offset, int charsLength) static intgetTextLengthDoubleWidthAware(char[] buffer, int start, int length, boolean ambiguousIsDWC) 全角 (全角) 文字を 2、標準角 (半角) 文字を 1 として文字長の合計として文字長を計算します。(http://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms を読む)static CharBufferstatic booleanisDoubleWidthCharacter(int c, boolean ambiguousIsDWC) static byte[]makeCode(int... bytesAsInt) static StringSEtoHumanReadableText(StringSE escapeSequence)
フィールドの詳細
メソッドの詳細
getNonControlCharacters
public static StringSE getNonControlCharacters(int maxChars, char[] buf, int offset, int charsLength) countDoubleWidthCharacters
public static int countDoubleWidthCharacters(char[] buf, int start, int length, boolean ambiguousIsDWC) appendChar
public static CharUtils.CharacterType appendChar(StringBuilderSE sb, CharUtils.CharacterType last, char c) appendBuf
makeCode
public static byte[] makeCode(int... bytesAsInt) getTextLengthDoubleWidthAware
public static int getTextLengthDoubleWidthAware(char[] buffer, int start, int length, boolean ambiguousIsDWC) 全角 (全角) 文字を 2、標準角 (半角) 文字を 1 として文字長の合計として文字長を計算します。(http://en.wikipedia.org/wiki/Halfwidth_and_fullwidth_forms を読む)isDoubleWidthCharacter
public static boolean isDoubleWidthCharacter(int c, boolean ambiguousIsDWC) heavyDecCompatibleBuffer
toHumanReadableText