Data update
This commit is contained in:
parent
ed705008a8
commit
0df55f9f24
2196 changed files with 32999 additions and 3075 deletions
|
|
@ -10,12 +10,12 @@ extension op : String
|
|||
|
||||
string printAsUTF8Array()
|
||||
{
|
||||
self.toByteArray().forEach:(b){ console.print(b.toString(16)," ") }
|
||||
self.toByteArray().forEach::(b){ console.print(b.toString(16)," ") }
|
||||
}
|
||||
|
||||
string printAsUTF32()
|
||||
{
|
||||
self.toArray().forEach:(c){ console.print("U+",c.toInt().toString(16)," ") }
|
||||
self.toArray().forEach::(c){ console.print("U+",c.toInt().toString(16)," ") }
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import "/fmt" for Fmt
|
||||
import "./fmt" for Fmt
|
||||
|
||||
var utf8_encode = Fn.new { |cp| String.fromCodePoint(cp).bytes.toList }
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue