[Scummvm-devel] Make class String case insensitive by default?

James 'Ender' Brown ender at scummvm.org
Sun Jul 23 03:07:54 CEST 2006


I like the idea also. 

A single bool, and one extra branch (assuming the default case to be an
insensitive comparison, avoiding a jump) really shouldn't add an
excessive overhead.

Cheers,
	Ender

On Sat, 2006-07-22 at 23:38 +0200, Johannes Schickel wrote:
> > Adding a data field to all strings for this purpose alone seems like a
> > pointless waste of memory.  Better to add a second comparison method
> > if we need both kinds.
> 
> I thought of adding one bool which is used for the mode to use, this
> would of course need branching for every comparison function, but it
> shouldn't be that slow nor a big waste of memory.
> 
> // Johannes
> 
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys -- and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Scummvm-devel mailing list
> Scummvm-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/scummvm-devel
-- 
James 'Ender' Brown <ender at scummvm.org>





More information about the Scummvm-devel mailing list