int32_t PropNameData::getPropertyValueEnum(int32_t property, const char *alias) { int32_t valueMapIndex=findProperty(property); if(valueMapIndex==0) { return UCHAR_INVALID_CODE; // Not a known property. } valueMapIndex=valueMaps[valueMapIndex+1]; if(valueMapIndex==0) { return UCHAR_INVALID_CODE; // The property does not have named values. } // valueMapIndex is the start of the property's valueMap, // where the first word is the BytesTrie offset. return getPropertyOrValueEnum(valueMaps[valueMapIndex], alias); }
int32_t PropNameData::getPropertyEnum(const char *alias) { return getPropertyOrValueEnum(0, alias); }
int32_t PNamesPropertyNames::getPropertyEnum(const char *alias) const { return getPropertyOrValueEnum(0, alias); }