summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2011-08-28 00:22:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2011-08-29 09:56:06 +0100
commit5c3424f471f4683a8bfb6ee774ddb4f20cb17800 (patch)
tree3f3695d7d08679d2f0b1672505b9200ea64bd33c /l10ntools
parent14d2a60053e30dcb7e6956637fe8d57d18563e3f (diff)
IsLowerAscii and IsUpperAscii are subsets of IsAlphaAscii, reduce
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/gsicheck.cxx6
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 );
}