updated trim/ltrim/rtrim/simplify to not use regex (seems rather slow for our string sizes).

Updated to lower/toupper to be upper/lower
replaced occurrences of stripTrim with trim(removeTrailing))
replace stripComment with removeTrailing
This commit is contained in:
Charles Kerr 2021-07-19 13:41:59 -04:00
parent 44072729a7
commit 2bc886128c
53 changed files with 301 additions and 1850 deletions

View file

@ -654,7 +654,7 @@ void cHTMLTemplate::Load( ScriptSection *found )
for( tag = found->First(); !found->AtEnd(); tag = found->Next() )
{
data = found->GrabData();
UTag = strutil::toupper( tag );
UTag = strutil::upper( tag );
if( UTag == "UPDATE" )
{
@ -662,7 +662,7 @@ void cHTMLTemplate::Load( ScriptSection *found )
}
else if( UTag == "TYPE" )
{
UData = strutil::toupper( data );
UData = strutil::upper( data );
if( UData == "STATUS" )
{
Type = ETT_ONLINE;