libdcp
|
Classes | |
class | ExtlangSubtag |
class | LanguageSubtag |
class | RegionSubtag |
class | ScriptSubtag |
class | Subtag |
struct | SubtagData |
class | VariantSubtag |
Public Types | |
enum class | SubtagType { LANGUAGE , SCRIPT , REGION , VARIANT , EXTLANG } |
Public Member Functions | |
std::string | to_string () const |
std::string | description () const |
LanguageTag (std::string tag) | |
boost::optional< LanguageSubtag > | language () const |
void | set_language (LanguageSubtag language) |
boost::optional< ScriptSubtag > | script () const |
void | set_script (ScriptSubtag script) |
boost::optional< RegionSubtag > | region () const |
void | set_region (RegionSubtag region) |
std::vector< VariantSubtag > | variants () const |
void | set_variants (std::vector< VariantSubtag > variants) |
void | add_variant (VariantSubtag variant) |
std::vector< ExtlangSubtag > | extlangs () const |
void | set_extlangs (std::vector< ExtlangSubtag > extlangs) |
void | add_extlang (ExtlangSubtag extlang) |
std::vector< std::pair< SubtagType, SubtagData > > | subtags () const |
Static Public Member Functions | |
static std::vector< SubtagData > const & | get_all (SubtagType type) |
static std::string | subtag_type_name (SubtagType type) |
static boost::optional< std::string > | get_subtag_description (SubtagType, std::string subtag) |
static boost::optional< SubtagData > | get_subtag_data (SubtagType, std::string subtag) |
template<class T > | |
static boost::optional< std::string > | get_subtag_description (T s) |
template<class T > | |
static boost::optional< SubtagData > | get_subtag_data (T s) |
Private Attributes | |
boost::optional< LanguageSubtag > | _language |
boost::optional< ScriptSubtag > | _script |
boost::optional< RegionSubtag > | _region |
std::vector< VariantSubtag > | _variants |
std::vector< ExtlangSubtag > | _extlangs |
Definition at line 53 of file language_tag.h.