Skip to content

fixes for handling surrogate chars properly#36

Merged
asfgit merged 1 commit intoapache:masterfrom
laimis:unicode_issues
Dec 31, 2014
Merged

fixes for handling surrogate chars properly#36
asfgit merged 1 commit intoapache:masterfrom
laimis:unicode_issues

Conversation

@laimis
Copy link
Contributor

@laimis laimis commented Dec 31, 2014

TestUTF32ToUTF8.TestRandomRanges were failing because of the issue with how the surrogate pairs were handled in Character class. Changed the implementation to call UnicodeUtils to provide correct ToChars implementation. Now the test passes.

Added method to UnicodeUtil to provide public API for converting code points to strings and chars so that we don't have to do repeating conversion (char[] -> string -> char[]).

@asfgit asfgit merged commit 645b21d into apache:master Dec 31, 2014
@laimis laimis deleted the unicode_issues branch December 31, 2014 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants