Add()

NameTable::Add(const String&) method

Atomizes the specified string and adds it to the NameTable.

const String & System::Xml::NameTable::Add(const String &key) override

Arguments

ParameterTypeDescription
keyconst String&The string to add.

Return Value

The atomized string or the existing string if it already exists in the NameTable.

NameTable::Add(const ArrayPtr<char16_t>&, int32_t, int32_t) method

Atomizes the specified string and adds it to the NameTable.

const String & System::Xml::NameTable::Add(const ArrayPtr<char16_t> &key, int32_t start, int32_t len) override

Arguments

ParameterTypeDescription
keyconst ArrayPtr<char16_t>&The character array containing the string to add.
startint32_tThe zero-based index into the array specifying the first character of the string.
lenint32_tThe number of characters in the string.

Return Value

The atomized string or the existing string if one already exists in the NameTable. If len is zero, String::Empty is returned.

See Also