Navigation

About ICU
· ICU Home
· Download ICU
Demos & Tools
· ICU4C Demos
· ICU4J Demos
· Data Customizer
Documents
· User Guide
· ICU FAQ
· ICU4J FAQ
· Docs & Papers
API References
Official Release
· ICU4C (4.8.1)
· ICU4J (4.8.1.1)
Latest Milestone
· ICU4C (49M2)
· ICU4J (49M2)
Data & Charts
· Conversion Tables
· Feature Comparisons
· Performance & Size
Development
· Project Information
· Design Docs
· Source Repository
· Processes
· Members-Only Area
Bugs & Contacts
· Bugs
· Feature Requests
· Mailing Lists

· Feedback
Sitemap

UTF16 API Comparison

TODO: flesh this out.

Java incorporated support for UTF16, roughly along the lines of what ICU had done although with a number of omissions requiring work-arounds. The following provides a mapping between the corresponding APIs.

ICU JDK
UTF16.charAt(myString, offset)
myString.codePointAt(offset)
UTF16.valueOf(codePoint)
new StringBuilder().appendCodePoint(codePoint).toString()
UTF16.getCharCount(codePoint)
Character.charCount(codePoint)