System::Xml::NameTable::Get 方法

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

返回包含给定数组中指定字符范围相同字符的原子化字符串。

const String & System::Xml::NameTable::Get(const ArrayPtr<char16_t> &key, int32_t start, int32_t len) override
参数类型描述
const ArrayPtr<char16_t>&包含要查找的名称的字符数组。
startint32_t指定名称第一个字符的数组的零基索引。
lenint32_t名称中的字符数。

ReturnValue

如果字符串尚未原子化,则返回原子化的字符串或 nullptr。如果 len 为零,则返回 String::Empty

另见

NameTable::Get(const String&) method

返回具有指定值的原子化字符串。

const String & System::Xml::NameTable::Get(const String &value) override
参数类型描述
const String&要查找的名称。

ReturnValue

如果字符串尚未原子化,则返回原子化的字符串对象或 nullptr

另见