UKismetStringLibrary::Reverse
#include "Kismet/KismetStringLibrary.h"
Access: public
Specifiers: staticBlueprintPure
Description
Returns a copy of a string with its characters in reverse order.
Caveats & Gotchas
- • Reverses by TCHAR code unit, so multi-byte or combining Unicode sequences can come out corrupted rather than mirrored.
Signature
static FString Reverse(const FString& SourceString) Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| SourceString | const FString& | The string to reverse. | — |
Return Type
FString Example
Reverse a string C++
FString Reversed = UKismetStringLibrary::Reverse(TEXT("Unreal"));
// Reversed == "laernU" Tags
Version History
Introduced in: unknown
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?