String comparison: Difference between revisions

Content added Content deleted
(Added EasyLang implementation)
(→‎{{header|Raku}}: beware to normalization by default)
Line 3,603: Line 3,603:
The generic relationship of Num '5.1' and Rat '5.1' is Same
The generic relationship of Num '5.1' and Rat '5.1' is Same
The numeric relationship of Num '5.1' and Rat '5.1' is Same</pre>
The numeric relationship of Num '5.1' and Rat '5.1' is Same</pre>

Beware that Raku applies normalization (Unicode NFC form (Normalization Form Canonical)) by default to all input and output except for file names<ref>https://docs.raku.org/language/unicode</ref>. Shortly put your Unicode string will rarely be what you expect when you include characters outside the ASCII range.

<syntaxhighlight lang="raku" line>
say "\c[KELVIN SIGN]".uniname;
# => LATIN CAPITAL LETTER K
</syntaxhighlight>

It's officially identified as a common trap for string handling<ref>https://docs.raku.org/language/traps#All_text_is_normalized_by_default</ref>.


=={{header|Relation}}==
=={{header|Relation}}==