diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-05 11:32:52 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-11 12:58:12 +0200 |
commit | ef90021abe3735fba57145598fd7c3d359d2718e (patch) | |
tree | 9da3ef32700774f56e0225ea28f3bc4ceaffe80c /i18nutil | |
parent | 0a9ef5a18e148c7a5c9a088e153a7873d1564841 (diff) |
convert OUString !compareToAscii to equalsAscii
Convert code like
if( ! aStr.compareToAscii("XXX") )
to
if( aStr.equalsAscii("XXX") )
which is both clearer and faster.
Change-Id: I267511bccab52f5225b291acbfa4e388b5a5302b
Diffstat (limited to 'i18nutil')
-rw-r--r-- | i18nutil/source/utility/paper.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/i18nutil/source/utility/paper.cxx b/i18nutil/source/utility/paper.cxx index 00dec24fbfe1..2447bfc7813b 100644 --- a/i18nutil/source/utility/paper.cxx +++ b/i18nutil/source/utility/paper.cxx @@ -408,58 +408,58 @@ PaperInfo PaperInfo::getDefaultPaperForLocale( if ( //United States, Letter - !rLocale.Country.compareToAscii("US") || + rLocale.Country.equalsAscii("US") || //Puerto Rico: // http://unicode.org/cldr/trac/ticket/1710 // http://sources.redhat.com/ml/libc-hacker/2001-07/msg00046.html - !rLocale.Country.compareToAscii("PR") || + rLocale.Country.equalsAscii("PR") || //Canada: // http://sources.redhat.com/ml/libc-hacker/2001-07/msg00053.html - !rLocale.Country.compareToAscii("CA") || + rLocale.Country.equalsAscii("CA") || //Venuzuela: // http://unicode.org/cldr/trac/ticket/1710 // https://www.redhat.com/archives/fedora-devel-list/2008-August/msg00019.html - !rLocale.Country.compareToAscii("VE") || + rLocale.Country.equalsAscii("VE") || //Chile: // http://unicode.org/cldr/trac/ticket/1710 // https://www.redhat.com/archives/fedora-devel-list/2008-August/msg00240.html - !rLocale.Country.compareToAscii("CL") || + rLocale.Country.equalsAscii("CL") || //Mexico: // http://unicode.org/cldr/trac/ticket/1710 // http://qa.openoffice.org/issues/show_bug.cgi?id=49739 - !rLocale.Country.compareToAscii("MX") || + rLocale.Country.equalsAscii("MX") || //Colombia: // http://unicode.org/cldr/trac/ticket/1710 // http://qa.openoffice.org/issues/show_bug.cgi?id=69703 - !rLocale.Country.compareToAscii("CO") || + rLocale.Country.equalsAscii("CO") || //Philippines: // http://unicode.org/cldr/trac/ticket/1710 // http://ubuntuliving.blogspot.com/2008/07/default-paper-size-in-evince.html // http://www.gov.ph/faqs/driverslicense.asp - !rLocale.Country.compareToAscii("PH") || + rLocale.Country.equalsAscii("PH") || //Belize: // http://unicode.org/cldr/trac/ticket/2585 // http://www.belize.gov.bz/ct.asp?xItem=1666&ctNode=486&mp=27 - !rLocale.Country.compareToAscii("BZ") || + rLocale.Country.equalsAscii("BZ") || //Costa Rica: // http://unicode.org/cldr/trac/ticket/2585 // http://sources.redhat.com/bugzilla/show_bug.cgi?id=11258 - !rLocale.Country.compareToAscii("CR") || + rLocale.Country.equalsAscii("CR") || //Guatemala: // http://unicode.org/cldr/trac/ticket/2585 // http://sources.redhat.com/bugzilla/show_bug.cgi?id=10936 - !rLocale.Country.compareToAscii("GT") || + rLocale.Country.equalsAscii("GT") || //Nicaragua: // http://unicode.org/cldr/trac/ticket/2585 - !rLocale.Country.compareToAscii("NI") || + rLocale.Country.equalsAscii("NI") || //Panama: // http://unicode.org/cldr/trac/ticket/2585 // http://www.minsa.gob.pa/minsa/tl_files/documents/baner_informativo/INSTRUMENTO%20DE%20INVESTIGACION%20DE%20RAAV%202009.pdf - !rLocale.Country.compareToAscii("PA") || + rLocale.Country.equalsAscii("PA") || //El Salvador: // http://unicode.org/cldr/trac/ticket/2585 // http://www.tse.gob.sv - !rLocale.Country.compareToAscii("SV") + rLocale.Country.equalsAscii("SV") ) { eType = PAPER_LETTER; |