http://stackoverflow.com/questions/11635/case-insensitive-string-comparison-in-c

that's a nice suggestion, but I don't see how I can access boost in the sezero 
compiler.  I don't think it's there.  it's 4.5.2 20101002 and where boost  and 
algorithms directories and files should be, I see placeholders.


I just found this entry too.


boost would be a FAR better solution, since I have if I remember right case 
sensitive and case insensitive compares in my code, and I need to preserve the 
case of my strings during conversions, and I am unsure if the code example I 
saw 
does that.  I didn't even see an assignment operator, so I am going to assume 
that string, basic_string, and this icstring are the same type somehow and that 
string is not a specialization of basic_string, because right now I am confused 
by the lack of info.

If you read farther down in that post,


"The trouble with boost is that you have to link with and depend on boost [I 
don't care, I need it]. Not easy in some cases (e.g. android).
And using char_traits means all your comparisons are case insensitive, which 
isn't usually what you want.
This should suffice. It should be reasonably efficient. Doesn't handle unicode 
or anything though."

I realized this about char_traits when I read the example implementation you 
see 
there in the book "The C++ Standard Library" which I have. (same code)
the code is copyrighted.

is boost in 4.6.0?
 -------------
Jim Michaels
[email protected]
[email protected]
http://JimsComputerRepairandWebDesign.com
http://JesusnJim.com (my personal site, has software)
http://DoLifeComputers.JesusnJim.com (group which I lead)
---
Computer memory/disk size measurements:
[KB KiB] [MB MiB] [GB GiB] [TB TiB]
[10^3B=1,000B=1KB][2^10B=1,024B=1KiB]
[10^6B=1,000,000B=1MB][2^20B=1,048,576B=1MiB]
[10^9B=1,000,000,000B=1GB][2^30B=1,073,741,824B=1GiB]
[10^12B=1,000,000,000,000B=1TB][2^40B=1,099,511,627,776B=1TiB]
Note: disk size is measured in MB, GB, or TB, not in MiB, GiB, or TiB.  
computer 
memory (RAM) is measured in MiB and GiB.






________________________________
From: Ruben Van Boxem <[email protected]>
To: [email protected]
Cc: Jim Michaels <[email protected]>; [email protected]; 
[email protected]
Sent: Thu, March 31, 2011 10:31:35 PM
Subject: Re: [Mingw-w64-public] sezero 4.5.2 1002 note: variable tracking size 
limit exceeded with -fvar-tracking-assignments, retrying without


Sorry for the quick followup, but your problem has been previously solved on 
SO: 
http://stackoverflow.com/questions/11635/case-insensitive-string-comparison-in-c/2886589#2886589

There are other answers, but this one illustrates a nice c++ style solution. 
Don't blame Bjarne for missing functionality, because most of the time it's 
quite easy to get.
Op 1 apr. 2011 07:22 schreef "Ruben Van Boxem" <[email protected]> het 
volgende:
> Hi guys,
> 
> I'm just going to throw my thoughts out in the field:
> 
> 1. C++ has a simple way to do case insensitive compares: just use a series
> of calls to C's tolower and compare then (assuming nice ASCII contents).
> 
> 2. Ask this question on stackoverflow.com, you're bound to get an answer to
> your design problem there.
> 
> Ruben
> Op 1 apr. 2011 07:06 schreef "James K Beard" <[email protected]> het
> volgende:
------------------------------------------------------------------------------
Create and publish websites with WebMatrix
Use the most popular FREE web apps or write code yourself; 
WebMatrix provides all the features you need to develop and 
publish your website. http://p.sf.net/sfu/ms-webmatrix-sf
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to