#include <stringresource.h>
Class that handles string resources.
Public Member Functions | |
MAXON_METHOD String | LoadResourceString (const Id &scope, const InternedId &keyValue) |
MAXON_METHOD String | GetName () const |
MAXON_METHOD Id | GetIdentifier () const |
MAXON_METHOD LanguageRef | GetFallbackLanguage () const |
MAXON_METHOD String | ToString (const maxon::FormatStatement *fs=nullptr) const |
Static Public Member Functions | |
static MAXON_METHOD LanguageInterface * | Alloc (MAXON_SOURCE_LOCATION_DECLARATION) |
Private Member Functions | |
MAXON_INTERFACE_NONVIRTUAL (LanguageInterface, MAXON_REFERENCE_NORMAL, "net.maxon.interface.language") | |
|
private |
|
static |
Allocator for common use.
[in] | allocLocation | Source location. |
MAXON_METHOD String LoadResourceString | ( | const Id & | scope, |
const InternedId & | keyValue | ||
) |
Loads a string from the resource.
[in] | scope | The resource scope of a resource symbol. |
[in] | keyValue | The value of a resource symbol. |
MAXON_METHOD String GetName | ( | ) | const |
Returns the real (country-specific) name of a language.
MAXON_METHOD Id GetIdentifier | ( | ) | const |
Returns the identifier of a language.
MAXON_METHOD LanguageRef GetFallbackLanguage | ( | ) | const |
Returns the fallback language of this language.
MAXON_METHOD String ToString | ( | const maxon::FormatStatement * | fs = nullptr | ) | const |