Test whether the string is valid key. Only the characters A-Za-z0-9- may be used in key names. See Basic format of the file Note: this function automatically separate key from locale. It does not check validity of the locale itself.
assert(isValidKey("Generic-Name")); assert(isValidKey("Generic-Name[ru_RU]")); assert(!isValidKey("Name$")); assert(!isValidKey("")); assert(!isValidKey("[ru_RU]"));
See Implementation
Test whether the string is valid key. Only the characters A-Za-z0-9- may be used in key names. See Basic format of the file Note: this function automatically separate key from locale. It does not check validity of the locale itself.