string-comparison
Double-byte string comparison in C#
I have two strings one with a double-byte value and the other is a single byte-one. The string comparison result returns false, how do I get them to compare correctly after ignoring the single-byte/do[详细]
2023-01-24 13:26 分类:问答Regex match that must contain all characters in a string
I\'m sure this has already been asked and answered, but I honestly couldn\'t find my answer after searching for quite a bit and reading Regex Tutorial.What I\'m looking to do is match a string that ha[详细]
2023-01-23 00:48 分类:问答why is compareTo returning true when it should be false?
I\'m debugging erroneous search returns from my data structures class project.This current project required us to build an ordered unrolled linked list, and run a search on the contents, then return a[详细]
2023-01-22 19:05 分类:问答How do I convert between a measure of similarity and a measure of difference (distance)?
Is there a general way to convert between a measure of similarity and a measure of distance? Consider a similarity measure like the number of 2-grams that two strings have in common.[详细]
2023-01-22 14:54 分类:问答String Comparison in Java
开发者_开发问答What does \"compare two strings lexicographically\" mean?Leading from answers from @Bozho and @aioobe, lexicographic comparisons are similar to the ordering that one might find in a dic[详细]
2023-01-22 14:54 分类:问答How can I compare strings in C using a `switch` statement?
In C there is a switch construct which enables one to execute different conditional branches of code based on an test integer value, e.g.,[详细]
2023-01-21 02:21 分类:问答String comparison and String interning in Java
When shou开发者_C百科ld one compare Strings as objects and when should one use their equals method? To make sure, I always use equals, but that doesn\'t seem very efficient. In what situations can I b[详细]
2023-01-18 23:35 分类:问答How can I see if one string loosely contains another (case, extra whitespace, and punctuation ignored)?
I am writing a program in C# that compares strings similarly to the way that Google searches documents for keywords.[详细]
2023-01-18 07:37 分类:问答How do I perform an encoding-independent string-comparison in Java?
I\'m having a strange problem comparing strings. I send a string to my server (as bytes using getBytes()) from the client. I\'ve ensured that encoding is the same on the client and server by starting[详细]
2023-01-18 04:48 分类:问答'Regular Expression' VS 'String Comparison operators / functions'
This question is designed around the performance within PHP but you may broaden it to any language if you wish to.开发者_StackOverflow社区[详细]
2023-01-17 00:25 分类:问答