LibreOffice Module i18nutil (master) 1
Classes | Typedefs | Functions | Variables
i18nutil Namespace Reference

Classes

struct  decomposition_table_entry_t
 
struct  Mapping
 
struct  MappingElement
 
struct  OneToOneMappingTable_t
 
class  oneToOneMappingWithFlag
 
struct  SearchOptions2
 This is a wrapper around com::sun::star::util::SearchOptions and SearchOptions2, but using the more type-safe TransliterationFlags enum, and without obsolete algorithmType, which is superseded by AlgorithmType2. More...
 
struct  UnicodePairWithFlag
 
struct  Value
 

Typedefs

typedef sal_Int8 UnicodePairFlag
 

Functions

static bool cased_letter (sal_Unicode ch)
 
static bool is_ja_voice_sound_mark (sal_Unicode &current, sal_Unicode next)
 
class UNLESS_MERGELIBS (I18NUTIL_DLLPUBLIC) casefolding
 
constexpr css::util::SearchAlgorithms downgradeSearchAlgorithms2 (sal_Int16 searchAlgorithms2)
 
constexpr sal_Int16 upgradeSearchAlgorithms (css::util::SearchAlgorithms searchAlgorithms)
 

Variables

const Mapping mapping_03a3 [] = {{0, 1, {0x03c2, 0, 0}},{0, 1, {0x03c3, 0, 0}}}
 
const Mapping mapping_0307 [] = {{0, 0, {0, 0, 0}},{0, 1, {0x0307, 0, 0}}}
 
const Mapping mapping_004a [] = {{0, 2, {0x006a, 0x0307, 0}},{0, 1, {0x006a, 0, 0}}}
 
const Mapping mapping_012e [] = {{0, 2, {0x012f, 0x0307, 0}},{0, 1, {0x012f, 0, 0}}}
 
const Mapping mapping_00cc [] = {{0, 3, {0x0069, 0x0307, 0x0300}},{0, 1, {0x00ec, 0, 0}}}
 
const Mapping mapping_00cd [] = {{0, 3, {0x0069, 0x0307, 0x0301}},{0, 1, {0x00ed, 0, 0}}}
 
const Mapping mapping_0128 [] = {{0, 3, {0x0069, 0x0307, 0x0303}},{0, 1, {0x0129, 0, 0}}}
 
const Mapping mapping_0049 [] = {{0, 2, {0x0069, 0x0307, 0}},{0, 1, {0x0131, 0, 0}},{0, 1, {0x0069, 0, 0}}}
 
const Mapping mapping_0069 [] = {{0, 1, {0x0130, 0, 0}},{0, 1, {0x0049, 0, 0}}}
 
const Mapping mapping_0130 [] = {{0, 1, {0x0069, 0, 0}},{0, 1, {0x0130, 0, 0}}}
 
const sal_Int8 CaseMappingIndex []
 
const Value CaseMappingValue []
 
Mapping const CaseMappingExtra []
 
const decomposition_table_entry_t decomposition_table []
 
UnicodePairWithFlag const full2half []
 
const sal_Unicode composition_table [][2]
 
UnicodePairWithFlag const half2full []
 
constexpr double monthDaysWithoutJanFeb = (365 - 31 - 28) / 10.0
 This number shows month days without Jan and Feb. More...
 

Typedef Documentation

◆ UnicodePairFlag

Definition at line 34 of file oneToOneMapping.hxx.

Function Documentation

◆ cased_letter()

static bool i18nutil::cased_letter ( sal_Unicode  ch)
static

Definition at line 52 of file casefolding.cxx.

References CasedLetterMask, CaseMappingIndex, CaseMappingValue, ch, and type.

◆ downgradeSearchAlgorithms2()

constexpr css::util::SearchAlgorithms i18nutil::downgradeSearchAlgorithms2 ( sal_Int16  searchAlgorithms2)
inlineconstexpr

Definition at line 33 of file searchopt.hxx.

Referenced by i18nutil::SearchOptions2::toUnoSearchOptions2().

◆ is_ja_voice_sound_mark()

static bool i18nutil::is_ja_voice_sound_mark ( sal_Unicode current,
sal_Unicode  next 
)
static

Definition at line 174 of file casefolding.cxx.

◆ UNLESS_MERGELIBS()

class i18nutil::UNLESS_MERGELIBS ( I18NUTIL_DLLPUBLIC  )
Exceptions
css::uno::RuntimeException
css::uno::RuntimeException
css::uno::RuntimeException

Definition at line 1 of file casefolding.hxx.

References Locale.

◆ upgradeSearchAlgorithms()

constexpr sal_Int16 i18nutil::upgradeSearchAlgorithms ( css::util::SearchAlgorithms  searchAlgorithms)
inlineconstexpr

Definition at line 49 of file searchopt.hxx.

Variable Documentation

◆ CaseMappingExtra

Mapping const i18nutil::CaseMappingExtra[]

Definition at line 496 of file casefolding_data.h.

◆ CaseMappingIndex

const sal_Int8 i18nutil::CaseMappingIndex[]

Definition at line 26 of file casefolding_data.h.

Referenced by cased_letter().

◆ CaseMappingValue

const Value i18nutil::CaseMappingValue[]

Definition at line 62 of file casefolding_data.h.

Referenced by cased_letter().

◆ composition_table

const sal_Unicode i18nutil::composition_table[][2]

Definition at line 494 of file widthfolding_data.h.

◆ decomposition_table

const decomposition_table_entry_t i18nutil::decomposition_table[]

Definition at line 44 of file widthfolding_data.h.

◆ full2half

UnicodePairWithFlag const i18nutil::full2half[]

Definition at line 251 of file widthfolding_data.h.

◆ half2full

UnicodePairWithFlag const i18nutil::half2full[]

Definition at line 701 of file widthfolding_data.h.

◆ mapping_0049

const Mapping i18nutil::mapping_0049[] = {{0, 2, {0x0069, 0x0307, 0}},{0, 1, {0x0131, 0, 0}},{0, 1, {0x0069, 0, 0}}}

Definition at line 43 of file casefolding.cxx.

◆ mapping_004a

const Mapping i18nutil::mapping_004a[] = {{0, 2, {0x006a, 0x0307, 0}},{0, 1, {0x006a, 0, 0}}}

Definition at line 38 of file casefolding.cxx.

◆ mapping_0069

const Mapping i18nutil::mapping_0069[] = {{0, 1, {0x0130, 0, 0}},{0, 1, {0x0049, 0, 0}}}

Definition at line 44 of file casefolding.cxx.

◆ mapping_00cc

const Mapping i18nutil::mapping_00cc[] = {{0, 3, {0x0069, 0x0307, 0x0300}},{0, 1, {0x00ec, 0, 0}}}

Definition at line 40 of file casefolding.cxx.

◆ mapping_00cd

const Mapping i18nutil::mapping_00cd[] = {{0, 3, {0x0069, 0x0307, 0x0301}},{0, 1, {0x00ed, 0, 0}}}

Definition at line 41 of file casefolding.cxx.

◆ mapping_0128

const Mapping i18nutil::mapping_0128[] = {{0, 3, {0x0069, 0x0307, 0x0303}},{0, 1, {0x0129, 0, 0}}}

Definition at line 42 of file casefolding.cxx.

◆ mapping_012e

const Mapping i18nutil::mapping_012e[] = {{0, 2, {0x012f, 0x0307, 0}},{0, 1, {0x012f, 0, 0}}}

Definition at line 39 of file casefolding.cxx.

◆ mapping_0130

const Mapping i18nutil::mapping_0130[] = {{0, 1, {0x0069, 0, 0}},{0, 1, {0x0130, 0, 0}}}

Definition at line 45 of file casefolding.cxx.

◆ mapping_0307

const Mapping i18nutil::mapping_0307[] = {{0, 0, {0, 0, 0}},{0, 1, {0x0307, 0, 0}}}

Definition at line 37 of file casefolding.cxx.

◆ mapping_03a3

const Mapping i18nutil::mapping_03a3[] = {{0, 1, {0x03c2, 0, 0}},{0, 1, {0x03c3, 0, 0}}}

Definition at line 36 of file casefolding.cxx.

◆ monthDaysWithoutJanFeb

constexpr double i18nutil::monthDaysWithoutJanFeb = (365 - 31 - 28) / 10.0
constexpr

This number shows month days without Jan and Feb.

According to the article, it is calculated as (365-31-28)/10 = 30.6, but because of a floating point bug, it was used as 30.6001 as a workaround.

"30.6001, 25 year old hack?" https://www.hpmuseum.org/cgi-sys/cgiwrap/hpmuseum/archv011.cgi?read=31650

Definition at line 20 of file calendar.hxx.