FString::ParseIntoArrayWS

Breaks up a delimited string into elements of a string array, using any whitespace and an optional extra delimter, like a ","

Windows
MacOS
Linux

Warnings

  • Caution!! this routine is O(N^2) allocations...use it for parsing very short text or not at all!

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Containers/UnrealString.h

Include

#include "Containers/UnrealString.h"

Source

/Engine/Source/Runtime/Core/Private/Containers/String.cpp

Syntax

int32 ParseIntoArrayWS
(
    TArray< FString > & OutArray,
    const TCHAR * pchExtraDelim,
    bool InCullEmpty
) const

Remarks

Breaks up a delimited string into elements of a string array, using any whitespace and an optional extra delimter, like a ","

Caution!! this routine is O(N^2) allocations...use it for parsing very short text or not at all! Caution!! this routine is O(N^2) allocations...use it for parsing very short text or not at all

Returns

The number of elements in InArray

Parameters

Parameter

Description

InArray

The array to fill with the string pieces

pchExtraDelim

The string to delimit on

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss