Case-insensitive string comparison in C++

Case-insensitive string comparison in C++

What is the best way of doing case-insensitive string comparison in C++ without transforming a string to all uppercase or all lowercase? Please indicate whether the methods are Unicode-friendly and ho…


sql Database Case Insensitive Index?

I have a query where I am searching against a string: SELECT county FROM city WHERE UPPER(name)='SAN FRANCISCO'; Now, this works fine, but it doesn't scale well, and I need to optimize it. I have…


unix How do you do a case insensitive search using a pattern modifier using less?

It seems like the only way to do this is to pass the-i parameter in when you initially run less. Does anyone know of some secret hack to make something like this work/something to search for/i…


Is regex case insensitivity slower?

Source RegexOptions.IgnoreCase is more expensive than I would have thought(eg, should be barely measurable) Assuming that this applies to PHP, Python, Perl, Ruby etc as well as C#(which is what I…


SQL Server Fast Forward Cursors

It is generally accepted that the use of cursors in stored procedures should be avoided where possible(replaced with set based logic etc). If you take the cases where you need to iterate over some d…


Reasons for SQL differences

Why are SQL distributions so non-standard despite an ANSI standard existing for SQL? Are there really that many meaningful differences in the way SQL databases work or is it just the two databases wi…


Can you make just part of a regex case-insensitive?

I've seen lots of examples of making an entire regular expression case-insensitive. What I'm wondering about is having just part of the expression be case-insensitive. For example, let's say I have a…


C# switch statement limitations-why?

When writing a switch statement, there appears to be two limitations on what you can switch on in case statements. For example(and yes, I know, if you're doing this sort of thing it probably means yo…



Ignore case in Python strings

This question already has an answer here: How do I do a case-insensitive string comparison? 10 answers What is the easiest way to compare strings in Python…


C# compare algorithms

Are there any open source algorithms in c# that solve the problem of creating a difference between two text files? It would be super cool if it had some way of highlighting what exact areas where cha…




case string sensitive regex contains how compare not ignore java