System::String::IndexOf метод

String::IndexOf(char_t, int, int) const method

Прямой поиск символа в подстроке.

int System::String::IndexOf(char_t c, int startIndex, int count) const
ПараметрТипОписание
cchar_tИскомый символ.
startIndexintIndex для начала поиска с.
countintКоличество символов для просмотра.

ReturnValue

Index of first character position since startIndex or -1 if not found.

См. также

String::IndexOf(char_t, int) const method

Прямой поиск символа.

int System::String::IndexOf(char_t c, int startIndex=0) const
ПараметрТипОписание
cchar_tИскомый символ.
startIndexintIndex для начала поиска с.

ReturnValue

Index of first character position since startIndex or -1 if not found.

См. также

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

Прямой поиск подстроки.

int System::String::IndexOf(const String &str, int startIndex, int count) const
ПараметрТипОписание
strconst String&Подстрока для поиска.
startIndexintПозиция в исходной строке, с которой начинать поиск.
countintколичество символов для просмотра.

ReturnValue

Index of first found substring or -1 if not found. For empty lookup string, always returns startIndex.

См. также

String::IndexOf(const String&, int, System::StringComparison) const method

Прямой поиск подстроки.

int System::String::IndexOf(const String &str, int startIndex, System::StringComparison comparison_type) const
ПараметрТипОписание
strconst String&Подстрока для поиска.
startIndexintПозиция в исходной строке, с которой начинать поиск.
comparison_typeSystem::StringComparisonComparison режим.

ReturnValue

Index of first found substring or -1 if not found. For empty lookup string, always returns startIndex.

См. также

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

Прямой поиск подстроки.

int System::String::IndexOf(const String &str, int startIndex=0) const
ПараметрТипОписание
strconst String&Подстрока для поиска.
startIndexintПозиция в исходной строке, с которой начинать поиск.

ReturnValue

Index of first found substring or -1 if not found. For empty lookup string, always returns startIndex.

См. также

String::IndexOf(const String&, System::StringComparison) const method

Прямой поиск подстроки.

int System::String::IndexOf(const String &str, System::StringComparison comparison_type) const
ПараметрТипОписание
strconst String&Подстрока для поиска.
comparison_typeSystem::StringComparisonComparison режим.

ReturnValue

Index of first found substring or -1 if not found. For empty lookup string, always returns 0.

См. также

String::IndexOf(const String&, int, int, System::StringComparison) const method

Прямой поиск подстроки.

int System::String::IndexOf(const String &value, int startIndex, int count, System::StringComparison comparisonType) const
ПараметрТипОписание
valueconst String&Подстрока для поиска.
startIndexintПозиция в исходной строке, с которой начинать поиск.
countintколичество символов для просмотра.
comparisonTypeSystem::StringComparisonComparison режим.

ReturnValue

Index of first found substring or -1 if not found. For empty lookup string, always returns startIndex.

См. также