UE::String::ParseTokens

Parses every token in the input string, as separated by the delimiter.

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::ParseTokens
        (
            const FStringView View,
            const FStringView Delimiter,
            OutputType & Output,
            const EParseTokensOptions Options
        )
    }
}

Remarks

Parses every token in the input string, as separated by the delimiter.

Output strings are sub-views of the input view and have the same lifetime as the input view. By default, comparisons with the delimiter are case-sensitive and empty tokens are visited.

Parameters

Parameter

Description

View

A view of the string to split into tokens.

Delimiter

A non-empty delimiter to split on.

Output

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

Options

Flags to modify the default behavior.