System::String::LastIndexOf methode

String::LastIndexOf(char_t) const method

Karakter achterwaartse zoekopdracht.

int System::String::LastIndexOf(char_t value) const
ParameterTypeBeschrijving
valuechar_tTeken om naar te zoeken.

ReturnValue

Index van de laatste tekenpositie of -1 indien niet gevonden.

Zie ook

String::LastIndexOf(char_t, int32_t) const method

Karakter achterwaartse zoekopdracht.

int System::String::LastIndexOf(char_t value, int32_t startIndex) const
ParameterTypeBeschrijving
valuechar_tTeken om naar te zoeken.
startIndexint32_tIndex om de zoekopdracht te starten.

ReturnValue

Index van de laatste tekenpositie sinds startIndex of -1 indien niet gevonden.

Zie ook

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

Karakter achterwaartse zoekopdracht.

int System::String::LastIndexOf(char_t value, int32_t startIndex, int32_t count) const
ParameterTypeBeschrijving
valuechar_tTeken om naar te zoeken.
startIndexint32_tIndex om de zoekopdracht te starten.
countint32_tAantal tekens om door te zoeken

ReturnValue

Index van de laatste tekenpositie sinds startIndex of -1 indien niet gevonden.

Zie ook

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

Substring achterwaartse zoekopdracht.

int System::String::LastIndexOf(const String &str, int startIndex, System::StringComparison comparison_type) const
ParameterTypeBeschrijving
strconst String&Substring om naar te zoeken.
startIndexintPositie in de bronstring om de zoekopdracht te starten.
comparison_typeSystem::StringComparisonComparison modus.

ReturnValue

Index van de laatst gevonden substring of -1 indien niet gevonden. Voor een lege zoekstring wordt altijd de stringlengte geretourneerd.

Zie ook

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

Substring achterwaartse zoekopdracht.

int System::String::LastIndexOf(const String &str, int startIndex=INT32_MAX) const
ParameterTypeBeschrijving
strconst String&Substring om naar te zoeken.
startIndexintPositie in de bronstring om de zoekopdracht te starten.

ReturnValue

Index van de laatst gevonden substring of -1 indien niet gevonden. Voor een lege zoekstring wordt altijd de stringlengte geretourneerd.

Zie ook

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

Substring achterwaartse zoekopdracht.

int System::String::LastIndexOf(const String &str, System::StringComparison comparison_type) const
ParameterTypeBeschrijving
strconst String&Substring om naar te zoeken.
comparison_typeSystem::StringComparisonComparison modus.

ReturnValue

Index van de laatst gevonden substring of -1 indien niet gevonden. Voor een lege zoekstring wordt altijd de stringlengte geretourneerd.

Zie ook

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

Substring achterwaartse zoekopdracht.

int System::String::LastIndexOf(const String &value, int startIndex, int count, StringComparison comparisonType) const
ParameterTypeBeschrijving
valueconst String&Substring om naar te zoeken.
startIndexintPositie in de bronstring om de zoekopdracht te starten.
countintAantal tekens om door te zoeken.
comparisonTypeStringComparisonComparison modus.

ReturnValue

Index van de laatst gevonden substring of -1 indien niet gevonden. Voor een lege zoekstring wordt altijd startIndex+count geretourneerd.

Zie ook