summaryrefslogtreecommitdiff
path: root/l10ntools
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-11-20 13:18:33 +0200
committerNoel Grandin <noel@peralex.com>2013-11-20 13:56:08 +0200
commitacebbee971136e6ee0a7bc75bd57d937d6e1c295 (patch)
treef56fec189343e1d9297918037b55263733243d7b /l10ntools
parentd894fee80e40519cb579987b95cb3d19345dfa71 (diff)
remove RTL_CONSTASCII_STRINGPARAM in OString::equalsL calls
Convert code like: if (aByteStr.equalsL(RTL_CONSTASCII_STRINGPARAM("rem"))) to: if (aByteStr.startsWith("rem")) Change-Id: I09e40b3fdc87d59a8176c2a5f39cc6aa5cf5a576
Diffstat (limited to 'l10ntools')
-rw-r--r--l10ntools/source/export.cxx30
1 files changed, 15 insertions, 15 deletions
diff --git a/l10ntools/source/export.cxx b/l10ntools/source/export.cxx
index 405716719b44..b8618fcfcc06 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.equalsL(RTL_CONSTASCII_STRINGPARAM("IDENTIFIER")))
+ if (sKey.startsWith("IDENTIFIER"))
{
OString sId(
sValue.replaceAll("\t", OString()).
replaceAll(" ", OString()));
pResData->SetId(sId, ID_LEVEL_IDENTIFIER);
}
- else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("HELPID")))
+ else if (sKey.startsWith("HELPID"))
{
pResData->sHelpId = sValue;
}
- else if (sKey.equalsL(RTL_CONSTASCII_STRINGPARAM("STRINGLIST")))
+ else if (sKey.startsWith("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.equalsL(RTL_CONSTASCII_STRINGPARAM("FILTERLIST")))
+ else if (sKey.startsWith("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.equalsL(RTL_CONSTASCII_STRINGPARAM("UIENTRIES")))
+ else if (sKey.startsWith("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.equalsL(RTL_CONSTASCII_STRINGPARAM("STRINGLIST")))
+ if (sKey.startsWith("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.equalsL(RTL_CONSTASCII_STRINGPARAM("FILTERLIST")))
+ else if (sKey.startsWith("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.equalsL(RTL_CONSTASCII_STRINGPARAM("PAIREDLIST")))
+ else if (sKey.startsWith("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.equalsL(RTL_CONSTASCII_STRINGPARAM("ITEMLIST")))
+ else if (sKey.startsWith("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.equalsL(RTL_CONSTASCII_STRINGPARAM("UIENTRIES")))
+ else if (sKey.startsWith("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.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")))
+ if (sKey.startsWith("TEXT") ||
+ sKey.startsWith("MESSAGE") ||
+ sKey.startsWith("CUSTOMUNITTEXT") ||
+ sKey.startsWith("SLOTNAME") ||
+ sKey.startsWith("UINAME"))
{
SetChildWithText();
if ( sLangIndex.equalsIgnoreAsciiCase("en-US") )