mirror of
https://github.com/UOX3DevTeam/UOX3
synced 2026-08-13 12:27:04 -04:00
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:
parent
44072729a7
commit
2bc886128c
53 changed files with 301 additions and 1850 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue