String comparison: Difference between revisions

Content added Content deleted
imported>Thebeez
m (→‎{{header|Wren}}: Minor tidy)
Line 4,504: Line 4,504:


Case insensitive comparisons can be achieved by converting both strings to the same case before the comparisons are made.
Case insensitive comparisons can be achieved by converting both strings to the same case before the comparisons are made.
<syntaxhighlight lang="ecmascript">import "/str" for Str
<syntaxhighlight lang="wren">import "./str" for Str


var compareStrings = Fn.new { |a, b, sens|
var compareStrings = Fn.new { |a, b, sens|