To comment on the following update, log in, then open the issue:
http://www.openoffice.org/issues/show_bug.cgi?id=76869
                 Issue #|76869
                 Summary|UTF-16 iterator for 32-bit code points.
               Component|porting
                 Version|current
                Platform|All
                     URL|
              OS/Version|All
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|ENHANCEMENT
                Priority|P3
            Subcomponent|code
             Assigned to|sb
             Reported by|er





------- Additional comments from [EMAIL PROTECTED] Wed May  2 16:38:30 +0000 
2007 -------
Hi Stephan,

For break iterator implementation in languages using not only the
Unicode BMP and surrogates we need an iterator or methods at the
OUString class that for UTF-16

- return a 32-bit Unicode value (code point) at a given string offset
  (code unit), see icu::UnicodeString::char32At(int32_t offset)
 
http://icu-project.org/apiref/icu4c/classUnicodeString.html#9ca80740ef5199cf1809c66a4ef6ba3d

- move the code unit index by delta code points like in
  icu::UnicodeString::moveIndex32(int32_t index, int32_t delta)
 
http://icu-project.org/apiref/icu4c/classUnicodeString.html#a28839315561a834a4f6954ad583fa35

- according to Karl, for breakiterator purposes it would be nice to have
  these combined in something like
  sal_Unicode32 rtl::OUString::moveIndex32(const OUString& text, sal_Int32 &
index, sal_Int32 increment)

For a more general usable OUString iterator the methods getChar32Start,
getChar32Limit of icu::UnicodeString and setIndex32, next32 and other
...32 of icu::UCharCharacterIterator would come handy, see
http://icu-project.org/apiref/icu4c/classUnicodeString.html
http://icu-project.org/apiref/icu4c/classUCharCharacterIterator.html

  Eike

---------------------------------------------------------------------
Please do not reply to this automatically generated notification from
Issue Tracker. Please log onto the website and enter your comments.
http://qa.openoffice.org/issue_handling/project_issues.html#notification

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to