code: public static final int getCodeFromName(String nameOrAbbr) {
          int propNum = UCharacter.getPropertyValueEnumNoThrow(UProperty.SCRIPT, nameOrAbbr);
          return propNum == UProperty.UNDEFINED ? INVALID_CODE : propNum;
      }
docs: Returns the script code associated with the given Unicode script property alias
  (name or abbreviation).
  Short aliases are ISO 15924 script codes.
  Returns MALAYAM given "Malayam" OR "Mlym".
  
  @param nameOrAbbr name of the script or ISO 15924 code
  @return The script code value, or INVALID_CODE if the code cannot be found.