public static int convertToUtf32 ( String text , int idx ) { return ( ( ( text . charAt ( idx ) - 0xd800 ) * 0x400 ) + ( text . charAt ( idx + 1 ) - 0xdc00 ) ) + 0x10000 ; }
Converts a unicode character in a String to a UTF32 code point value