System::Xml::NameTable::Add method

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
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.

ReturnValue

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

See Also

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
ParameterTypeDescription
keyconst String&The string to add.

ReturnValue

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

See Also