class

FName

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

Properties

TypeNameDescription
static const FNameNone
bool operator<(FName other)constOrdering — lexicographic by string. Use FastLess for hash-table / unordered_map keys where stability across runs doesn't matter.

Constructors

SignatureNameDescription
constexpr FName() = defaultFNameEmpty / sentinel FName.
FName(std::string_view s)FNameIntern a string.
FName(const char* s)FName
FName(const std::string& s)FName
FName(std::string_view base, uint32_t number)FNameNumbered name.

Public functions

ReturnsNameDescription
boolIsNone
uint32_tGetIndexRaw pool index — debug / serialization only.
uint32_tGetNumber
booloperator==
booloperator!=
std::stringToStringReturns the canonical case-preserved string (the casing of the first construction that interned this name).
const std::string&GetBaseStringString without the "_N" suffix — even for numbered FNames.

Function details

FName

C++
constexpr FName() = default

Empty / sentinel FName. ToString() == "" and IsNone() == true.

FName

C++
FName(std::string_view s)

Intern a string. Case-insensitive equivalent strings collapse to the same pool entry.

FName

C++
FName(const char* s)

FName

C++
FName(const std::string& s)

FName

C++
FName(std::string_view base, uint32_t number)

Numbered name. Shares the base name's pool entry; compares equal only to FNames with the same base AND the same suffix.

IsNone

C++
bool IsNone() const noexcept

GetIndex

C++
uint32_t GetIndex() const noexcept

Raw pool index — debug / serialization only. Not stable across separate process runs (different intern order produces different indices). Persist ToString() for cross-process storage.

GetNumber

C++
uint32_t GetNumber() const noexcept

operator==

C++
bool operator==(FName other) const noexcept

operator!=

C++
bool operator!=(FName other) const noexcept

ToString

C++
std::string ToString() const

Returns the canonical case-preserved string (the casing of the first construction that interned this name). When this FName has a non-zero number, the returned string includes the "_N" suffix.

GetBaseString

C++
const std::string& GetBaseString() const

String without the "_N" suffix — even for numbered FNames.

Generated from Core/FName.h via core.json · Nov 5, 2026Version 1.0.0