public static int convertToUtf32(String text,int idx){
  return (text.charAt(idx) - 0xd800) * 0x400 + text.charAt(idx + 1) - 0xdc00 + 0x10000;
}

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
