FString::ToUpper
#include "Containers/UnrealString.h"
Access: public
Specifiers: const
Description
Returns a new FString with all characters converted to uppercase. Does not modify the original string.
Signature
[[nodiscard]] FString ToUpper() const & Return Type
FString Caveats & Gotchas
- • Returns a new string; use ToUpperInline() for in-place conversion without a heap allocation.
- • Uses simple ASCII/UCS2 uppercasing — not full Unicode case folding.
Example
Uppercase for display C++
FString Tag = TEXT("important");
FString Display = Tag.ToUpper(); // "IMPORTANT"
// In-place:
Tag.ToUpperInline(); See Also
Tags
Version History
Introduced in: 4.0
| Version | Status | Notes |
|---|---|---|
| 5.6 | stable | — |
Feedback
Was this helpful?