RealDocs

UKismetStringLibrary::JoinStringArray

function Engine Blueprint Since unknown
#include "Kismet/KismetStringLibrary.h"
Access: public Specifiers: staticBlueprintPure

Description

Concatenates all elements of SourceArray into a single string, inserting Separator between each element.

Caveats & Gotchas

  • An empty SourceArray returns an empty string rather than just the separator or an error.
  • The complement to ParseIntoArray; round-tripping through both is only lossless if none of the elements themselves contain the separator.

Signature

static FString JoinStringArray(const TArray<FString>& SourceArray, const FString& Separator = FString(TEXT(" ")))

Parameters

Name Type Description Default
SourceArray const TArray<FString>& The array of strings to concatenate.
Separator const FString& The string used to separate each element. FString(TEXT(" "))

Return Type

FString

Example

Join tags back into a comma-separated string C++
FString TagString = UKismetStringLibrary::JoinStringArray(Tags, TEXT(", "));

Version History

Introduced in: unknown

Version Status Notes
5.6 stable

Feedback

Was this helpful?

Suggest an edit

Select a field above to begin editing.