Real-world String Comparison Article Swipe
Related Concepts
Unicode
Normalization (sociology)
String (physics)
Computer science
Equivalence (formal languages)
Object (grammar)
Programming language
Theoretical computer science
Pure mathematics
Mathematics
Natural language processing
Artificial intelligence
Sociology
Anthropology
Mathematical physics
Torsten Ullrich
·
YOU?
·
· 2021
· Open Access
·
· DOI: https://doi.org/10.1145/3475965.3478522
· OA: W3188197078
YOU?
·
· 2021
· Open Access
·
· DOI: https://doi.org/10.1145/3475965.3478522
· OA: W3188197078
In many languages a string comparison is a pitfall for beginners. With any Unicode string as input, a comparison often causes problems even for advanced users. The semantic equivalence of different characters in Unicode requires a normalization of the strings before comparing them. This article shows how to handle Unicode sequences correctly. The comparison of two strings for equality often raises questions concerning the difference between comparison by value, comparison of object references, strict equality, and loose equality. The most important aspect is semantic equivalence.
Related Topics
Finding more related topics…