class
FStringUtils
- Module
- Core
- Header
#include "Core/FStringUtils.h"- Namespace
Mowo
Public functions
| Returns | Name | Description |
|---|---|---|
std::string | ToUpper | |
std::string | ToLower | |
void | ToUpperInPlace | |
void | ToLowerInPlace | |
bool | EqualsIgnoreCase | |
std::string | Trimmed | Whitespace per std::isspace — ASCII only, not unicode. |
void | TrimInPlace | |
std::vector<std::string> | Split | Empty segments are preserved: "a,b,,c" on ',' → ["a", "b", "", "c"]. |
std::vector<std::string> | SplitAny | Splits on any one of the chars in delimiters. |
bool | ReplaceFirst | Returns true if a replacement happened. |
size_t | ReplaceAll | Returns the number of replacements. |
bool | StartsWith | |
bool | EndsWith | |
std::string | Join | |
std::wstring | WideFromUtf8 | UTF-8 <-> native wide (UTF-16 on Windows, UTF-32 elsewhere). |
std::string | Utf8FromWide |
Function details
ToUpper
C++
static std::string ToUpper(std::string_view s)ToLower
C++
static std::string ToLower(std::string_view s)ToUpperInPlace
C++
static void ToUpperInPlace(std::string& s)ToLowerInPlace
C++
static void ToLowerInPlace(std::string& s)EqualsIgnoreCase
C++
static bool EqualsIgnoreCase(std::string_view a, std::string_view b)Trimmed
C++
static std::string Trimmed(std::string_view s)Whitespace per std::isspace — ASCII only, not unicode.
TrimInPlace
C++
static void TrimInPlace(std::string& s)Split
C++
static std::vector<std::string> Split(std::string_view s, char delimiter)Empty segments are preserved: "a,b,,c" on ',' → ["a", "b", "", "c"].
SplitAny
C++
static std::vector<std::string> SplitAny(std::string_view s, std::string_view delimiters)Splits on any one of the chars in delimiters.
ReplaceFirst
C++
static bool ReplaceFirst(std::string& s, std::string_view find, std::string_view replacement)Returns true if a replacement happened.
ReplaceAll
C++
static size_t ReplaceAll(std::string& s, std::string_view find, std::string_view replacement)Returns the number of replacements.
StartsWith
C++
static bool StartsWith(std::string_view s, std::string_view prefix) noexceptEndsWith
C++
static bool EndsWith(std::string_view s, std::string_view suffix) noexceptJoin
C++
static std::string Join(const std::vector<std::string>& parts, std::string_view separator)WideFromUtf8
C++
static std::wstring WideFromUtf8(std::string_view s)UTF-8 <-> native wide (UTF-16 on Windows, UTF-32 elsewhere). Never widen with std::wstring(s.begin(), s.end()) — that is a byte cast and mangles every non-ASCII path.
Utf8FromWide
C++
static std::string Utf8FromWide(std::wstring_view s)Generated from Core/FStringUtils.h via core.json · Nov 5, 2026Version 1.0.0