]> granicus.if.org Git - icu/commitdiff
ICU-9766 Add doc comment regarding break iterators returning UText native indices.
authorAndy Heninger <andy.heninger@gmail.com>
Fri, 14 Dec 2012 18:52:15 +0000 (18:52 +0000)
committerAndy Heninger <andy.heninger@gmail.com>
Fri, 14 Dec 2012 18:52:15 +0000 (18:52 +0000)
X-SVN-Rev: 32966

icu4c/source/common/unicode/brkiter.h

index 646f33f9696a5c4a5ee3906dfb03fdab13cad5be..ac1db5fe02ff34fbcc6e96c4eb1489ce554b6b10 100644 (file)
@@ -182,6 +182,11 @@ public:
      * Utext that was passed as a parameter, but that the underlying text itself
      * must not be altered while being referenced by the break iterator.
      *
+     * All index positions returned by break iterator functions are
+     * native indices from the UText. For example, when breaking UTF-8
+     * encoded text, the break positions returned by next(), previous(), etc.
+     * will be UTF-8 string indices, not UTF-16 positions.
+     *
      * @param text The UText used to change the text.
      * @param status receives any error codes.
      * @stable ICU 3.4