summaryrefslogtreecommitdiff
path: root/i18nutil/source/utility/unicode.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'i18nutil/source/utility/unicode.cxx')
-rw-r--r--i18nutil/source/utility/unicode.cxx64
1 files changed, 0 insertions, 64 deletions
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx
index 056e78a13b02..dcc5b3664e2a 100644
--- a/i18nutil/source/utility/unicode.cxx
+++ b/i18nutil/source/utility/unicode.cxx
@@ -425,70 +425,6 @@ sal_Bool SAL_CALL unicode::isWhiteSpace( const sal_Unicode ch) {
return (ch != 0xa0 && isSpace(ch)) || (ch <= 0x1F && (bit(ch) & (CONTROLSPACE)));
}
-sal_Int32 SAL_CALL unicode::getCharType( const sal_Unicode ch )
-{
- using namespace ::com::sun::star::i18n::KCharacterType;
-
- switch ( getUnicodeType( ch ) ) {
- // Upper
- case UnicodeType::UPPERCASE_LETTER :
- return UPPER|LETTER|PRINTABLE|BASE_FORM;
-
- // Lower
- case UnicodeType::LOWERCASE_LETTER :
- return LOWER|LETTER|PRINTABLE|BASE_FORM;
-
- // Title
- case UnicodeType::TITLECASE_LETTER :
- return TITLE_CASE|LETTER|PRINTABLE|BASE_FORM;
-
- // Letter
- case UnicodeType::MODIFIER_LETTER :
- case UnicodeType::OTHER_LETTER :
- return LETTER|PRINTABLE|BASE_FORM;
-
- // Digit
- case UnicodeType::DECIMAL_DIGIT_NUMBER:
- case UnicodeType::LETTER_NUMBER:
- case UnicodeType::OTHER_NUMBER:
- return DIGIT|PRINTABLE|BASE_FORM;
-
- // Base
- case UnicodeType::NON_SPACING_MARK:
- case UnicodeType::ENCLOSING_MARK:
- case UnicodeType::COMBINING_SPACING_MARK:
- return BASE_FORM|PRINTABLE;
-
- // Print
- case UnicodeType::SPACE_SEPARATOR:
-
- case UnicodeType::DASH_PUNCTUATION:
- case UnicodeType::INITIAL_PUNCTUATION:
- case UnicodeType::FINAL_PUNCTUATION:
- case UnicodeType::CONNECTOR_PUNCTUATION:
- case UnicodeType::OTHER_PUNCTUATION:
-
- case UnicodeType::MATH_SYMBOL:
- case UnicodeType::CURRENCY_SYMBOL:
- case UnicodeType::MODIFIER_SYMBOL:
- case UnicodeType::OTHER_SYMBOL:
- return PRINTABLE;
-
- // Control
- case UnicodeType::CONTROL:
- case UnicodeType::FORMAT:
- return CONTROL;
-
- case UnicodeType::LINE_SEPARATOR:
- case UnicodeType::PARAGRAPH_SEPARATOR:
- return CONTROL|PRINTABLE;
-
- // for all others
- default:
- return 0;
- }
-}
-
sal_Int16 SAL_CALL unicode::getScriptClassFromUScriptCode(UScriptCode eScript)
{
//See unicode/uscript.h