diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-06 08:59:44 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2017-12-07 11:25:55 +0100 |
commit | dd0dceb51122b4e8e969f848d9f046e91962d254 (patch) | |
tree | f927f0870a54ad7cb887e6e7d5bb7956d44d0665 /i18nutil | |
parent | caf1eb15838729e05a70d2fcb8de6834394b5764 (diff) |
loplugin:salcall handle static methods
Change-Id: Id6820abec4b8ca8bee26d62b333fd30b42a14aec
Reviewed-on: https://gerrit.libreoffice.org/46007
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'i18nutil')
-rw-r--r-- | i18nutil/source/utility/unicode.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/i18nutil/source/utility/unicode.cxx b/i18nutil/source/utility/unicode.cxx index 0173a4ad5fbf..1ece83ed8f64 100644 --- a/i18nutil/source/utility/unicode.cxx +++ b/i18nutil/source/utility/unicode.cxx @@ -50,22 +50,22 @@ T getScriptType( const sal_Unicode ch, const L* typeList, T unknownType ) { typeList[i].value : unknownType; } -sal_Int16 SAL_CALL +sal_Int16 unicode::getUnicodeScriptType( const sal_Unicode ch, const ScriptTypeList* typeList, sal_Int16 unknownType ) { return getScriptType(ch, typeList, unknownType); } -sal_Unicode SAL_CALL +sal_Unicode unicode::getUnicodeScriptStart( UnicodeScript type) { return UnicodeScriptType[(int)type][UnicodeScriptTypeFrom]; } -sal_Unicode SAL_CALL +sal_Unicode unicode::getUnicodeScriptEnd( UnicodeScript type) { return UnicodeScriptType[(int)type][UnicodeScriptTypeTo]; } -sal_Int16 SAL_CALL +sal_Int16 unicode::getUnicodeType( const sal_Unicode ch ) { static sal_Unicode c = 0x00; static sal_Int16 r = 0x00; @@ -78,7 +78,7 @@ unicode::getUnicodeType( const sal_Unicode ch ) { UnicodeTypeValue[((address - UnicodeTypeNumberBlock) << 8) + (ch & 0xff)]); } -sal_uInt8 SAL_CALL +sal_uInt8 unicode::getUnicodeDirection( const sal_Unicode ch ) { static sal_Unicode c = 0x00; static sal_uInt8 r = 0x00; @@ -125,11 +125,11 @@ IsType(unicode::isSpace, SPACEMASK) #define CONTROLSPACE bit(0x09)|bit(0x0a)|bit(0x0b)|bit(0x0c)|bit(0x0d)|\ bit(0x1c)|bit(0x1d)|bit(0x1e)|bit(0x1f) -bool SAL_CALL unicode::isWhiteSpace( const sal_Unicode ch) { +bool unicode::isWhiteSpace( const sal_Unicode ch) { return (ch != 0xa0 && isSpace(ch)) || (ch <= 0x1F && (bit(ch) & (CONTROLSPACE))); } -sal_Int16 SAL_CALL unicode::getScriptClassFromUScriptCode(UScriptCode eScript) +sal_Int16 unicode::getScriptClassFromUScriptCode(UScriptCode eScript) { //See unicode/uscript.h static const sal_Int16 scriptTypes[] = @@ -186,7 +186,7 @@ sal_Int16 SAL_CALL unicode::getScriptClassFromUScriptCode(UScriptCode eScript) return nRet; } -OString SAL_CALL unicode::getExemplarLanguageForUScriptCode(UScriptCode eScript) +OString unicode::getExemplarLanguageForUScriptCode(UScriptCode eScript) { OString sRet; switch (eScript) @@ -733,7 +733,7 @@ OString SAL_CALL unicode::getExemplarLanguageForUScriptCode(UScriptCode eScript) //Format a number as a percentage according to the rules of the given //language, e.g. 100 -> "100%" for en-US vs "100 %" for de-DE -OUString SAL_CALL unicode::formatPercent(double dNumber, +OUString unicode::formatPercent(double dNumber, const LanguageTag &rLangTag) { // get a currency formatter for this locale ID |