A global deduplicated name stored in the global name table. 更多...
#include <NameTypes.h>
Public 成员函数 | |
| CORE_API void | AppendAnsiNameToString (FAnsiStringBuilderBase &OutString) const |
| Appends name to string builder. 更多... | |
| CORE_API void | AppendNameToPathString (FString &OutString) const |
| Appends name to string with path separator using FString::PathAppend(). | |
| CORE_API void | AppendNameToString (FString &OutString) const |
| Appends name to string. 更多... | |
| CORE_API void | AppendNameToString (FStringBuilderBase &OutString) const |
| Appends name to string builder. | |
| CORE_API void | GetAnsiName (ANSICHAR(&OutName)[NAME_SIZE]) const |
| Copy null-terminated name to ANSICHAR buffer without allocating. 更多... | |
| void | GetName (TCHAR(&OutName)[NAME_SIZE]) const |
| Copy null-terminated name to TCHAR buffer without allocating. | |
| CORE_API FString | GetPlainNameString () const |
| Copy name to a dynamically allocated FString. | |
| CORE_API void | GetPlainNameString (FStringBuilderBase &OutString) const |
| Copy name to a FStringBuilderBase. | |
| void | GetUnterminatedName (TCHAR *OutName, uint32 OutSize) const |
| Copy unterminated name to TCHAR buffer without allocating. 更多... | |
| CORE_API void | GetWideName (WIDECHAR(&OutName)[NAME_SIZE]) const |
| Copy null-terminated name to WIDECHAR buffer without allocating. 更多... | |
| FORCEINLINE bool | IsWide () const |
| Returns whether this name entry is represented via WIDECHAR or ANSICHAR. | |
静态 Public 成员函数 | |
| static int32 | GetSize (int32 Length, bool bIsPureAnsi) |
| Returns the size in bytes for FNameEntry structure. 更多... | |
友元 | |
| class | FName |
A global deduplicated name stored in the global name table.
| CORE_API void FNameEntry::AppendAnsiNameToString | ( | FAnsiStringBuilderBase & | OutString | ) | const |
Appends name to string builder.
Entry must not be wide.
| CORE_API void FNameEntry::AppendNameToString | ( | FString & | OutString | ) | const |
Appends name to string.
May allocate.
| CORE_API void FNameEntry::GetAnsiName | ( | ANSICHAR(&) | OutName[NAME_SIZE] | ) | const |
Copy null-terminated name to ANSICHAR buffer without allocating.
Entry must not be wide.
|
static |
Returns the size in bytes for FNameEntry structure.
This is != sizeof(FNameEntry) as we only allocated as needed.
| Length | Length of name |
| bIsPureAnsi | Whether name is pure ANSI or not |
| void FNameEntry::GetUnterminatedName | ( | TCHAR * | OutName, |
| uint32 | OutSize | ||
| ) | const |
Copy unterminated name to TCHAR buffer without allocating.
| OutSize | must be at least GetNameLength() |
| CORE_API void FNameEntry::GetWideName | ( | WIDECHAR(&) | OutName[NAME_SIZE] | ) | const |
Copy null-terminated name to WIDECHAR buffer without allocating.
Entry must be wide.