An operation is case insensitive when uppercase and lowercase characters are equally treated.
Questions tagged [case-insensitive]
1146 questions
13
votes
3 answers
Case Sensitivity Kotlin / ignoreCase
I am trying to ignore case sensitivity on a string. For example, a user can put "Brazil" or "brasil" and the fun will trigger. How do I implement this? I am new to Kotlin.
fun questionFour() {
val edittextCountry =…

superheron
- 343
- 1
- 3
- 9
13
votes
1 answer
iTerm2 trigger case insensitive
Recently I discovered iTerm2's wonderful feature: triggers. Now I want iTerm to highlight some pieces of text, for exampeo error, fatal, etc. I want those triggers to be case-insensitive, but I'm having a hard time setting up these triggers.…

Rogier Lommers
- 2,263
- 3
- 24
- 38
13
votes
7 answers
In bash, can the file operator (-f) be case-insensitive?
I'm doing the following:
if [ -f $FILE ] ; then
echo "File exists"
fi
But I want the -f to be case-insensitive. That is, if FILE is /etc/somefile, I want -f to recognize /Etc/SomeFile.
I can partially work around it with glob:
shopt -s…

Paul Richter
- 6,154
- 2
- 20
- 22
13
votes
2 answers
case insensitive LDAP searches
What is the syntax for performing a case-insensitive match on a uid attribute? If attribute definition matters then how would that be changed?
In particular I am using ApacheDS for my LDAP store.

harschware
- 13,006
- 17
- 55
- 87
13
votes
5 answers
Collection removeAll ignoring case?
Ok so here is my issue. I have to HashSet's, I use the removeAll method to delete values that exist in one set from the other.
Prior to calling the method, I obviously add the values to the Sets. I call .toUpperCase() on each String before adding…

user84786
- 631
- 7
- 19
- 33
12
votes
4 answers
Can SVN handle case sensitivity issues?
Is there a way to force SVN to be case insensitive? We have an issue where a user commits from a linux environment with files say "file.ext" and "File.ext". Works just fine. The problem, however, is when a user on a MAC OSX or Windows attempts an…

ccook
- 5,869
- 6
- 56
- 81
12
votes
2 answers
How to transform to lowercase a value in SQLite?
In the SQLite database, I have stored all values in uppercase.
How can I select the specified value in the database using lower case?

user533787
- 689
- 2
- 13
- 28
12
votes
5 answers
C# Comparing strings with different case
I'm reading a username and then checking to see if exists in another database table, the problem is whilst the username is the same the case maybe different and is preventing it from finding a match example jsmith and JSmith or JSMITH.
How can I fix…

Jamie
- 2,465
- 10
- 28
- 31
12
votes
4 answers
javascript: ignoring case sensitivity of strings
In JavaScript, I'm trying using the user's input to search my database. For example, user input is "monster", and my database's data is "Monster". How can I have it match regardless of it's casing?

Strawberry
- 66,024
- 56
- 149
- 197
12
votes
7 answers
Rails Routes - How to make them case insensitive?
Routes in Ruby on Rails are case sensitive. It seems someone brought this up before, and it has been labeled will not fix.
http://rails.lighthouseapp.com/projects/8994/tickets/393-routes-are-case-sensitive
That strikes me as unfortunate, as I don't…

William Jones
- 18,089
- 17
- 63
- 98
12
votes
3 answers
LINQ to DataSet case insensitive group by
I have a data table and I want to perform a case insensitive group by over a column of data table (say Column1 of type string). I observed that normally LINQ to DataSet performs a case sensitive comparison. For example, if Column1 has two string…

Anoop
- 5,246
- 6
- 27
- 29
12
votes
3 answers
PHP case-insensitive explode()
I have the following code:
explode("delimiter", $snippet);
But I want that my delimiter is case-insensitive.

Luis Liz
- 1,939
- 4
- 20
- 31
12
votes
2 answers
Difference of stricmp and _stricmp in Visual Studio?
I may asking a stupid question, but I really can't find an answer with google plus I am still a beginner of using MSVS.
I recently need to use functions to make comparison of two strings. What I don't understand is the difference of stricmp and…

FortCpp
- 906
- 2
- 12
- 28
11
votes
3 answers
Storing a case insensitive varchar in PostgreSQL
I want to add some constraint to my username varchar in the SQL table so that if a username exists, a duplicate username in a different case cannot be created. How can I do this? Thanks
Edit:
I am using PostgreSQL, a little syntax help will be…
cod3r
11
votes
2 answers
How to make a CaseInsensitiveConcurrentMap?
How can I implement
class CaseInsensitiveConcurrentMap implements ConcurrentMap
which works just like ConcurrentHashMap except that the keys are compared case-insensitively? The keys should not be converted to lowercase…

maaartinus
- 44,714
- 32
- 161
- 320