System::String::IndexOf methode

String::IndexOf(char_t, int, int) const method

Voorwaartse zoekopdracht naar teken in substring.

int System::String::IndexOf(char_t c, int startIndex, int count) const
ParameterTypeBeschrijving
cchar_tTeken om naar te zoeken.
startIndexintIndex om de zoekopdracht te starten.
countintAantal tekens om door te zoeken.

ReturnValue

Index van de eerste tekenpositie vanaf startIndex of -1 als niet gevonden.

Zie ook

String::IndexOf(char_t, int) const method

Voorwaartse zoekopdracht naar teken.

int System::String::IndexOf(char_t c, int startIndex=0) const
ParameterTypeBeschrijving
cchar_tTeken om naar te zoeken.
startIndexintIndex om de zoekopdracht te starten.

ReturnValue

Index van de eerste tekenpositie vanaf startIndex of -1 als niet gevonden.

Zie ook

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

Voorwaartse zoekopdracht in substring.

int System::String::IndexOf(const String &str, int startIndex, int count) const
ParameterTypeBeschrijving
strconst String&Substring om naar te zoeken.
startIndexintPositie in de bronstring om de zoekopdracht te starten.
countintaantal tekens om door te zoeken.

ReturnValue

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

Zie ook

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

Voorwaartse zoekopdracht in substring.

int System::String::IndexOf(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 eerst gevonden substring of -1 indien niet gevonden. Voor een lege zoekstring wordt altijd startIndex geretourneerd.

Zie ook

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

Voorwaartse zoekopdracht in substring.

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

ReturnValue

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

Zie ook

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

Voorwaartse zoekopdracht in substring.

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

ReturnValue

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

Zie ook

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

Voorwaartse zoekopdracht in substring.

int System::String::IndexOf(const String &value, int startIndex, int count, System::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.
comparisonTypeSystem::StringComparisonComparison modus.

ReturnValue

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

Zie ook