diff options
author | Noel Grandin <noel@peralex.com> | 2013-11-20 16:36:51 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-11-20 16:38:28 +0200 |
commit | d45483489513692be77a61cf343663e839483204 (patch) | |
tree | 85d3a47fa95a529e4f6d2d12b375a438513c3e9d /l10ntools | |
parent | fa604beee3e8ca26bba7c1d681bf83a44638b835 (diff) |
Revert "remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls"
This reverts commit acebbee971136e6ee0a7bc75bd57d937d6e1c295.
I mistakenly converted OUString::equalsL calls to OUString::startsWith
calls.
Diffstat (limited to 'l10ntools')
-rw-r--r-- | l10ntools/source/export.cxx | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx index b8618fcfcc06..405716719b44 100644 --- a/l10ntools/source/export.cxx +++ b/l10ntools/source/export.cxx @@ -507,18 +507,18 @@ int Export::Execute( int nToken, const char * pToken ) OString sValue = sToken.getToken(0, '=', n); CleanValue( sValue ); sKey = sKey.toAsciiUpperCase(); - if (sKey.startsWith("IDENTIFIER")) + if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("IDENTIFIER"))) { OString sId( sValue.replaceAll("\t", OString()). replaceAll(" ", OString())); pResData->SetId(sId, ID_LEVEL_IDENTIFIER); } - else if (sKey.startsWith("HELPID")) + else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("HELPID"))) { pResData->sHelpId = sValue; } - else if (sKey.startsWith("STRINGLIST")) + else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("STRINGLIST"))) { pResData->bList = sal_True; nList = LIST_STRING; @@ -526,7 +526,7 @@ int Export::Execute( int nToken, const char * pToken ) nListIndex = 0; nListLevel = 0; } - else if (sKey.startsWith("FILTERLIST")) + else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("FILTERLIST"))) { pResData->bList = sal_True; nList = LIST_FILTER; @@ -534,7 +534,7 @@ int Export::Execute( int nToken, const char * pToken ) nListIndex = 0; nListLevel = 0; } - else if (sKey.startsWith("UIENTRIES")) + else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("UIENTRIES"))) { pResData->bList = sal_True; nList = LIST_UIENTRIES; @@ -564,7 +564,7 @@ int Export::Execute( int nToken, const char * pToken ) OString sValue = sToken.getToken(1, '='); CleanValue( sValue ); sKey = sKey.toAsciiUpperCase(); - if (sKey.startsWith("STRINGLIST")) + if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("STRINGLIST"))) { pResData->bList = sal_True; nList = LIST_STRING; @@ -572,7 +572,7 @@ int Export::Execute( int nToken, const char * pToken ) nListIndex = 0; nListLevel = 0; } - else if (sKey.startsWith("FILTERLIST")) + else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("FILTERLIST"))) { pResData->bList = sal_True; nList = LIST_FILTER; @@ -580,7 +580,7 @@ int Export::Execute( int nToken, const char * pToken ) nListIndex = 0; nListLevel = 0; } - else if (sKey.startsWith("PAIREDLIST")) + else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("PAIREDLIST"))) { pResData->bList = sal_True; nList = LIST_PAIRED; @@ -588,7 +588,7 @@ int Export::Execute( int nToken, const char * pToken ) nListIndex = 0; nListLevel = 0; } - else if (sKey.startsWith("ITEMLIST")) + else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("ITEMLIST"))) { pResData->bList = sal_True; nList = LIST_ITEM; @@ -596,7 +596,7 @@ int Export::Execute( int nToken, const char * pToken ) nListIndex = 0; nListLevel = 0; } - else if (sKey.startsWith("UIENTRIES")) + else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("UIENTRIES"))) { pResData->bList = sal_True; nList = LIST_UIENTRIES; @@ -648,11 +648,11 @@ int Export::Execute( int nToken, const char * pToken ) if ( !sText.isEmpty() && !sLang.isEmpty() ) { sKey = sKey.toAsciiUpperCase(); - if (sKey.startsWith("TEXT") || - sKey.startsWith("MESSAGE") || - sKey.startsWith("CUSTOMUNITTEXT") || - sKey.startsWith("SLOTNAME") || - sKey.startsWith("UINAME")) + if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("TEXT")) || + sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("MESSAGE")) || + sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("CUSTOMUNITTEXT")) || + sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("SLOTNAME")) || + sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("UINAME"))) { SetChildWithText(); if ( sLangIndex.equalsIgnoreAsciiCase("en-US") ) |