diff options
Diffstat (limited to 'i18npool/source/transliteration/hiraganaToKatakana.cxx')
-rw-r--r-- | i18npool/source/transliteration/hiraganaToKatakana.cxx | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/i18npool/source/transliteration/hiraganaToKatakana.cxx b/i18npool/source/transliteration/hiraganaToKatakana.cxx index 439ec58365e2..80b6f14d82f8 100644 --- a/i18npool/source/transliteration/hiraganaToKatakana.cxx +++ b/i18npool/source/transliteration/hiraganaToKatakana.cxx @@ -22,12 +22,14 @@ using namespace com::sun::star::uno; using namespace com::sun::star::lang; -namespace i18npool { - +namespace i18npool +{ // see http://charts.unicode.org/Web/U3040.html Hiragana (U+3040..U+309F) // see http://charts.unicode.org/Web/U30A0.html Katakana (U+30A0..U+30FF) -static sal_Unicode toKatakana (const sal_Unicode c) { - if ( (0x3041 <= c && c <= 0x3096) || (0x309d <= c && c <= 0x309f) ) { // 3040 - 309F HIRAGANA LETTER +static sal_Unicode toKatakana(const sal_Unicode c) +{ + if ((0x3041 <= c && c <= 0x3096) || (0x309d <= c && c <= 0x309f)) + { // 3040 - 309F HIRAGANA LETTER // shift code point by 0x0060 return c + (0x30a0 - 0x3040); } @@ -41,7 +43,6 @@ hiraganaToKatakana::hiraganaToKatakana() transliterationName = "hiraganaToKatakana"; implementationName = "com.sun.star.i18n.Transliteration.HIRAGANA_KATAKANA"; } - } /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |