Méthode System::String::LastIndexOf
String::LastIndexOf(char_t) const method
Recherche arrière de caractère.
int System::String::LastIndexOf(char_t value) const
| Paramètre | Type | Description |
|---|---|---|
| valeur | char_t | Caractère à rechercher. |
ReturnValue
Indice de la dernière position du caractère ou -1 si non trouvé.
Voir aussi
- Class String
- Namespace System
- Library Aspose.Font for C++
String::LastIndexOf(char_t, int32_t) const method
Recherche arrière de caractère.
int System::String::LastIndexOf(char_t value, int32_t startIndex) const
| Paramètre | Type | Description |
|---|---|---|
| valeur | char_t | Caractère à rechercher. |
| startIndex | int32_t | Indice à partir duquel commencer la recherche. |
ReturnValue
Indice de la dernière position du caractère depuis startIndex ou -1 si non trouvé.
Voir aussi
- Class String
- Namespace System
- Library Aspose.Font for C++
String::LastIndexOf(char_t, int32_t, int32_t) const method
Recherche arrière de caractère.
int System::String::LastIndexOf(char_t value, int32_t startIndex, int32_t count) const
| Paramètre | Type | Description |
|---|---|---|
| valeur | char_t | Caractère à rechercher. |
| startIndex | int32_t | Indice à partir duquel commencer la recherche. |
| count | int32_t | Nombre de caractères à parcourir |
ReturnValue
Indice de la dernière position du caractère depuis startIndex ou -1 si non trouvé.
Voir aussi
- Class String
- Namespace System
- Library Aspose.Font for C++
String::LastIndexOf(const String&, int, System::StringComparison) const method
Recherche arrière de sous-chaîne.
int System::String::LastIndexOf(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 dernière sous-chaîne trouvée ou -1 si non trouvé. Pour une chaîne de recherche vide, renvoie toujours la longueur de la chaîne.
Voir aussi
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.Font for C++
String::LastIndexOf(const String&, int) const method
Recherche arrière de sous-chaîne.
int System::String::LastIndexOf(const String &str, int startIndex=INT32_MAX) 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 dernière sous-chaîne trouvée ou -1 si non trouvé. Pour une chaîne de recherche vide, renvoie toujours la longueur de la chaîne.
Voir aussi
- Class String
- Class String
- Namespace System
- Library Aspose.Font for C++
String::LastIndexOf(const String&, System::StringComparison) const method
Recherche arrière de sous-chaîne.
int System::String::LastIndexOf(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 dernière sous-chaîne trouvée ou -1 si non trouvé. Pour une chaîne de recherche vide, renvoie toujours la longueur de la chaîne.
Voir aussi
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.Font for C++
String::LastIndexOf(const String&, int, int, StringComparison) const method
Recherche arrière de sous-chaîne.
int System::String::LastIndexOf(const String &value, int startIndex, int count, 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 | StringComparison | Mode Comparison. |
ReturnValue
Indice de la dernière sous-chaîne trouvée ou -1 si non trouvé. Pour une chaîne de recherche vide, renvoie toujours startIndex+count.
Voir aussi
- Class String
- Enum StringComparison
- Class String
- Namespace System
- Library Aspose.Font for C++