System::String::IndexOf метод
String::IndexOf(char_t, int, int) const method
Прямой поиск символа в подстроке.
int System::String::IndexOf(char_t c, int startIndex, int count) const
| Параметр | Тип | Описание |
|---|---|---|
| c | char_t | Искомый символ. |
| startIndex | int | Index для начала поиска с. |
| count | int | Количество символов для просмотра. |
ReturnValue
Index of first character position since startIndex or -1 if not found.
См. также
- Class String
- Namespace System
- Library Aspose.PDF for C++
String::IndexOf(char_t, int) const method
Прямой поиск символа.
int System::String::IndexOf(char_t c, int startIndex=0) const
| Параметр | Тип | Описание |
|---|---|---|
| c | char_t | Искомый символ. |
| startIndex | int | Index для начала поиска с. |
ReturnValue
Index of first character position since startIndex or -1 if not found.
См. также
- Class String
- Namespace System
- Library Aspose.PDF for C++
String::IndexOf(const String&, int, int) const method
Прямой поиск подстроки.
int System::String::IndexOf(const String &str, int startIndex, int count) const
| Параметр | Тип | Описание |
|---|---|---|
| str | const String& | Подстрока для поиска. |
| startIndex | int | Позиция в исходной строке, с которой начинать поиск. |
| count | int | количество символов для просмотра. |
ReturnValue
Index of first found substring or -1 if not found. For empty lookup string, always returns startIndex.
См. также
- Class String
- Class String
- Namespace System
- Library Aspose.PDF for C++
String::IndexOf(const String&, int, System::StringComparison) const method
Прямой поиск подстроки.
int System::String::IndexOf(const String &str, int startIndex, System::StringComparison comparison_type) const
| Параметр | Тип | Описание |
|---|---|---|
| str | const String& | Подстрока для поиска. |
| startIndex | int | Позиция в исходной строке, с которой начинать поиск. |
| comparison_type | System::StringComparison | Comparison режим. |
ReturnValue
Index of first found substring or -1 if not found. For empty lookup string, always returns startIndex.
См. также
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.PDF for C++
String::IndexOf(const String&, int) const method
Прямой поиск подстроки.
int System::String::IndexOf(const String &str, int startIndex=0) const
| Параметр | Тип | Описание |
|---|---|---|
| str | const String& | Подстрока для поиска. |
| startIndex | int | Позиция в исходной строке, с которой начинать поиск. |
ReturnValue
Index of first found substring or -1 if not found. For empty lookup string, always returns startIndex.
См. также
- Class String
- Class String
- Namespace System
- Library Aspose.PDF for C++
String::IndexOf(const String&, System::StringComparison) const method
Прямой поиск подстроки.
int System::String::IndexOf(const String &str, System::StringComparison comparison_type) const
| Параметр | Тип | Описание |
|---|---|---|
| str | const String& | Подстрока для поиска. |
| comparison_type | System::StringComparison | Comparison режим. |
ReturnValue
Index of first found substring or -1 if not found. For empty lookup string, always returns 0.
См. также
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.PDF for C++
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
| Параметр | Тип | Описание |
|---|---|---|
| value | const String& | Подстрока для поиска. |
| startIndex | int | Позиция в исходной строке, с которой начинать поиск. |
| count | int | количество символов для просмотра. |
| comparisonType | System::StringComparison | Comparison режим. |
ReturnValue
Index of first found substring or -1 if not found. For empty lookup string, always returns startIndex.
См. также
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.PDF for C++