https://bugs.freedesktop.org/show_bug.cgi?id=43740

--- Comment #4 from sanada <yujis...@gmail.com> 2012-01-22 17:31:34 PST ---
for JAPANESE:
-------------

javaを例にして説明します。

サロゲートペア文字を扱う場合、任意の文字はchar型であるのに対して、任意のサロゲートペア文字はint型で扱う必要があります。

文字列の文字数をカウントする場合、前者はString.length()、後者はString.codePointCount(beginIndex,endIndex)を使用する必要があります。

http://d.hatena.ne.jp/t_gaisho/20101112/p1


しかし、後者に関しては厳密にカウントする場合にはjava.text.BreakIteratorを利用することが確実です。

http://d.hatena.ne.jp/t_gaisho/20101124/p1

-- 
Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
Libreoffice-bugs@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to