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ètreTypeDescription
valeurchar_tCaractère à rechercher.

ReturnValue

Indice de la dernière position du caractère ou -1 si non trouvé.

Voir aussi

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ètreTypeDescription
valeurchar_tCaractère à rechercher.
startIndexint32_tIndice à partir duquel commencer la recherche.

ReturnValue

Indice de la dernière position du caractère depuis startIndex ou -1 si non trouvé.

Voir aussi

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ètreTypeDescription
valeurchar_tCaractère à rechercher.
startIndexint32_tIndice à partir duquel commencer la recherche.
countint32_tNombre de caractères à parcourir

ReturnValue

Indice de la dernière position du caractère depuis startIndex ou -1 si non trouvé.

Voir aussi

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ètreTypeDescription
strconst String&Sous-chaîne à rechercher.
startIndexintPosition dans la chaîne source où commencer la recherche.
comparison_typeSystem::StringComparisonMode 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

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ètreTypeDescription
strconst String&Sous-chaîne à rechercher.
startIndexintPosition 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

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ètreTypeDescription
strconst String&Sous-chaîne à rechercher.
comparison_typeSystem::StringComparisonMode 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

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ètreTypeDescription
valeurconst String&Sous-chaîne à rechercher.
startIndexintPosition dans la chaîne source où commencer la recherche.
countintNombre de caractères à parcourir.
comparisonTypeStringComparisonMode 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