String length: Difference between revisions

Content added Content deleted
(Added EasyLang implementation)
(→‎go Byte Length: use same format for all entries)
Line 1,534: Line 1,534:
j := "J̲o̲s̲é̲"
j := "J̲o̲s̲é̲"
fmt.Printf("%d %s % x\n", len(m), m, m)
fmt.Printf("%d %s % x\n", len(m), m, m)
fmt.Printf("%d %s %x\n", len(u), u, u)
fmt.Printf("%d %s % x\n", len(u), u, u)
fmt.Printf("%d %s % x\n", len(j), j, j)
fmt.Printf("%d %s % x\n", len(j), j, j)
}</syntaxhighlight>
}</syntaxhighlight>
Output:
Output:
<pre>
<pre>
7 møøse 6d c3 b8 c3 b8 73 65
7 møøse 6d c3 b8 c3 b8 73 65
28 𝔘𝔫𝔦𝔠𝔬𝔡𝔢 f09d9498f09d94abf09d94a6f09d94a0f09d94acf09d94a1f09d94a2
28 𝔘𝔫𝔦𝔠𝔬𝔡𝔢 f0 9d 94 98 f0 9d 94 ab f0 9d 94 a6 f0 9d 94 a0 f0 9d 94 ac f0 9d 94 a1 f0 9d 94 a2
14 J̲o̲s̲é̲ 4a cc b2 6f cc b2 73 cc b2 65 cc 81 cc b2
13 J̲o̲s̲é̲ 4a cc b2 6f cc b2 73 cc b2 c3 a9 cc b2
</pre>
</pre>

====Character Length====
====Character Length====
<syntaxhighlight lang="go">package main
<syntaxhighlight lang="go">package main