![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <InternationalizationMetadata.h>
Static Public Member Functions | |
| static CORE_API bool | IsMetadataExactMatch (const FLocMetadataObject *const MetadataA, const FLocMetadataObject *const MetadataB) |
Public Attributes | |
| TMap< FString, TSharedPtr< FLocMetadataValue > > | Values |
Static Public Attributes | |
| static CORE_API const TCHAR * | COMPARISON_MODIFIER_PREFIX = TEXT("*") |
Friends | |
| CORE_API friend FArchive & | operator<< (FArchive &Archive, FLocMetadataObject &Object) |
| CORE_API friend void | operator<< (FStructuredArchive::FSlot Slot, FLocMetadataObject &Object) |
A LocMetadata Object is a structure holding an unordered set of name/value pairs.
|
inline |
| FLocMetadataObject::FLocMetadataObject | ( | const FLocMetadataObject & | Other | ) |
Copy ctor
| TArray< TSharedPtr< FLocMetadataValue > > FLocMetadataObject::GetArrayField | ( | const FString & | FieldName | ) |
Get the field named FieldName as an array. Ensures that the field is present and is of type LocMetadata Array.
| bool FLocMetadataObject::GetBoolField | ( | const FString & | FieldName | ) |
Get the field named FieldName as a boolean. Ensures that the field is present and is of type LocMetadata boolean.
|
inline |
| TSharedPtr< FLocMetadataObject > FLocMetadataObject::GetObjectField | ( | const FString & | FieldName | ) |
Get the field named FieldName as a LocMetadata object. Ensures that the field is present and is a LocMetadata object
| FString FLocMetadataObject::GetStringField | ( | const FString & | FieldName | ) |
Get the field named FieldName as a string. Ensures that the field is present and is of type LocMetadata string.
|
inline |
Checks to see if the FieldName exists in the object.
|
inline |
Checks to see if the FieldName exists in the object, and has the specified type.
| bool FLocMetadataObject::IsExactMatch | ( | const FLocMetadataObject & | Other | ) | const |
Similar functionality to == operator but ensures everything matches(ignores COMPARISON_MODIFIER_PREFIX).
|
static |
| bool FLocMetadataObject::operator< | ( | const FLocMetadataObject & | Other | ) | const |
| FLocMetadataObject & FLocMetadataObject::operator= | ( | const FLocMetadataObject & | Other | ) |
| bool FLocMetadataObject::operator== | ( | const FLocMetadataObject & | Other | ) | const |
| void FLocMetadataObject::RemoveField | ( | const FString & | FieldName | ) |
| void FLocMetadataObject::SetArrayField | ( | const FString & | FieldName, |
| const TArray< TSharedPtr< FLocMetadataValue > > & | Array | ||
| ) |
Set an array field named FieldName and value of Array
Set a boolean field named FieldName and value of InValue
| void FLocMetadataObject::SetField | ( | const FString & | FieldName, |
| const TSharedPtr< FLocMetadataValue > & | Value | ||
| ) |
| void FLocMetadataObject::SetObjectField | ( | const FString & | FieldName, |
| const TSharedPtr< FLocMetadataObject > & | LocMetadataObject | ||
| ) |
Set an ObjectField named FieldName and value of LocMetadataObject
| void FLocMetadataObject::SetStringField | ( | const FString & | FieldName, |
| const FString & | StringValue | ||
| ) |
Add a field named FieldName with value of StringValue
| FString FLocMetadataObject::ToString | ( | ) | const |
|
friend |
|
friend |
Special reserved character. When encountered as a prefix metadata name(the key in the Values map), it will adjust the way comparisons are done.
| TMap< FString, TSharedPtr<FLocMetadataValue> > FLocMetadataObject::Values |
Stores the name/value pairs for the metadata object