Método System::String::LastIndexOf

String::LastIndexOf(char_t) const method

Búsqueda hacia atrás de carácter.

int System::String::LastIndexOf(char_t value) const
ParámetroTipoDescripción
valorchar_tCarácter a buscar.

ReturnValue

Index of last character position or -1 if not found.

Ver también

String::LastIndexOf(char_t, int32_t) const method

Búsqueda hacia atrás de carácter.

int System::String::LastIndexOf(char_t value, int32_t startIndex) const
ParámetroTipoDescripción
valorchar_tCarácter a buscar.
startIndexint32_tIndex para iniciar la búsqueda en.

ReturnValue

Index of last character position since startIndex or -1 if not found.

Ver también

String::LastIndexOf(char_t, int32_t, int32_t) const method

Búsqueda hacia atrás de carácter.

int System::String::LastIndexOf(char_t value, int32_t startIndex, int32_t count) const
ParámetroTipoDescripción
valorchar_tCarácter a buscar.
startIndexint32_tIndex para iniciar la búsqueda en.
countint32_tNúmero de caracteres a examinar

ReturnValue

Index of last character position since startIndex or -1 if not found.

Ver también

String::LastIndexOf(const String&, int, System::StringComparison) const method

Búsqueda hacia atrás de subcadena.

int System::String::LastIndexOf(const String &str, int startIndex, System::StringComparison comparison_type) const
ParámetroTipoDescripción
strconst String&Subcadena a buscar.
startIndexintPosición en la cadena fuente para iniciar la búsqueda.
comparison_typeSystem::StringComparisonModo Comparison.

ReturnValue

Index of last found substring or -1 if not found. For empty lookup string, always returns string length.

Ver también

String::LastIndexOf(const String&, int) const method

Búsqueda hacia atrás de subcadena.

int System::String::LastIndexOf(const String &str, int startIndex=INT32_MAX) const
ParámetroTipoDescripción
strconst String&Subcadena a buscar.
startIndexintPosición en la cadena fuente para iniciar la búsqueda.

ReturnValue

Index of last found substring or -1 if not found. For empty lookup string, always returns string length.

Ver también

String::LastIndexOf(const String&, System::StringComparison) const method

Búsqueda hacia atrás de subcadena.

int System::String::LastIndexOf(const String &str, System::StringComparison comparison_type) const
ParámetroTipoDescripción
strconst String&Subcadena a buscar.
comparison_typeSystem::StringComparisonModo Comparison.

ReturnValue

Index of last found substring or -1 if not found. For empty lookup string, always returns string length.

Ver también

String::LastIndexOf(const String&, int, int, StringComparison) const method

Búsqueda hacia atrás de subcadena.

int System::String::LastIndexOf(const String &value, int startIndex, int count, StringComparison comparisonType) const
ParámetroTipoDescripción
valorconst String&Subcadena a buscar.
startIndexintPosición en la cadena fuente para iniciar la búsqueda.
countintNúmero de caracteres a examinar.
comparisonTypeStringComparisonModo Comparison.

ReturnValue

Index of last found substring or -1 if not found. For empty lookup string, always returns startIndex+count.

Ver también