System::String::Split method

String::Split(char_t, int32_t, StringSplitOptions) const method

Splits string by character.

ArrayPtr<String> System::String::Split(char_t separator, int32_t count, StringSplitOptions opt=StringSplitOptions::None) const
ParameterTypeDescription
separatorchar_tCharacter to split string by.
countint32_tThe maximum number of substrings to return.
optStringSplitOptionsSplitting options.

ReturnValue

Array of substrings.

See Also

String::Split(char_t, StringSplitOptions) const method

Splits string by character.

ArrayPtr<String> System::String::Split(char_t separator=u' ', StringSplitOptions opt=StringSplitOptions::None) const
ParameterTypeDescription
separatorchar_tCharacter to split string by.
optStringSplitOptionsSplitting options.

ReturnValue

Array of substrings.

See Also

String::Split(char_t, char_t, StringSplitOptions) const method

Splits string by one of two characters.

ArrayPtr<String> System::String::Split(char_t separatorA, char_t separatorB, StringSplitOptions opt=StringSplitOptions::None) const
ParameterTypeDescription
separatorAchar_tFirst character to split string by.
separatorBchar_tSecond character to split string by.
optStringSplitOptionsSplitting options.

ReturnValue

Array of substrings.

See Also

String::Split(const ArrayPtr<char_t>&, int32_t, StringSplitOptions) const method

Splits string by one of characters specified.

ArrayPtr<String> System::String::Split(const ArrayPtr<char_t> &separators, int32_t count, StringSplitOptions opt=StringSplitOptions::None) const
ParameterTypeDescription
separatorsconst ArrayPtr<char_t>&Array of separator characters. If empty, any whitespace character is considered a separator.
countint32_tThe maximum number of substrings to return.
optStringSplitOptionsSplitting options.

ReturnValue

Array of substrings.

See Also

String::Split(const ArrayPtr<char_t>&, StringSplitOptions) const method

Splits string by one of characters specified.

ArrayPtr<String> System::String::Split(const ArrayPtr<char_t> &separators, StringSplitOptions opt=StringSplitOptions::None) const
ParameterTypeDescription
separatorsconst ArrayPtr<char_t>&Array of separator characters. If empty, any whitespace character is considered a separator.
optStringSplitOptionsSplitting options.

ReturnValue

Array of substrings.

See Also

String::Split(const ArrayPtr<String>&, int, StringSplitOptions) const method

Splits string by substring. Currently, only supports separators array of zero or one elements.

ArrayPtr<String> System::String::Split(const ArrayPtr<String> &separators, int count, StringSplitOptions opt=StringSplitOptions::None) const
ParameterTypeDescription
separatorsconst ArrayPtr<String>&Array of separator strings. If empty, no splitting is done.
countintMax number of elements in splits array.
optStringSplitOptionsSplitting options.

ReturnValue

Array of substrings.

See Also

String::Split(const ArrayPtr<String>&, StringSplitOptions) const method

Splits string by substring.

ArrayPtr<String> System::String::Split(const ArrayPtr<String> &separators, StringSplitOptions opt=StringSplitOptions::None) const
ParameterTypeDescription
separatorsconst ArrayPtr<String>&Array of separator strings. If empty, no splitting is done.
optStringSplitOptionsSplitting options.

ReturnValue

Array of substrings.

See Also

String::Split(const String&, int, StringSplitOptions) const method

Splits string by substring.

ArrayPtr<String> System::String::Split(const String &separator, int count, StringSplitOptions opt=StringSplitOptions::None) const
ParameterTypeDescription
separatorconst String&Substring acting as separator. If empty, whitespace character acts as separator.
countintMax number of elements in splits array.
optStringSplitOptionsSplitting options.

ReturnValue

Array of substrings.

See Also

String::Split(const String&, StringSplitOptions) const method

Splits string by substring.

ArrayPtr<String> System::String::Split(const String &separator, StringSplitOptions opt=StringSplitOptions::None) const
ParameterTypeDescription
separatorconst String&Substring acting as separator. If empty, whitespace character acts as separator.
optStringSplitOptionsSplitting options.

ReturnValue

Array of substrings.

See Also