Top "String-comparison" questions

string-comparison is the action of comparing strings, resulting in a boolean or an integer indicating the "distance" between the strings.

comparing two strings in SQL Server

Is there any way to compare two strings in SQL Server 2008 stored procedure like below? int returnval = STRCMP(str1, str2) …

sql sql-server-2008 string-comparison
How to Compare two strings using a if in a stored procedure in sql server 2008?

I want to do something like this: declare @temp as varchar set @temp='Measure' if(@temp == 'Measure') Select Measure from …

sql sql-server tsql sql-server-2008 string-comparison
Understanding NSString comparison

Both the following comparisons evaluate to true: 1) @"foo" == @"foo"; 2) NSString *myString1 = @"foo"; NSString *myString2 = @"foo"; myString1 == myString2; However, there are …

objective-c cocoa nsstring string-comparison
PostgreSQL: Case insensitive string comparison

Is there a simple ignore-case-comparison for PostgreSQL? I want to replace: SELECT id, user_name FROM users WHERE lower(email) …

sql postgresql string-comparison case-insensitive
How to compare strings ignoring the case

I want apple and Apple comparison to be true. Currently "Apple" == "Apple" # returns TRUE "Apple" == "APPLE" # returns FALSE

ruby string string-comparison
How to Compare two Qstrings?

I have to compare two Qstrings in qt, say, Qstring str1="1005",str2="1006"; I have tried using , if(str1==str2){ return …

c++ qt string-comparison qstring
Comparing a string with the empty string (Java)

I have a question about comparing a string with the empty string in Java. Is there a difference, if I …

java string comparison string-comparison
Is == in PHP a case-sensitive string comparison?

I was unable to find this on php.net. Is the double equal sign (==) case sensitive when used to compare …

php string-comparison
Using the less than comparison operator for strings

I'm following a tutorial for C++ and looking at strings and overloading with operators such as +=, ==, != etc. Currently I have …

c++ operator-overloading string-comparison stdstring
Bash Shell Scripting - detect the Enter key

I need to compare my input with Enter/Return key... read -n1 key if [ $key == "\n" ] echo "@@@" fi But this …

bash shell string-comparison enter