Gnash
0.8.10
|
Named String Values. More...
Named String Values.
These are enumerations of the strings which should have known string table values. They are the first strings added to the string table, and the key will be equal to the enumeration.
Lowercase letters in the enum value signal the format of the string literals associated with these enums. u: An underscore For example: PROP_uuPROTOuu is "__proto__" _: The next letter is capitalized For example: PROP_ON_LOAD is "onLoad"
Names beginning with PROP_ have a lowercase initial letter Names beginning with CLASS_ have an uppercase initial letter Names beginning with NS_ have a lowercase initial letter and _ are . instead of uppercase.
Names beginning with INTERNAL_ have no named string -- they can only be used if you know their key value already.
All known lower-case names are grouped at the beginning of the enum, followed by INTERNAL_HIGHEST_LOWERCASE. WARNING: putting mixed-case names before INTERNAL_HIGHEST_LOWERCASE introduces bugs ! (putting lower-case names after INTERNAL_HIGHEST_LOWERCASE is fine, except for performance)
void gnash::NSV::loadStrings | ( | string_table & | table | ) |
Load the prenamed strings.
References gnash::string_table::insert_group(), gnash::arraySize(), gnash::string_table::setHighestKnownLowercase(), and INTERNAL_HIGHEST_LOWERCASE.
Referenced by gnash::VM::VM().