méthode System::String::IndexOf
String::IndexOf(char_t, int, int) const method
Recherche avant de caractère dans la sous-chaîne.
int System::String::IndexOf(char_t c, int startIndex, int count) const
| Paramètre | Type | Description |
|---|---|---|
| c | char_t | Caractère à rechercher. |
| startIndex | int | Indice à partir duquel commencer la recherche. |
| count | int | Nombre de caractères à parcourir. |
ReturnValue
Indice de la première position de caractère depuis startIndex ou -1 si non trouvé.
Voir aussi
- Class String
- Namespace System
- Library Aspose.Font for C++
String::IndexOf(char_t, int) const method
Recherche avant de caractère.
int System::String::IndexOf(char_t c, int startIndex=0) const
| Paramètre | Type | Description |
|---|---|---|
| c | char_t | Caractère à rechercher. |
| startIndex | int | Indice à partir duquel commencer la recherche. |
ReturnValue
Indice de la première position de caractère depuis startIndex ou -1 si non trouvé.
Voir aussi
- Class String
- Namespace System
- Library Aspose.Font for C++
String::IndexOf(const String&, int, int) const method
Recherche avant dans la sous-chaîne.
int System::String::IndexOf(const String &str, int startIndex, int count) const
| Paramètre | Type | Description |
|---|---|---|
| str | const String& | Sous-chaîne à rechercher. |
| startIndex | int | Position dans la chaîne source où commencer la recherche. |
| count | int | nombre de caractères à parcourir. |
ReturnValue
Indice de la première sous-chaîne trouvée ou -1 si non trouvée. Pour une chaîne de recherche vide, renvoie toujours startIndex.
Voir aussi
- Class String
- Class String
- Namespace System
- Library Aspose.Font for C++
String::IndexOf(const String&, int, System::StringComparison) const method
Recherche avant dans la sous-chaîne.
int System::String::IndexOf(const String &str, int startIndex, System::StringComparison comparison_type) const
| Paramètre | Type | Description |
|---|---|---|
| str | const String& | Sous-chaîne à rechercher. |
| startIndex | int | Position dans la chaîne source où commencer la recherche. |
| comparison_type | System::StringComparison | Mode Comparison. |
ReturnValue
Indice de la première sous-chaîne trouvée ou -1 si non trouvée. Pour une chaîne de recherche vide, renvoie toujours startIndex.
Voir aussi
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.Font for C++
String::IndexOf(const String&, int) const method
Recherche avant dans la sous-chaîne.
int System::String::IndexOf(const String &str, int startIndex=0) const
| Paramètre | Type | Description |
|---|---|---|
| str | const String& | Sous-chaîne à rechercher. |
| startIndex | int | Position dans la chaîne source où commencer la recherche. |
ReturnValue
Indice de la première sous-chaîne trouvée ou -1 si non trouvée. Pour une chaîne de recherche vide, renvoie toujours startIndex.
Voir aussi
- Class String
- Class String
- Namespace System
- Library Aspose.Font for C++
String::IndexOf(const String&, System::StringComparison) const method
Recherche avant dans la sous-chaîne.
int System::String::IndexOf(const String &str, System::StringComparison comparison_type) const
| Paramètre | Type | Description |
|---|---|---|
| str | const String& | Sous-chaîne à rechercher. |
| comparison_type | System::StringComparison | Mode Comparison. |
ReturnValue
Indice de la première sous-chaîne trouvée ou -1 si non trouvée. Pour une chaîne de recherche vide, renvoie toujours 0.
Voir aussi
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.Font for C++
String::IndexOf(const String&, int, int, System::StringComparison) const method
Recherche avant dans la sous-chaîne.
int System::String::IndexOf(const String &value, int startIndex, int count, System::StringComparison comparisonType) const
| Paramètre | Type | Description |
|---|---|---|
| valeur | const String& | Sous-chaîne à rechercher. |
| startIndex | int | Position dans la chaîne source où commencer la recherche. |
| count | int | nombre de caractères à parcourir. |
| comparisonType | System::StringComparison | Mode Comparison. |
ReturnValue
Indice de la première sous-chaîne trouvée ou -1 si non trouvée. Pour une chaîne de recherche vide, renvoie toujours startIndex.
Voir aussi
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.Font for C++