List of utility methods to do String Cut
int len = str.getBytes(charsetName).length; if (len > length) { char[] chars = str.toCharArray(); int i = 0; for (; i < chars.length; i++) { String tstr = new String(chars, 0, i + 1); if (tstr.getBytes(charsetName).length > length) { i--; ...
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル