System::Globalization::CompareInfo::LastIndexOf 方法

CompareInfo::LastIndexOf(const String&, char16_t) const method

搜索指定字符的最后一次出现。

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, char16_t value) const
参数类型描述
const String&源字符串。
char16_t查找值。

ReturnValue

在源字符串中查找值的索引,如果未找到则为 -1。

另见

CompareInfo::LastIndexOf(const String&, char16_t, CompareOptions) const method

使用指定的比较选项搜索指定字符的最后一次出现。

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, char16_t value, CompareOptions options) const
参数类型描述
const String&源字符串。
char16_t查找值。
选项CompareOptions比较选项。

ReturnValue

在源字符串中查找值的索引,如果未找到则为 -1。

另见

CompareInfo::LastIndexOf(const String&, char16_t, int) const method

搜索指定字符的最后一次出现。

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, char16_t value, int start_index) const
参数类型描述
const String&源字符串。
char16_t查找值。
start_indexint在源字符串中查找的起始索引。

ReturnValue

在源字符串中查找值的索引,如果未找到则为 -1。

另见

CompareInfo::LastIndexOf(const String&, char16_t, int, CompareOptions) const method

使用指定的比较选项搜索指定字符的最后一次出现。

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, char16_t value, int start_index, CompareOptions options) const
参数类型描述
const String&源字符串。
char16_t查找值。
start_indexint在源字符串中查找的起始索引。
选项CompareOptions比较选项。

ReturnValue

在源字符串中查找值的索引,如果未找到则为 -1。

另见

CompareInfo::LastIndexOf(const String&, char16_t, int, int) const method

搜索指定字符的最后一次出现。

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, char16_t value, int start_index, int count) const
参数类型描述
const String&源字符串。
char16_t查找值。
start_indexint在源字符串中查找的起始索引。
countint源字符串中的字符数。

ReturnValue

在源字符串中查找值的索引,如果未找到则为 -1。

另见

CompareInfo::LastIndexOf(const String&, char16_t, int, int, CompareOptions) const method

使用指定的比较选项搜索指定字符的最后一次出现。

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, char16_t value, int start_index, int count, CompareOptions options) const
参数类型描述
const String&源字符串。
char16_t查找值。
start_indexint在源字符串中查找的起始索引。
countint源字符串中的字符数。
选项CompareOptions比较选项。

ReturnValue

在源字符串中查找值的索引,如果未找到则为 -1。

另见

CompareInfo::LastIndexOf(const String&, const String&) const method

搜索指定子字符串的最后一次出现。

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, const String &value) const
参数类型描述
const String&源字符串。
const String&查找值。

ReturnValue

在源字符串中查找值的索引,如果未找到则为 -1。

另见

CompareInfo::LastIndexOf(const String&, const String&, CompareOptions) const method

使用指定的比较选项搜索指定字符串的最后一次出现。

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, const String &value, CompareOptions options) const
参数类型描述
const String&源字符串。
const String&查找值。
选项CompareOptions比较选项。

ReturnValue

在源字符串中查找值的索引,如果未找到则为 -1。

另见

CompareInfo::LastIndexOf(const String&, const String&, int) const method

搜索指定字符串的最后一次出现。

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, const String &value, int start_index) const
参数类型描述
const String&源字符串。
const String&查找值。
start_indexint在源字符串中查找的起始索引。

ReturnValue

在源字符串中查找值的索引,如果未找到则为 -1。

另见

CompareInfo::LastIndexOf(const String&, const String&, int, CompareOptions) const method

使用指定的比较选项搜索指定字符串的最后一次出现。

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, const String &value, int start_index, CompareOptions options) const
参数类型描述
const String&源字符串。
const String&查找值。
start_indexint在源字符串中查找的起始索引。
选项CompareOptions比较选项。

ReturnValue

在源字符串中查找值的索引,如果未找到则为 -1。

另见

CompareInfo::LastIndexOf(const String&, const String&, int, int) const method

搜索指定字符串的最后一次出现。

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, const String &value, int start_index, int count) const
参数类型描述
const String&源字符串。
const String&查找值。
start_indexint在源字符串中查找的起始索引。
countint源字符串中的字符数。

ReturnValue

在源字符串中查找值的索引,如果未找到则为 -1。

另见

CompareInfo::LastIndexOf(const String&, const String&, int, int, CompareOptions) const method

使用指定的比较选项搜索指定子字符串的最后一次出现。

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, const String &value, int start_index, int count, CompareOptions options) const
参数类型描述
const String&源字符串。
const String&查找值。
start_indexint在源字符串中查找的起始索引。
countint源字符串中的字符数。
选项CompareOptions比较选项。

ReturnValue

在源字符串中查找值的索引,如果未找到则为 -1。

另见