class

FStringUtils

Module
Core
Header
#include "Core/FStringUtils.h"
Namespace
Mowo

Public functions

ReturnsNameDescription
std::stringToUpper
std::stringToLower
voidToUpperInPlace
voidToLowerInPlace
boolEqualsIgnoreCase
std::stringTrimmedWhitespace per std::isspace — ASCII only, not unicode.
voidTrimInPlace
std::vector<std::string>SplitEmpty segments are preserved: "a,b,,c" on ',' → ["a", "b", "", "c"].
std::vector<std::string>SplitAnySplits on any one of the chars in delimiters.
boolReplaceFirstReturns true if a replacement happened.
size_tReplaceAllReturns the number of replacements.
boolStartsWith
boolEndsWith
std::stringJoin
std::wstringWideFromUtf8UTF-8 <-> native wide (UTF-16 on Windows, UTF-32 elsewhere).
std::stringUtf8FromWide

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) noexcept

EndsWith

C++
static bool EndsWith(std::string_view s, std::string_view suffix) noexcept

Join

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