code: public static final int getScript(int codepoint){
          if (codepoint >= UCharacter.MIN_VALUE & codepoint <= UCharacter.MAX_VALUE) {
              int scriptX=UCharacterProperty.INSTANCE.getAdditional(codepoint, 0)&UCharacterProperty.SCRIPT_X_MASK;
              if(scriptX<UCharacterProperty.SCRIPT_X_WITH_COMMON) {
                  return scriptX;
              } else if(scriptX<UCharacterProperty.SCRIPT_X_WITH_INHERITED) {
                  return UScript.COMMON;
              } else if(scriptX<UCharacterProperty.SCRIPT_X_WITH_OTHER) {
                  return UScript.INHERITED;
              } else {
                  return UCharacterProperty.INSTANCE.m_scriptExtensions_[scriptX&UCharacterProperty.SCRIPT_MASK_];
              }
          }else{
              throw new IllegalArgumentException(Integer.toString(codepoint));
          }
      }
docs: Gets the script code associated with the given codepoint.
  Returns UScript.MALAYAM given 0x0D02
  @param codepoint UChar32 codepoint
  @return The script code