System::Globalization::CompareInfo::LastIndexOf method

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

Searches last occurrence of the specified substring.

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, const String &value) const
ParameterTypeDescription
sourceconst String&Source string.
valueconst String&Lookup value.

ReturnValue

Index of lookup value in source string or -1 if not found.

See Also

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

Searches last occurrence of the specified substring using the specified compare options.

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, const String &value, int start_index, int count, CompareOptions options) const
ParameterTypeDescription
sourceconst String&Source string.
valueconst String&Lookup value.
start_indexintLookup start index in source string.
countintNumber of characters in source string.
optionsCompareOptionsCompare options.

ReturnValue

Index of lookup value in source string or -1 if not found.

See Also

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

Searches last occurrence of the specified character using the specified compare options.

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, char16_t value, int start_index, int count, CompareOptions options) const
ParameterTypeDescription
sourceconst String&Source string.
valuechar16_tLookup value.
start_indexintLookup start index in source string.
countintNumber of characters in source string.
optionsCompareOptionsCompare options.

ReturnValue

Index of lookup value in source string or -1 if not found.

See Also

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

Searches last occurrence of the specified string.

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, const String &value, int start_index, int count) const
ParameterTypeDescription
sourceconst String&Source string.
valueconst String&Lookup value.
start_indexintLookup start index in source string.
countintNumber of characters in source string.

ReturnValue

Index of lookup value in source string or -1 if not found.

See Also

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

Searches last occurrence of the specified string using the specified compare options.

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, const String &value, int start_index, CompareOptions options) const
ParameterTypeDescription
sourceconst String&Source string.
valueconst String&Lookup value.
start_indexintLookup start index in source string.
optionsCompareOptionsCompare options.

ReturnValue

Index of lookup value in source string or -1 if not found.

See Also

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

Searches last occurrence of the specified character using the specified compare options.

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, char16_t value, int start_index, CompareOptions options) const
ParameterTypeDescription
sourceconst String&Source string.
valuechar16_tLookup value.
start_indexintLookup start index in source string.
optionsCompareOptionsCompare options.

ReturnValue

Index of lookup value in source string or -1 if not found.

See Also

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

Searches last occurrence of the specified string.

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, const String &value, int start_index) const
ParameterTypeDescription
sourceconst String&Source string.
valueconst String&Lookup value.
start_indexintLookup start index in source string.

ReturnValue

Index of lookup value in source string or -1 if not found.

See Also

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

Searches last occurrence of the specified character.

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, char16_t value, int start_index) const
ParameterTypeDescription
sourceconst String&Source string.
valuechar16_tLookup value.
start_indexintLookup start index in source string.

ReturnValue

Index of lookup value in source string or -1 if not found.

See Also

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

Searches last occurrence of the specified string using the specified compare options.

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, const String &value, CompareOptions options) const
ParameterTypeDescription
sourceconst String&Source string.
valueconst String&Lookup value.
optionsCompareOptionsCompare options.

ReturnValue

Index of lookup value in source string or -1 if not found.

See Also

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

Searches last occurrence of the specified character using the specified compare options.

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, char16_t value, CompareOptions options) const
ParameterTypeDescription
sourceconst String&Source string.
valuechar16_tLookup value.
optionsCompareOptionsCompare options.

ReturnValue

Index of lookup value in source string or -1 if not found.

See Also

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

Searches last occurrence of the specified character.

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, char16_t value) const
ParameterTypeDescription
sourceconst String&Source string.
valuechar16_tLookup value.

ReturnValue

Index of lookup value in source string or -1 if not found.

See Also

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

Searches last occurrence of the specified character.

virtual int System::Globalization::CompareInfo::LastIndexOf(const String &source, char16_t value, int start_index, int count) const
ParameterTypeDescription
sourceconst String&Source string.
valuechar16_tLookup value.
start_indexintLookup start index in source string.
countintNumber of characters in source string.

ReturnValue

Index of lookup value in source string or -1 if not found.

See Also