Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
ListFormatter.h File Reference
#include <cstdint>
#include <string>
#include <string_view>
#include <utility>
#include <vector>

Classes

class  KODI::UTILS::I18N::CListFormatter
 Immutable list formatter. Joins items using locale-aware list patterns. Depending on the ListFormatType, the final item may use a conjunction or only a separator. More...
 
struct  KODI::UTILS::I18N::CListFormatter::Patterns
 The four CLDR list patterns. Each uses {0} and {1} placeholders. More...
 

Namespaces

namespace  KODI
 
namespace  KODI::UTILS
 
namespace  KODI::UTILS::I18N
 

Enumerations

enum class  KODI::UTILS::I18N::ListFormatType { KODI::UTILS::I18N::AND , KODI::UTILS::I18N::OR , KODI::UTILS::I18N::UNITS }
 List conjunction type, mirroring ICU UListFormatterType. More...
 
enum class  KODI::UTILS::I18N::ListFormatWidth { KODI::UTILS::I18N::WIDE , KODI::UTILS::I18N::SHORT , KODI::UTILS::I18N::NARROW }
 List width, mirroring ICU UListFormatterWidth. More...
 

Variables

constexpr uint32_t KODI::UTILS::I18N::STR_LIST_AND_TWO = 39900
 
constexpr uint32_t KODI::UTILS::I18N::STR_LIST_AND_START = 39901
 
constexpr uint32_t KODI::UTILS::I18N::STR_LIST_AND_MIDDLE = 39902
 
constexpr uint32_t KODI::UTILS::I18N::STR_LIST_AND_END = 39903
 
constexpr uint32_t KODI::UTILS::I18N::STR_LIST_OR_TWO = 39910
 
constexpr uint32_t KODI::UTILS::I18N::STR_LIST_OR_END = 39911