summaryrefslogtreecommitdiff
path: root/i18nutil/source/utility/widthfolding.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18nutil/source/utility/widthfolding.cxx')
-rw-r--r--i18nutil/source/utility/widthfolding.cxx45
1 files changed, 0 insertions, 45 deletions
diff --git a/i18nutil/source/utility/widthfolding.cxx b/i18nutil/source/utility/widthfolding.cxx
index a7e8dd05c285..8db7524235e2 100644
--- a/i18nutil/source/utility/widthfolding.cxx
+++ b/i18nutil/source/utility/widthfolding.cxx
@@ -214,27 +214,6 @@ oneToOneMapping& widthfolding::getfull2halfTableForASC()
static oneToOneMappingWithFlag table(full2half, sizeof(full2half), FULL2HALF_ASC_FUNCTION);
table.makeIndex();
- // bluedwarf: dirty hack!
- // There is an exception. Additional conversion is required following:
- // 0xFFE5 (FULLWIDTH YEN SIGN) --> 0x005C (REVERSE SOLIDUS)
- //
- // See the following page for detail:
- // http://wiki.openoffice.org/wiki/Calc/Features/JIS_and_ASC_functions
- for( int i = 0; i < int(SAL_N_ELEMENTS(full2halfASCException)); i++ )
- {
- const int high = (full2halfASCException[i].first >> 8) & 0xFF;
- const int low = (full2halfASCException[i].first) & 0xFF;
-
- if( !table.mpIndex[high] )
- {
- table.mpIndex[high] = new UnicodePairWithFlag*[256];
-
- for( int j = 0; j < 256; j++ )
- table.mpIndex[high][j] = nullptr;
- }
- table.mpIndex[high][low] = &full2halfASCException[i];
- }
-
return table;
}
@@ -243,30 +222,6 @@ oneToOneMapping& widthfolding::gethalf2fullTableForJIS()
static oneToOneMappingWithFlag table(half2full, sizeof(half2full), HALF2FULL_JIS_FUNCTION);
table.makeIndex();
- // bluedwarf: dirty hack!
- // There are some exceptions. Additional conversion are required following:
- // 0x0022 (QUOTATION MARK) --> 0x201D (RIGHT DOUBLE QUOTATION MARK)
- // 0x0027 (APOSTROPHE) --> 0x2019 (RIGHT SINGLE QUOTATION MARK)
- // 0x005C (REVERSE SOLIDUS) --> 0xFFE5 (FULLWIDTH YEN SIGN)
- // 0x0060 (GRAVE ACCENT) --> 0x2018 (LEFT SINGLE QUOTATION MARK)
- //
- // See the following page for detail:
- // http://wiki.openoffice.org/wiki/Calc/Features/JIS_and_ASC_functions
- for( int i = 0; i < int(SAL_N_ELEMENTS(half2fullJISException)); i++ )
- {
- const int high = (half2fullJISException[i].first >> 8) & 0xFF;
- const int low = (half2fullJISException[i].first) & 0xFF;
-
- if( !table.mpIndex[high] )
- {
- table.mpIndex[high] = new UnicodePairWithFlag*[256];
-
- for( int j = 0; j < 256; j++ )
- table.mpIndex[high][j] = nullptr;
- }
- table.mpIndex[high][low] = &half2fullJISException[i];
- }
-
return table;
}