|
DUDS
|
Distributed Update of Data from Something
|
Holds a string and its associated language. More...
#include <LanguageTaggedString.hpp>
Public Member Functions | |
| bool | operator< (const LanguageTaggedString <s) const |
| Compares two for sorting. More... | |
Public Attributes | |
| std::string | string |
| A string encoded in UTF-8. More... | |
| std::string | tag |
| The IETF language tag, RFC 5646, maybe. More... | |
Private Member Functions | |
| template<class A > | |
| void | serialize (A &a, const unsigned int) |
Friends | |
| class | boost::serialization::access |
Holds a string and its associated language.
Definition at line 23 of file LanguageTaggedString.hpp.
|
inline |
Compares two for sorting.
Definition at line 41 of file LanguageTaggedString.hpp.
|
inlineprivate |
Definition at line 52 of file LanguageTaggedString.hpp.
|
friend |
Definition at line 49 of file LanguageTaggedString.hpp.
| std::string duds::general::LanguageTaggedString::string |
A string encoded in UTF-8.
Definition at line 36 of file LanguageTaggedString.hpp.
Referenced by duds::data::GenericValueStringVisitor::operator()(), and operator<().
| std::string duds::general::LanguageTaggedString::tag |
The IETF language tag, RFC 5646, maybe.
When strings are searched by a langauge tag, an exact match is preferred, while something close should be attempted next. Such a process may be complex, may need a set of pre-made language tags to search for in priority order, or may need something other than IETF tags to make it easier to find non-exact close matches.
Definition at line 32 of file LanguageTaggedString.hpp.
Referenced by operator<().