String.ToLower() & String.ToUpper()

Post a reply

Smilies
:D :) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :wink: :geek: :ugeek: :!: :?: :idea: :arrow: :| :mrgreen: :3: :wub: >:( :blergh:
View more smilies

BBCode is OFF
Smilies are ON

Topic review
   

Expand view Topic review: String.ToLower() & String.ToUpper()

Re: String.ToLower() & String.ToUpper()

by Accensus » Mon Aug 07, 2017 6:29 am

Thanks, _mental_!

Re: String.ToLower() & String.ToUpper()

by _mental_ » Mon Aug 07, 2017 6:28 am

Added in 33beca6.

String.ToLower() & String.ToUpper()

by Accensus » Mon Aug 07, 2017 6:06 am

Couldn't find traces of that in the ZScript source. An example of where it could be useful:

Code: Select all

string Tag = ToLower(GetWeaponTag());
if (Tag.IndexOf("someword") != -1) { ... } 
That's because IndexOf() isn't case insensitive. Workarounds would probably require a truckload of checks.

Top