クラス CharUtils

java.lang.ObjectSE
org.springframework.shell.test.jediterm.terminal.util.CharUtils

public class CharUtils extends ObjectSE
  • フィールドの詳細

  • メソッドの詳細

    • 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

      public static void appendBuf(StringBuilderSE sb, char[] bs, int begin, int length)
    • 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

      public static CharBuffer heavyDecCompatibleBuffer(CharBuffer buf)
    • toHumanReadableText

      public static StringSE toHumanReadableText(StringSE escapeSequence)