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.

How to compare Unicode characters that "look alike"?

I fall into a surprising issue. I loaded a text file in my application and I have some logic which …

c# .net string unicode string-comparison
Best way to compare 2 urls

I want to compare 2 URLs. Whats the best way to do this? Conditions: 1) It should exclude the http scheme. 2) 'foo.…

c# string-comparison
String comparison on Android Data Binding

I'm trying to make a string comparison with android XML data binding, but I'm not having the right results. Evaluating …

android data-binding comparison string-comparison
Sort Map<String, Object> by keys with IgnoreCase?

Well, I tested TreeMap but it doesn't take in account IgnoreCase on string comparision. I need to order lexicographically and …

java sorting collections string-comparison treemap
How make a filter "does not contain" in Google Stackdriver logs

In Google Stackdriver advanced filter I can insert something like: resource.type="container" resource.labels.cluster_name="mycluster" textPayload!="Metric …

logging string-comparison google-cloud-stackdriver
Options of the StringComparison Enumeration

I'm confused by the options of the StringComparison Enumeration. I just want to compare two strings ignoring case. Can someone …

c# .net string .net-4.0 string-comparison
Is there any way to sort strings in all languages?

I have this code. It sorts correctly in French and Russian. I used Locale.US and it seems to be …

java collation string-comparison
How to properly compare command-line arguments?

I am trying to write a C code which takes arguments in main; thus when I write some strings in …

c string command-line-arguments string-comparison strcmp
In C how to strcmp just the beginning 2 characters and then concatenate?

In C how do I strcmp just the beginning 2 characters? Then concatenate with another string? Something like this: char s[10]; …

c string string-comparison strcmp strncmp
Compare versions as strings

Comparing version numbers as strings is not so easy... "1.0.0.9" > "1.0.0.10", but it's not correct. The obvious way to do it …

c++ string-comparison version-numbering