summaryrefslogtreecommitdiff
path: root/i18nutil/source
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-02-08 08:57:41 -0800
committerNorbert Thiebaud <nthiebaud@gmail.com>2012-02-08 11:23:53 -0600
commitd857f0938b8acd491f297d104889588bb986aa66 (patch)
tree7010e9a6a5dcc05ddb65c6d075f529245e8588d1 /i18nutil/source
parent7267ab13157d8891bf544660bd0ea60e60be551f (diff)
unicode: delete unused unicode:getCharType() method
Diffstat (limited to 'i18nutil/source')
-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