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.

Cast collation of nvarchar variables in t-sql

I need to change the collation of an nvarchar variable. By documentation: (...) 3. The COLLATE clause can be specified at several …

sql tsql sql-server-2008 collation string-comparison
Version number comparison in Python

I want to write a cmp-like function which compares two version numbers and returns -1, 0, or 1 based on their compared …

python string-comparison
Check if string is a punctuation character

Let's say I have a String array that contains some letters and punctuation String letter[] = {"a","b","c",".","a"}; In …

java string-comparison punctuation
Java: String: equalsIgnoreCase vs switching everything to Upper/Lower Case

It came to my attention that there a several ways to compare strings in Java. I just got in the …

java string string-comparison
Checking if 2 strings contain the same characters?

Is there a way to check if two strings contain the same characters. For example, abc, bca -> true …

java string string-comparison
Compare output rather than command

Trying to create a script to read a remote file and check the md5 checksum and alert if a mismatch …

bash string-comparison
strcmp or string::compare?

I want to compare two strings. Is it possible with strcmp? (I tried and it does not seem to work). …

c++ c string char string-comparison
Comparing strings with tolerance

I'm looking for a way to compare a string with an array of strings. Doing an exact search is quite …

c# .net string-comparison similarity
Ignore case and compare in C#

How to convert the string to uppercase before performing a compare, or is it possible to compare the string by …

c# .net string-comparison
equal() and equalsIgnoreCase() return false for equal strings

I'm working with eclipse IDE (Version: 3.4.2) on a mac and I have met the following issue. When comparing between strings …

java string string-comparison