summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-02-21 09:32:17 +0000
committerCaolán McNamara <caolanm@redhat.com>2014-02-21 10:12:22 +0000
commit456b92609cdd0795e165ca4487419d1f329bb158 (patch)
tree602a95d95ddcb6214f2093e5be69b4c2dc1977e3 /svtools
parentb32658e7c492b33c15c738f6dd365b921f29dbc4 (diff)
fdo#74584: complete revert various previous changes to upcase HTML tags
f1f8b3bfdc3406ea79b662a2fda3d0c1cb87bb10 says it reverts commit 3c84fa61570113d1dfb2523ab88f268eeeb46c3c. commit 96a1f60aeb2a7954533da9b4aa4947efb7a65e70. commit 1f74a3ce201bad68f160584900285e2c087ab2c0. commit 3d481254a07fe82d11953f9825a2f8fc6eeabc0b. but only reverted 3d481254a07fe82d11953f9825a2f8fc6eeabc0b Change-Id: I0530bd0b176b1f1e9bbf8eee78376991c664a850
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/svhtml/htmlkywd.cxx5
-rw-r--r--svtools/source/svhtml/parhtml.cxx12
2 files changed, 7 insertions, 10 deletions
diff --git a/svtools/source/svhtml/htmlkywd.cxx b/svtools/source/svhtml/htmlkywd.cxx
index affbc86081a8..c0b791567dc8 100644
--- a/svtools/source/svhtml/htmlkywd.cxx
+++ b/svtools/source/svhtml/htmlkywd.cxx
@@ -189,7 +189,6 @@ static int SAL_CALL HTMLKeyCompare( const void *pFirst, const void *pSecond)
int GetHTMLToken( const OUString& rName )
{
- OUString aNameUpper = rName.toAsciiUpperCase();
if( !bSortKeyWords )
{
qsort( (void*) aHTMLTokenTab,
@@ -201,12 +200,12 @@ int GetHTMLToken( const OUString& rName )
int nRet = 0;
- if (!aNameUpper.compareTo(OOO_STRING_SVTOOLS_HTML_comment, 3))
+ if( !rName.compareTo( OOO_STRING_SVTOOLS_HTML_comment, 3 ) )
return HTML_COMMENT;
void* pFound;
HTML_TokenEntry aSrch;
- aSrch.pUToken = &aNameUpper;
+ aSrch.pUToken = &rName;
aSrch.nToken = -1;
pFound = bsearch( (sal_Char *) &aSrch,
diff --git a/svtools/source/svhtml/parhtml.cxx b/svtools/source/svhtml/parhtml.cxx
index a941a067e06e..6517e5c8ca92 100644
--- a/svtools/source/svhtml/parhtml.cxx
+++ b/svtools/source/svhtml/parhtml.cxx
@@ -881,7 +881,7 @@ int HTMLParser::_GetNextRawToken()
}
OUString aTok( sTmpBuffer.toString() );
- aTok = aTok.toAsciiUpperCase();
+ aTok = aTok.toAsciiLowerCase();
bool bDone = false;
if( bReadScript || !aEndToken.isEmpty() )
{
@@ -1126,7 +1126,7 @@ int HTMLParser::_GetNextToken()
// Search token in table:
sSaveToken = aToken;
- aToken = aToken.toAsciiUpperCase();
+ aToken = aToken.toAsciiLowerCase();
if( 0 == (nRet = GetHTMLToken( aToken )) )
// Unknown control
nRet = HTML_UNKNOWNCONTROL_ON;
@@ -1462,10 +1462,8 @@ const HTMLOptions& HTMLParser::GetOptions( sal_uInt16 *pNoConvertToken )
OUString sName( aToken.copy( nStt, nPos-nStt ) );
- // PlugIns require original token name. Convert to upper case only for searching.
- OUString sNameUpperCase( sName.toAsciiUpperCase() );
-
- nToken = GetHTMLOption( sNameUpperCase ); // Name is ready
+ // PlugIns require original token name. Convert to lower case only for searching.
+ nToken = GetHTMLOption( sName.toAsciiLowerCase() ); // Name is ready
DBG_ASSERTWARNING( nToken!=HTML_O_UNKNOWN,
"GetOption: unknown HTML option" );
bool bStripCRLF = (nToken < HTML_OPTION_SCRIPT_START ||
@@ -1913,7 +1911,7 @@ bool HTMLParser::IsHTMLFormat( const sal_Char* pHeader,
sCmp = pHeader;
}
- sCmp = sCmp.toAsciiUpperCase();
+ sCmp = sCmp.toAsciiLowerCase();
// A HTML document must have a '<' in the first line
sal_Int32 nStart = sCmp.indexOf('<');