diff options
author | Caolán McNamara <caolanm@redhat.com> | 2011-08-28 00:22:38 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2011-08-29 09:56:06 +0100 |
commit | 5c3424f471f4683a8bfb6ee774ddb4f20cb17800 (patch) | |
tree | 3f3695d7d08679d2f0b1672505b9200ea64bd33c /l10ntools | |
parent | 14d2a60053e30dcb7e6956637fe8d57d18563e3f (diff) |
IsLowerAscii and IsUpperAscii are subsets of IsAlphaAscii, reduce
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/gsicheck.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/l10ntools/source/gsicheck.cxx b/l10ntools/source/gsicheck.cxx index 5fc52baba086..438234ea8e34 100644 --- a/l10ntools/source/gsicheck.cxx +++ b/l10ntools/source/gsicheck.cxx @@ -71,13 +71,13 @@ sal_Bool LanguageOK( ByteString aLang ) return sal_True; if ( aLang.GetTokenCount( '-' ) == 1 ) - return aLang.IsAlphaAscii() && aLang.IsLowerAscii(); + return aLang.IsLowerAscii(); else if ( aLang.GetTokenCount( '-' ) == 2 ) { ByteString aTok0( aLang.GetToken( 0, '-' ) ); ByteString aTok1( aLang.GetToken( 1, '-' ) ); - return aTok0.Len() && aTok0.IsAlphaAscii() && aTok0.IsLowerAscii() - && aTok1.Len() && aTok1.IsAlphaAscii() && aTok1.IsUpperAscii() + return aTok0.Len() && aTok0.IsLowerAscii() + && aTok1.Len() && aTok1.IsUpperAscii() && !aTok1.EqualsIgnoreCaseAscii( aTok0 ); } |