code: private int[] toCodePointArray(final String text) {
          final int length = text.length();
          final int codePointLength = text.codePointCount(0, length);
  
          int[] array = new int[codePointLength];
          for(int i=0, j=0, codePoint=0; i < length; j++, i+=Character.charCount(codePoint)) {
              codePoint = text.codePointAt(i);
              array[j] = codePoint;
          }
  
          return array;
      }
docs: コードポイントの配列に変換する。
  @param text
  @return