UE::String::ParseTokensMultiple

Parses every token in the input string, as separated by any of the delimiters.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/String/ParseTokens.h

Include

#include "String/ParseTokens.h"

Syntax

namespace UE
{
    namespace String
    {
        template<typename OutputType>
        void UE::String::ParseTokensMultiple
        (
            const FStringView View,
            const TConstArrayView< FStringView > Delimiters,
            OutputType & Output,
            const EParseTokensOptions Options
        )
    }
}

Remarks

Parses every token in the input string, as separated by any of the delimiters.

Output strings are sub-views of the input view and have the same lifetime as the input view. By default, comparisons with delimiters are case-sensitive and empty tokens are visited. Behavior is undefined when delimiters overlap each other, such as the delimiters ("AB, "BC") and the input string "1ABC2".

Parameters

Parameter

Description

View

A view of the string to split into tokens.

Delimiters

An array of non-overlapping non-empty delimiters to split on.

Output

The output to add parsed tokens to by calling Output.Add(FStringView).

Options

Flags to modify the default behavior.