Navigation
API > API/Runtime > API/Runtime/uLangCore > API/Runtime/uLangCore/uLang > API/Runtime/uLangCore/uLang/Common > API/Runtime/uLangCore/uLang/Common/Text
Inheritance Hierarchy
- CSharedMix
- CSymbolTable
References
| Module | uLangCore |
| Header | /Engine/Source/Runtime/Solaris/uLangCore/Public/uLang/Common/Text/Symbol.h |
| Include | #include "uLang/Common/Text/Symbol.h" |
Syntax
class CSymbolTable : public uLang::CSharedMix
Remarks
Database keeping track of symbols and their text equivalent.
Constructors
| Type | Name | Description | |
|---|---|---|---|
CSymbolTable
(
uint32_t NumHashBuckets, |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| TOptional< CSymbol > | Add
(
const CUTF8StringView& Text, |
Looks up a symbol by text, and if not present yet, adds it. Return empty optional if text is to long. | |
| CSymbol | AddChecked
(
const CUTF8StringView& Text, |
Looks up a symbol by text, and if not present yet, adds it. Asserts if text is to long. | |
| TOptional< CSymbol > | Find
(
const CUTF8StringView& Text, |
Looks up a symbol by text. | |
| CSymbol | Gets a symbol by id - id must exist. | ||
| void | Remaps a symbol from another symbol table to this symbol table I.e. |
Constants
| Name | Description |
|---|---|
| _EntryNull | Entry representing the null symbol (= empty string) |
| MaxSymbolLength | The max length of a symbol. |