public static int getPropertyEnum(CharSequence propertyAlias) {
        int propEnum = UPropertyAliases.INSTANCE.getPropertyEnum(propertyAlias);
        if (propEnum == UProperty.UNDEFINED) {
            throw new IllegalIcuArgumentException("Invalid name: " + propertyAlias);
        }
        return propEnum;
    }
public static int getPropertyEnum ( CharSequence propertyAlias ) { int propEnum = UPropertyAliases . INSTANCE . getPropertyEnum ( propertyAlias ) ; if ( propEnum == UProperty . UNDEFINED ) { throw new IllegalIcuArgumentException ( "Invalid name: " + propertyAlias ) ; } return propEnum ; }
<strong>[icu]</strong> Return the UProperty selector for a given property name, as
specified in the Unicode database file PropertyAliases.txt.
Short, long, and any other variants are recognized.

In addition, this function maps the synthetic names "gcm" /
"General_Category_Mask" to the property
UProperty.GENERAL_CATEGORY_MASK.  These names are not in
PropertyAliases.txt.

@param propertyAlias the property name to be matched.  The name
is compared using "loose matching" as described in
PropertyAliases.txt.

@return a UProperty enum.

@exception IllegalArgumentException thrown if propertyAlias
is not recognized.

@see UProperty