class
FName
- Module
- Core
- Header
#include "Core/FName.h"- Namespace
Mowo
Properties
| Type | Name | Description |
|---|---|---|
static const FName | None | |
bool operator<(FName other) | const | Ordering — lexicographic by string. Use FastLess for hash-table / unordered_map keys where stability across runs doesn't matter. |
Constructors
| Signature | Name | Description |
|---|---|---|
constexpr FName() = default | FName | Empty / sentinel FName. |
FName(std::string_view s) | FName | Intern a string. |
FName(const char* s) | FName | |
FName(const std::string& s) | FName | |
FName(std::string_view base, uint32_t number) | FName | Numbered name. |
Public functions
| Returns | Name | Description |
|---|---|---|
bool | IsNone | |
uint32_t | GetIndex | Raw pool index — debug / serialization only. |
uint32_t | GetNumber | |
bool | operator== | |
bool | operator!= | |
std::string | ToString | Returns the canonical case-preserved string (the casing of the first construction that interned this name). |
const std::string& | GetBaseString | String without the "_N" suffix — even for numbered FNames. |
Function details
FName
C++
constexpr FName() = defaultEmpty / 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 noexceptGetIndex
C++
uint32_t GetIndex() const noexceptRaw 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 noexceptoperator==
C++
bool operator==(FName other) const noexceptoperator!=
C++
bool operator!=(FName other) const noexceptToString
C++
std::string ToString() constReturns 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() constString without the "_N" suffix — even for numbered FNames.
Generated from Core/FName.h via core.json · Nov 5, 2026Version 1.0.0