String length: Difference between revisions

Content added Content deleted
(add RPL)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 4,024: Line 4,024:
=={{header|Wren}}==
=={{header|Wren}}==
===Byte Length===
===Byte Length===
<syntaxhighlight lang="ecmascript">System.print("møøse".bytes.count)
<syntaxhighlight lang="wren">System.print("møøse".bytes.count)
System.print("𝔘𝔫𝔦𝔠𝔬𝔡𝔢".bytes.count)
System.print("𝔘𝔫𝔦𝔠𝔬𝔡𝔢".bytes.count)
System.print("J̲o̲s̲é̲".bytes.count)</syntaxhighlight>
System.print("J̲o̲s̲é̲".bytes.count)</syntaxhighlight>
Line 4,036: Line 4,036:


===Character Length===
===Character Length===
<syntaxhighlight lang="ecmascript">System.print("møøse".count)
<syntaxhighlight lang="wren">System.print("møøse".count)
System.print("𝔘𝔫𝔦𝔠𝔬𝔡𝔢".count)
System.print("𝔘𝔫𝔦𝔠𝔬𝔡𝔢".count)
System.print("J̲o̲s̲é̲".count)</syntaxhighlight>
System.print("J̲o̲s̲é̲".count)</syntaxhighlight>
Line 4,049: Line 4,049:
===Grapheme Length===
===Grapheme Length===
{{libheader|Wren-upc}}
{{libheader|Wren-upc}}
<syntaxhighlight lang="ecmascript">import "./upc" for Graphemes
<syntaxhighlight lang="wren">import "./upc" for Graphemes


System.print(Graphemes.clusterCount("møøse"))
System.print(Graphemes.clusterCount("møøse"))