System::String::IndexOf metod
String::IndexOf(char_t, int, int) const method
Framåtsökning av tecken i delsträng.
int System::String::IndexOf(char_t c, int startIndex, int count) const
| Parameter | Typ | Beskrivning |
|---|---|---|
| c | char_t | Tecken att söka efter. |
| startIndex | int | Index att börja söka vid. |
| count | int | Antal tecken att gå igenom. |
ReturnValue
Index of first character position since startIndex or -1 if not found.
Se även
- Class String
- Namespace System
- Library Aspose.PDF for C++
String::IndexOf(char_t, int) const method
Framåtsökning av tecken.
int System::String::IndexOf(char_t c, int startIndex=0) const
| Parameter | Typ | Beskrivning |
|---|---|---|
| c | char_t | Tecken att söka efter. |
| startIndex | int | Index att börja söka vid. |
ReturnValue
Index of first character position since startIndex or -1 if not found.
Se även
- Class String
- Namespace System
- Library Aspose.PDF for C++
String::IndexOf(const String&, int, int) const method
Framåtsökning i delsträng.
int System::String::IndexOf(const String &str, int startIndex, int count) const
| Parameter | Typ | Beskrivning |
|---|---|---|
| str | const String& | Delsträng att söka efter. |
| startIndex | int | Position i källsträngen där sökningen ska börja. |
| count | int | antal tecken att söka igenom. |
ReturnValue
Index of first found substring or -1 if not found. For empty lookup string, always returns startIndex.
Se även
- Class String
- Class String
- Namespace System
- Library Aspose.PDF for C++
String::IndexOf(const String&, int, System::StringComparison) const method
Framåtsökning i delsträng.
int System::String::IndexOf(const String &str, int startIndex, System::StringComparison comparison_type) const
| Parameter | Typ | Beskrivning |
|---|---|---|
| str | const String& | Delsträng att söka efter. |
| startIndex | int | Position i källsträngen där sökningen ska börja. |
| comparison_type | System::StringComparison | Comparison läge. |
ReturnValue
Index of first found substring or -1 if not found. For empty lookup string, always returns startIndex.
Se även
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.PDF for C++
String::IndexOf(const String&, int) const method
Framåtsökning i delsträng.
int System::String::IndexOf(const String &str, int startIndex=0) const
| Parameter | Typ | Beskrivning |
|---|---|---|
| str | const String& | Delsträng att söka efter. |
| startIndex | int | Position i källsträngen där sökningen ska börja. |
ReturnValue
Index of first found substring or -1 if not found. For empty lookup string, always returns startIndex.
Se även
- Class String
- Class String
- Namespace System
- Library Aspose.PDF for C++
String::IndexOf(const String&, System::StringComparison) const method
Framåtsökning i delsträng.
int System::String::IndexOf(const String &str, System::StringComparison comparison_type) const
| Parameter | Typ | Beskrivning |
|---|---|---|
| str | const String& | Delsträng att söka efter. |
| comparison_type | System::StringComparison | Comparison läge. |
ReturnValue
Index of first found substring or -1 if not found. For empty lookup string, always returns 0.
Se även
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.PDF for C++
String::IndexOf(const String&, int, int, System::StringComparison) const method
Framåtsökning i delsträng.
int System::String::IndexOf(const String &value, int startIndex, int count, System::StringComparison comparisonType) const
| Parameter | Typ | Beskrivning |
|---|---|---|
| värde | const String& | Delsträng att söka efter. |
| startIndex | int | Position i källsträngen där sökningen ska börja. |
| count | int | antal tecken att söka igenom. |
| comparisonType | System::StringComparison | Comparison läge. |
ReturnValue
Index of first found substring or -1 if not found. For empty lookup string, always returns startIndex.
Se även
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.PDF for C++