Data update
This commit is contained in:
parent
29a5eea0d4
commit
5c1bb7bfa9
2011 changed files with 35081 additions and 3229 deletions
|
|
@ -1,8 +1,4 @@
|
|||
# 5
|
||||
print len "møøse"
|
||||
# 7
|
||||
print len "𝔘𝔫𝔦𝔠𝔬𝔡𝔢"
|
||||
# 8
|
||||
print len "J̲o̲s̲é̲"
|
||||
# 1
|
||||
print len "😀"
|
||||
|
|
|
|||
10
Task/String-length/Ecstasy/string-length.ecstasy
Normal file
10
Task/String-length/Ecstasy/string-length.ecstasy
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
module StrLen {
|
||||
@Inject Console console;
|
||||
|
||||
void run(String s = "José") {
|
||||
console.print($|For the string {s.quoted()}:
|
||||
| Character length: {s.size}
|
||||
| UTF-8 byte length: {s.calcUtf8Length()}
|
||||
);
|
||||
}
|
||||
}
|
||||
6
Task/String-length/PascalABC.NET/string-length.pas
Normal file
6
Task/String-length/PascalABC.NET/string-length.pas
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
##
|
||||
var s := 'møøse';
|
||||
// Byte Length
|
||||
Print(s.Length);
|
||||
// Character Length
|
||||
Print(System.Text.Encoding.Utf8.GetByteCount(s));
|
||||
Loading…
Add table
Add a link
Reference in a new issue