String comparison: Difference between revisions
m
→Unicode normalization by default: A little less negative about following the Unicode spec
(→{{header|Raku}}: add title for Unicode NFC) |
Thundergnat (talk | contribs) m (→Unicode normalization by default: A little less negative about following the Unicode spec) |
||
Line 3,606:
=== Unicode normalization by default ===
One that people seem to get hung up on is the Kelvin symbol "K" getting automatically converted to ASCII uppercase "K".
<syntaxhighlight lang="raku" line>▼
▲<syntaxhighlight lang="raku" line>say "\c[KELVIN SIGN]".uniname;
# => LATIN CAPITAL LETTER K
Line 3,616 ⟶ 3,617:
say ($kelvin eq $k); # True, lexically equal
say ($kelvin eqv $k); # True, generically equal
say ($kelvin === $k); # True, identical objects</syntaxhighlight>
In most programming language the previous two objects wouldn't be equivalent, but
It's officially identified as a
=={{header|Relation}}==
|