LibreOffice Module i18nutil (master) 1
|
#include <com/sun/star/i18n/UnicodeType.hpp>
#include <com/sun/star/i18n/ScriptType.hpp>
#include <i18nlangtag/languagetag.hxx>
#include <i18nlangtag/languagetagicu.hxx>
#include <i18nutil/unicode.hxx>
#include <sal/log.hxx>
#include <unicode/numfmt.h>
#include <unicode/uchar.h>
#include "unicode_data.h"
#include <rtl/character.hxx>
#include <o3tl/string_view.hxx>
#include <memory>
Go to the source code of this file.
Macros | |
#define | bit(name) (1U << name) |
#define | UPPERMASK bit(UnicodeType::UPPERCASE_LETTER) |
#define | LOWERMASK bit(UnicodeType::LOWERCASE_LETTER) |
#define | TITLEMASK bit(UnicodeType::TITLECASE_LETTER) |
#define | ALPHAMASK |
#define | SPACEMASK |
#define | CONTROLMASK |
#define | IsType(func, mask) |
#define | CONTROLSPACE |
Functions | |
template<class L , typename T > | |
static T | getScriptType (const sal_Unicode ch, const L *typeList, T unknownType) |
IsType (unicode::isControl, CONTROLMASK) IsType(unicode | |
#define ALPHAMASK |
Definition at line 203 of file unicode.cxx.
Definition at line 195 of file unicode.cxx.
#define CONTROLMASK |
Definition at line 211 of file unicode.cxx.
#define CONTROLSPACE |
#define IsType | ( | func, | |
mask | |||
) |
Definition at line 216 of file unicode.cxx.
#define LOWERMASK bit(UnicodeType::LOWERCASE_LETTER) |
Definition at line 199 of file unicode.cxx.
#define SPACEMASK |
Definition at line 207 of file unicode.cxx.
#define TITLEMASK bit(UnicodeType::TITLECASE_LETTER) |
Definition at line 201 of file unicode.cxx.
#define UPPERMASK bit(UnicodeType::UPPERCASE_LETTER) |
Definition at line 197 of file unicode.cxx.
|
static |
Definition at line 41 of file unicode.cxx.
References ch, from, i, ScriptTypeList::to, type, typeList, UnicodeScriptType, UnicodeScriptTypeFrom, UnicodeScriptTypeTo, and ScriptTypeList::value.
Referenced by unicode::getUnicodeScriptType().
IsType | ( | unicode::isControl | , |
CONTROLMASK | |||
) |
Definition at line 221 of file unicode.cxx.
References bit, ch, CONTROLSPACE, and unicode::isSpace().