poi-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61792] New: Need to rework any code that iterates over chars
Date Mon, 20 Nov 2017 22:48:24 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61792

            Bug ID: 61792
           Summary: Need to rework any code that iterates over chars
           Product: POI
           Version: 3.17-FINAL
          Hardware: PC
                OS: Mac OS X 10.1
            Status: NEW
          Severity: normal
          Priority: P2
         Component: POI Overall
          Assignee: dev@poi.apache.org
          Reporter: fanningpj@yahoo.com
  Target Milestone: ---

If we need to iterate over chars, we should use codepoints (ints) instead of
char primitives. Unicode surrogates need 2 java chars to represent one Unicode
codepoint.
DrawTextParagraph.java has an example where we iterate over the chars of a
String.
See
https://stackoverflow.com/questions/1527856/how-can-i-iterate-through-the-unicode-codepoints-of-a-java-string

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@poi.apache.org
For additional commands, e-mail: dev-help@poi.apache.org


Mime
View raw message