tagged [case]
How do I do a case-insensitive string comparison?
How do I do a case-insensitive string comparison? How can I compare strings in a case insensitive way in Python? I would like to encapsulate comparison of a regular strings to a repository string, usi...
- Modified
- 18 Jun at 22:29
Using InvariantCultureIgnoreCase instead of ToUpper for case-insensitive string comparisons
Using InvariantCultureIgnoreCase instead of ToUpper for case-insensitive string comparisons [this page](http://www.inq.me/post/ASPNet-MVC-Extension-method-to-create-a-Security-Aware-HtmlActionLink.asp...
- Modified
- 13 Feb at 05:22
Case sensitive Directory.Exists / File.Exists
Case sensitive Directory.Exists / File.Exists Is there a way to have a case sensitive `Directory.Exists` / `File.Exists`since and both return `true`? Most of the time it doesn't matter but I'm using a...
- Modified
- 24 Apr at 05:8
How to ignore case sensitivity in StartsWith for LINQ FindAll?
How to ignore case sensitivity in StartsWith for LINQ FindAll? I have the following code: If `DeptName="test"` and `optAlpha.SelectedItem.Value="T"`, it doesn't work. I tried with the following code, ...
- Modified
- 5 Mar at 08:30
List an Array of Strings in alphabetical order
List an Array of Strings in alphabetical order I have a program which has the user inputs a list of names. I have a switch case going to a function which I would like to have the names print off in al...
SQL use CASE statement in WHERE IN clause
SQL use CASE statement in WHERE IN clause Is it posible to use in clause? Something like this: ``` DECLARE @Status VARCHAR(50); SET @Status='published'; SELECT * FROM Product P WHERE P.Status IN (CA...
- Modified
- 20 Mar at 12:20
SQL Server IIF vs CASE
SQL Server IIF vs CASE I recently came to know about the availability of `IIF` function in SQL Server 2012. I always use nested `CASE` in my queries. I want to know the exact purpose of the `IIF` stat...
- Modified
- 15 Jun at 12:7
C# Switch-case string starting with
C# Switch-case string starting with Is there any way to make a case condition in a switch statement where you say if a string begins with something? ex Other strings can be different length. abc.
- Modified
- 4 Oct at 08:44
How can I search (case-insensitive) in a column using LIKE wildcard?
How can I search (case-insensitive) in a column using LIKE wildcard? I looked around some and didn't find what I was after so here goes. ``` SELECT * FROM trees WHERE trees.`title` LIKE '%elm%' ``` Th...
- Modified
- 17 Sep at 06:53
.NET How to compare two Strings that represent filenames ignoring case correctly
.NET How to compare two Strings that represent filenames ignoring case correctly Given that (at least on NTFS) the filesystem on Windows is case insensitive, I would like to compare `String fileA` to ...
- Modified
- 18 Nov at 15:22
How to use StringComparison for strings in C#?
How to use StringComparison for strings in C#? I get a `string does not contain a definition for Contains` message when I do the above. What am I doing wrong here? Thanks in advance everyone! I am try...
- Modified
- 28 Jul at 14:19
MongoDB and C#: Case insensitive search
MongoDB and C#: Case insensitive search I am using [MongoDB](http://www.mongodb.org/) and the [C# driver for MongoDB](http://www.mongodb.org/display/DOCS/CSharp+Language+Center#CSharpLanguageCenter-C%...
- Modified
- 10 Sep at 09:36
Case in Select Statement
Case in Select Statement I have an SQL statement that has a `CASE` from `SELECT` and I just can't get it right. Can you guys show me an example of `CASE` where the cases are the conditions and the res...
- Modified
- 7 Jan at 04:13
How to do case insensitive search in Vim
How to do case insensitive search in Vim I'd like to search for an upper case word, for example COPYRIGHT in a file. I tried performing a search like: but it doesn't work. I know that in Perl, if I gi...
- Modified
- 2 Apr at 12:50
How do I commit case-sensitive only filename changes in Git?
How do I commit case-sensitive only filename changes in Git? I have changed a few files name by de-capitalize the first letter, as in `Name.jpg` to `name.jpg`. Git does not recognize this changes and ...
- Modified
- 25 Jul at 21:23
How to use patterns in a case statement?
How to use patterns in a case statement? The `man` page says that `case` statements use "filename expansion pattern matching". I usually want to have short names for some parameters, so I go: I tried ...
- Modified
- 9 Jul at 18:59
Should URL be case sensitive?
Should URL be case sensitive? I noticed that and both works fine - actually the previous one is converted to lowercase. I think that this makes sense for the user. If I look at Google then this URL wo...
- Modified
- 7 Mar at 17:34
Why do people like case sensitivity?
Why do people like case sensitivity? Just wondering why people like case sensitivity in a programming language? I'm not trying to start a flame war just curious thats all. Personally I have never real...
- Modified
- 3 Oct at 04:29
List 'Except' comparison - ignore case
List 'Except' comparison - ignore case I have two lists and I want to compare them and get the differences, while ignoring any case differences. I have used the following code to get the differences b...
- Modified
- 5 Sep at 08:17
c# switch statement is return suitable to replace break
c# switch statement is return suitable to replace break Is this an appropriate way to handle c# switch statements or is an explicit break required still? [reference](https://stackoverflow.com/questio...
- Modified
- 23 May at 12:26
What is a good substitute for a big switch-case?
What is a good substitute for a big switch-case? I have objects called Country. At some point in the program, I want to set the field power of each object. The power for each country is fixed and I ha...
- Modified
- 18 Dec at 17:29
How can I do a case insensitive string comparison?
How can I do a case insensitive string comparison? How can I make the line below case insensitive? I was given some advice earlier today that suggested I use: the trouble is I can't
- Modified
- 31 Oct at 09:54
JavaScript: using a condition in switch case
JavaScript: using a condition in switch case How can I use a condition inside a switch statement for JavaScript? In the example below, a case should match when the variable `liCount` is ` 0`; however,...
- Modified
- 4 Apr at 13:12
Show empty string when date field is 1/1/1900
Show empty string when date field is 1/1/1900 I'm querying a database like so: lhd.CreatedDate is a DateTime field and is non-nullable. I want to display an empty string if the field is the minimum da...
- Modified
- 21 Mar at 17:35
SQL Server check case-sensitivity?
SQL Server check case-sensitivity? How can I check to see if a database in SQL Server is case-sensitive? I have previously been running the query: But I am looking for other ways as this has actually ...
- Modified
- 25 May at 15:18