/src/libreoffice/i18npool/source/transliteration/numtotext_cjk.cxx
Line | Count | Source |
1 | | /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ |
2 | | /* |
3 | | * This file is part of the LibreOffice project. |
4 | | * |
5 | | * This Source Code Form is subject to the terms of the Mozilla Public |
6 | | * License, v. 2.0. If a copy of the MPL was not distributed with this |
7 | | * file, You can obtain one at http://mozilla.org/MPL/2.0/. |
8 | | * |
9 | | * This file incorporates work covered by the following license notice: |
10 | | * |
11 | | * Licensed to the Apache Software Foundation (ASF) under one or more |
12 | | * contributor license agreements. See the NOTICE file distributed |
13 | | * with this work for additional information regarding copyright |
14 | | * ownership. The ASF licenses this file to you under the Apache |
15 | | * License, Version 2.0 (the "License"); you may not use this file |
16 | | * except in compliance with the License. You may obtain a copy of |
17 | | * the License at http://www.apache.org/licenses/LICENSE-2.0 . |
18 | | */ |
19 | | |
20 | | #include <com/sun/star/i18n/NativeNumberMode.hpp> |
21 | | |
22 | | #include <numtotext_cjk.hxx> |
23 | | #include <bullet.h> |
24 | | |
25 | | namespace i18npool { |
26 | | |
27 | | #define TRANSLITERATION_NUMTOTEXT( name, number ) \ |
28 | 0 | NumToText##name::NumToText##name() \ |
29 | 0 | { \ |
30 | 0 | nNativeNumberMode = number; \ |
31 | 0 | tableSize = 0; \ |
32 | 0 | transliterationName = "NumToText"#name; \ |
33 | 0 | implementationName = "com.sun.star.i18n.Transliteration.NumToText"#name; \ |
34 | 0 | } Unexecuted instantiation: i18npool::NumToTextLower_zh_CN::NumToTextLower_zh_CN() Unexecuted instantiation: i18npool::NumToTextUpper_zh_CN::NumToTextUpper_zh_CN() Unexecuted instantiation: i18npool::NumToTextLower_zh_TW::NumToTextLower_zh_TW() Unexecuted instantiation: i18npool::NumToTextUpper_zh_TW::NumToTextUpper_zh_TW() Unexecuted instantiation: i18npool::NumToTextFullwidth_zh_CN::NumToTextFullwidth_zh_CN() Unexecuted instantiation: i18npool::NumToTextFullwidth_zh_TW::NumToTextFullwidth_zh_TW() Unexecuted instantiation: i18npool::NumToTextFullwidth_ja_JP::NumToTextFullwidth_ja_JP() Unexecuted instantiation: i18npool::NumToTextFullwidth_ko::NumToTextFullwidth_ko() Unexecuted instantiation: i18npool::NumToTextFormalLower_ko::NumToTextFormalLower_ko() Unexecuted instantiation: i18npool::NumToTextFormalUpper_ko::NumToTextFormalUpper_ko() Unexecuted instantiation: i18npool::NumToTextFormalHangul_ko::NumToTextFormalHangul_ko() Unexecuted instantiation: i18npool::NumToTextInformalLower_ko::NumToTextInformalLower_ko() Unexecuted instantiation: i18npool::NumToTextInformalUpper_ko::NumToTextInformalUpper_ko() Unexecuted instantiation: i18npool::NumToTextInformalHangul_ko::NumToTextInformalHangul_ko() Unexecuted instantiation: i18npool::NumToTextKanjiLongTraditional_ja_JP::NumToTextKanjiLongTraditional_ja_JP() Unexecuted instantiation: i18npool::NumToTextKanjiLongModern_ja_JP::NumToTextKanjiLongModern_ja_JP() Unexecuted instantiation: i18npool::NumToTextDate_zh::NumToTextDate_zh() Unexecuted instantiation: i18npool::NumToTextKanjiShortTraditional_ja_JP::NumToTextKanjiShortTraditional_ja_JP() Unexecuted instantiation: i18npool::NumToTextKanjiShortModern_ja_JP::NumToTextKanjiShortModern_ja_JP() |
35 | | using namespace com::sun::star::i18n::NativeNumberMode; |
36 | | |
37 | | TRANSLITERATION_NUMTOTEXT( Lower_zh_CN, NATNUM4) |
38 | | TRANSLITERATION_NUMTOTEXT( Upper_zh_CN, NATNUM5) |
39 | | TRANSLITERATION_NUMTOTEXT( Lower_zh_TW, NATNUM4) |
40 | | TRANSLITERATION_NUMTOTEXT( Upper_zh_TW, NATNUM5) |
41 | | TRANSLITERATION_NUMTOTEXT( Fullwidth_zh_CN, NATNUM6) |
42 | | TRANSLITERATION_NUMTOTEXT( Fullwidth_zh_TW, NATNUM6) |
43 | | TRANSLITERATION_NUMTOTEXT( Fullwidth_ja_JP, NATNUM6) |
44 | | TRANSLITERATION_NUMTOTEXT( Fullwidth_ko, NATNUM6) |
45 | | TRANSLITERATION_NUMTOTEXT( FormalLower_ko, NATNUM4) |
46 | | TRANSLITERATION_NUMTOTEXT( FormalUpper_ko, NATNUM5) |
47 | | TRANSLITERATION_NUMTOTEXT( FormalHangul_ko, NATNUM10) |
48 | | TRANSLITERATION_NUMTOTEXT( InformalLower_ko, NATNUM7) |
49 | | TRANSLITERATION_NUMTOTEXT( InformalUpper_ko, NATNUM8) |
50 | | TRANSLITERATION_NUMTOTEXT( InformalHangul_ko, NATNUM11) |
51 | | TRANSLITERATION_NUMTOTEXT( KanjiLongTraditional_ja_JP, NATNUM5) |
52 | | TRANSLITERATION_NUMTOTEXT( KanjiLongModern_ja_JP, NATNUM4) |
53 | | TRANSLITERATION_NUMTOTEXT( Date_zh, NATNUM7) |
54 | | TRANSLITERATION_NUMTOTEXT( KanjiShortTraditional_ja_JP, NATNUM8) |
55 | | TRANSLITERATION_NUMTOTEXT( KanjiShortModern_ja_JP, NATNUM7) |
56 | | |
57 | | #undef TRANSLITERATION_NUMTOTEXT |
58 | | |
59 | | #define TRANSLITERATION_NUMTOTEXT( name, _table, recycle ) \ |
60 | 0 | NumToText##name::NumToText##name() \ |
61 | 0 | { \ |
62 | 0 | table = _table;\ |
63 | 0 | tableSize = SAL_N_ELEMENTS(_table); \ |
64 | 0 | recycleSymbol = recycle; \ |
65 | 0 | transliterationName = "NumToText"#name; \ |
66 | 0 | implementationName = "com.sun.star.i18n.Transliteration.NumToText"#name; \ |
67 | 0 | } Unexecuted instantiation: i18npool::NumToTextAIUFullWidth_ja_JP::NumToTextAIUFullWidth_ja_JP() Unexecuted instantiation: i18npool::NumToTextAIUHalfWidth_ja_JP::NumToTextAIUHalfWidth_ja_JP() Unexecuted instantiation: i18npool::NumToTextIROHAFullWidth_ja_JP::NumToTextIROHAFullWidth_ja_JP() Unexecuted instantiation: i18npool::NumToTextIROHAHalfWidth_ja_JP::NumToTextIROHAHalfWidth_ja_JP() Unexecuted instantiation: i18npool::NumToTextCircledNumber::NumToTextCircledNumber() Unexecuted instantiation: i18npool::NumToTextTianGan_zh::NumToTextTianGan_zh() Unexecuted instantiation: i18npool::NumToTextDiZi_zh::NumToTextDiZi_zh() Unexecuted instantiation: i18npool::NumToTextHangulJamo_ko::NumToTextHangulJamo_ko() Unexecuted instantiation: i18npool::NumToTextHangulSyllable_ko::NumToTextHangulSyllable_ko() Unexecuted instantiation: i18npool::NumToTextHangulCircledJamo_ko::NumToTextHangulCircledJamo_ko() Unexecuted instantiation: i18npool::NumToTextHangulCircledSyllable_ko::NumToTextHangulCircledSyllable_ko() |
68 | | |
69 | | TRANSLITERATION_NUMTOTEXT ( AIUFullWidth_ja_JP, table_AIUFullWidth_ja_JP, true) |
70 | | TRANSLITERATION_NUMTOTEXT ( AIUHalfWidth_ja_JP, table_AIUHalfWidth_ja_JP, true) |
71 | | TRANSLITERATION_NUMTOTEXT ( IROHAFullWidth_ja_JP, table_IROHAFullWidth_ja_JP, true) |
72 | | TRANSLITERATION_NUMTOTEXT ( IROHAHalfWidth_ja_JP, table_IROHAHalfWidth_ja_JP, true) |
73 | | TRANSLITERATION_NUMTOTEXT ( CircledNumber, table_CircledNumber, false) |
74 | | TRANSLITERATION_NUMTOTEXT ( TianGan_zh, table_TianGan_zh, false) |
75 | | TRANSLITERATION_NUMTOTEXT ( DiZi_zh, table_DiZi_zh, false) |
76 | | TRANSLITERATION_NUMTOTEXT ( HangulJamo_ko, table_HangulJamo_ko, true) |
77 | | TRANSLITERATION_NUMTOTEXT ( HangulSyllable_ko, table_HangulSyllable_ko, true) |
78 | | TRANSLITERATION_NUMTOTEXT ( HangulCircledJamo_ko, table_HangulCircledJamo_ko, true) |
79 | | TRANSLITERATION_NUMTOTEXT ( HangulCircledSyllable_ko, table_HangulCircledSyllable_ko, true) |
80 | | |
81 | | #undef TRANSLITERATION_NUMTOTEXT |
82 | | |
83 | | } |
84 | | |
85 | | /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |