Considering the class below
- can I do anything to implement a case-insensitive string?
public class Attibute
{
// The Name should be case-insensitive
public string Name
{
get;
set;
}
public Attibute()
{
}
}
public class ClassWithAttributes
{
private List<Attributes> _attributes;
p...
I want to select records from sqlite3 database by string matching. But if I use '=' in the where clause, I found that sqlite3 is case sensitive. Can anyone tell me how to use string comparing case-insensitive? Thank you very much!
...
When using the String.Equals(string a, string b, StringComparison comparisonType) and not caring about the case of 'a' and 'b', what's the proper StringComparison to use?
In other words, what's the difference between StringComparison.CurrentCultureIgnoreCase, StringComparison.InvariantCultureIgnoreCase, and StringComparison.OrdinalIgnor...
What's the best way to use regular expressions with options (flags) in Haskell
I use
Text.Regex.PCRE
The documentation lists a few interesting options like compCaseless, compUTF8, ...
But I don't know how to use them with (=~)
...
I have a query for sqlite3 database which provides the sorted data. The data are sorted on the basis of a column which is a varchar column "Name". Now when I do the query
select * from tableNames Order by Name;
It provides the data like this.
Pen
Stapler
pencil
Means it is considering the case sensitive stuff. The way...
I have in the settings file a row of all the file types I want to allow:
jpeg|jpg|tiff|tif|png|gif|bmp|eps|wmf|emf|pdf|doc|docx|zip|rar|ppt|pptx|mdb|xls
I want to have next to the FileUpload control a RegularExpressionValidator that allows only these files.
I am handling it in the PageLoad event setting the ValidationExpression prope...
Git-svn allowed for a duplicate filename, just with different case, to be added to our subversion repository.
On Windows this meant that subversion could not checkout the file, complaining of a duplicate.
Another developer deleted the incorrectly cased version from the repository. Now when trying to do a git-svn rebase I get a "could n...
My scenario:
I have a textbox that the user enters text
The textbox has an onblur function that tries to select a value from a dropdownlist (if it exists) based on the textbox input
This works perfectly fine if the textbox value is the same case as the dropdownlist value. But I want it to be case insensitive.
So if the user types "...
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 because the values are of different cases in both lists. There is no rhyme or reason to th...
Is there any simply way how to create a case insensitive (String -> String) Glib Hash Table?
The result should fit this:
GHashTable *table;
//there should be definition of table
g_hash_table_insert(table, "KeY", "Something"); //insert
//every command should return the line in table
g_hash_table_lookup(table, "Key");
g_hash_table_look...
Hello,
I'm trying to find a collation in MySQL (my version is 5.0) where strings that differ in case are considered the same but there're no other rules like:
á = a
and so on.
I tried to find the proper collation here: http://www.collation-charts.org/mysql60/by-charset.html but it seems that the collation I'm looking for doesn't exi...
I am using mysql and php. In my database I have this table called users, inside users table have a record:
username: admin
password: password
In my login page, I tried login as (password: password):
username : ADMIN -> result : can login
username : admin -> result : can login
I store the username in my database as "admin" all low...
In a recent VB.NET project I adopted the naming conventions I'm used to using in C#. Namely, often calling a variable the same name as the class it references, only with a different case, e.g.
Foo foo = new Foo(); // C#
Dim foo As New Foo() ' VB.NET
I find this is often the clearest way to write code, especially for small methods. Th...
in mamp which uses apache is there a way to make the files names filenames case insensitive?
...
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 perform case sensitive comparison. For example if Column1 is having two values say Test and test, after applying group by it returns two seperate rows with values Test an...
In theory emails are case sensitive. But using emails as system login I want them to be all lower case (i.e. [email protected] and [email protected] cannot be different users).
Can this be a problem for some users who use case sensitivity in their email address? Does somebody use it out there?
Edit: Because there are many "preserve case on s...
This SELECT finds Kelly as expected:
select [First Name], [Last Name], Phone from [Data$] where [First Name] like "%Kelly%"
In the Excel spreadsheet, the first name is "Kelly" with a capital "K" -- and the SELECT specifies a capital "K" also.
However, if the K in > like "%Kelly%" < is LOWER-case -- like "%kelly%" -- then the record is...
Hi,
I have found this answer useful:
Accent and case insensitive COLLATE equivalent in Oracle, but my question is regarding LIKE searching with a version 9 Oracle db.
I have tried a query like this:
SELECT column_name FROM table_name WHERE NLSSORT(column_name, 'NLS_SORT = Latin_AI') LIKE NLSSORT('%somethingInDB%', 'NLS_SORT = Latin_AI...
I asked a similar question yesterday, but recognize that i need to rephase it in a different way.
In short:
In C++ on Windows, how do I do a case-insensitive search for a string (inside another string) when the strings are in unicode format (wide char, wchar_t), and I don't know the language of the strings. I just want to know whether t...
I've seen this question, but that's asking for case-insensitive comparisons when the database is case-sensitive. I'm having a problem with the exact opposite.
I'm using SQL Server 2005, my database collation is set to Latin1_General_CI_AS.
I've got a table, "User", like this:
CREATE TABLE [dbo].[User] (
[Id] [int] IDENTITY(1,1) NOT N...