Unicode Code Points

   


JDK 5.0 supports Unicode 4.0, in which the "supplementary" characters are encoded with two consecutive char values.

5.0

1.4

int cp = string.codePointAt(i)

char cp = string.charAt(i)

 if (Character.isSupplementaryCharacter(cp))    ... 

omit there are no supplementary characters prior to JDK 5.0



       
    top



    Core Java 2 Volume I - Fundamentals
    Core Java(TM) 2, Volume I--Fundamentals (7th Edition) (Core Series) (Core Series)
    ISBN: 0131482025
    EAN: 2147483647
    Year: 2003
    Pages: 132

    flylib.com © 2008-2017.
    If you may any questions please contact us: flylib@qtcs.net