1 /**************************************************************
2  *
3  * Licensed to the Apache Software Foundation (ASF) under one
4  * or more contributor license agreements.  See the NOTICE file
5  * distributed with this work for additional information
6  * regarding copyright ownership.  The ASF licenses this file
7  * to you under the Apache License, Version 2.0 (the
8  * "License"); you may not use this file except in compliance
9  * with the License.  You may obtain a copy of the License at
10  *
11  *   http://www.apache.org/licenses/LICENSE-2.0
12  *
13  * Unless required by applicable law or agreed to in writing,
14  * software distributed under the License is distributed on an
15  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16  * KIND, either express or implied.  See the License for the
17  * specific language governing permissions and limitations
18  * under the License.
19  *
20  *************************************************************/
21 
22 
23 
24 // MARKER(update_precomp.py): autogen include statement, do not remove
25 #include "precompiled_i18npool.hxx"
26 
27 // prevent internal compiler error with MSVC6SP3
28 #include <utility>
29 
30 #define TRANSLITERATION_TraditionalKana_ja_JP
31 #include <transliteration_Ignore.hxx>
32 
33 namespace com { namespace sun { namespace star { namespace i18n {
34 
35 sal_Unicode
ignoreTraditionalKana_ja_JP_translator(const sal_Unicode c)36 ignoreTraditionalKana_ja_JP_translator (const sal_Unicode c)
37 {
38 
39     switch (c) {
40         case 0x3090:     // HIRAGANA LETTER WI
41             return 0x3044; // HIRAGANA LETTER I
42 
43         case 0x3091:     // HIRAGANA LETTER WE
44             return 0x3048; // HIRAGANA LETTER E
45 
46         case 0x30F0:     // KATAKANA LETTER WI
47             return 0x30A4; // KATAKANA LETTER I
48 
49         case 0x30F1:     // KATAKANA LETTER WE
50             return 0x30A8; // KATAKANA LETTER E
51     }
52     return c;
53 }
54 
ignoreTraditionalKana_ja_JP()55 ignoreTraditionalKana_ja_JP::ignoreTraditionalKana_ja_JP()
56 {
57         func = ignoreTraditionalKana_ja_JP_translator;
58         table = 0;
59         map = 0;
60         transliterationName = "ignoreTraditionalKana_ja_JP";
61         implementationName = "com.sun.star.i18n.Transliteration.ignoreTraditionalKana_ja_JP";
62 }
63 
64 } } } }
65