IndexOf()

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

Looks for substring.

virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, int start_index, int count) const

Arguments

ParameterTypeDescription
sourceconst String&Source string.
valueconst String&Lookup value.
start_indexintLookup start index in source string.
countintNumber of characters in source string.

Return Value

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

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

Looks for substring. Only Ordinal mode is supported.

virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, int start_index, CompareOptions options) const

Arguments

ParameterTypeDescription
sourceconst String&Source string.
valueconst String&Lookup value.
start_indexintLookup start index in source string.
optionsCompareOptionsLookup options.

Return Value

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

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

Looks for substring. Only Ordinal mode is supported.

virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, int start_index, int count, CompareOptions options) const

Arguments

ParameterTypeDescription
sourceconst String&Source string.
valueconst String&Lookup value.
start_indexintLookup start index in source string.
countintNumber of characters in source string.
optionsCompareOptionsLookup options.

Return Value

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

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

Looks for the specified character. Only Ordinal mode is supported.

virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, int start_index, int count, CompareOptions options) const

Arguments

ParameterTypeDescription
sourceconst String&Source string.
valuechar16_tCharacter.
start_indexintLookup start index in source string.
countintNumber of characters in source string.
optionsCompareOptionsLookup options.

Return Value

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

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

Looks for substring.

virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, int start_index) const

Arguments

ParameterTypeDescription
sourceconst String&Source string.
valueconst String&Lookup value.
start_indexintLookup start index in source string.

Return Value

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

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

Looks for the specified character.

virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value) const

Arguments

ParameterTypeDescription
sourceconst String&Source string.
valuechar16_tCharacter.

Return Value

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

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

Looks for substring.

virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value) const

Arguments

ParameterTypeDescription
sourceconst String&Source string.
valueconst String&Lookup value.

Return Value

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

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

Looks for the specified character. Only Ordinal mode is supported.

virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, int start_index, CompareOptions options) const

Arguments

ParameterTypeDescription
sourceconst String&Source string.
valuechar16_tCharacter.
start_indexintLookup start index in source string.
optionsCompareOptionsLookup options.

Return Value

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

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

Looks for the specified character.

virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, int start_index, int count) const

Arguments

ParameterTypeDescription
sourceconst String&Source string.
valuechar16_tCharacter.
start_indexintLookup start index in source string.
countintNumber of characters in source string.

Return Value

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

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

Looks for the specified character.

virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, int start_index) const

Arguments

ParameterTypeDescription
sourceconst String&Source string.
valuechar16_tCharacter.
start_indexintLookup start index in source string.

Return Value

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

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

Looks for substring. Only Ordinal mode is supported.

virtual int System::Globalization::CompareInfo::IndexOf(const String &source, const String &value, CompareOptions options) const

Arguments

ParameterTypeDescription
sourceconst String&Source string.
valueconst String&Lookup value.
optionsCompareOptionsLookup options.

Return Value

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

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

Looks for the specified character. Only Ordinal mode is supported.

virtual int System::Globalization::CompareInfo::IndexOf(const String &source, char16_t value, CompareOptions options) const

Arguments

ParameterTypeDescription
sourceconst String&Source string.
valuechar16_tCharacter.
optionsCompareOptionsLookup options.

Return Value

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

See Also