Strings
to_string
| Overload | Description |
|---|---|
to_string(n: Int) -> String |
Returns n as a String
|
code_point_at
| Overload | Description |
|---|---|
code_point_at(str: &String, n: Int) -> Int |
Returns the unicode code point in str at the position n
|
code_point_at(str: @String, n: Int) -> Int |
code_point_to_str
| Overload | Description |
|---|---|
code_point_to_str(n: Int) -> String |
Returns n as a String, using it as an unicode code point
|
code_point_length
| Overload | Description |
|---|---|
code_point_length(n: Int) -> Int |
Returns the length in bytes of n when encoded in UTF-8
|
utf8_array
| Overload | Description |
|---|---|
utf8_array(str: &String) -> Array<Int> |
Returns str encoded in UTF-8
|
utf8_array(str: @String) -> Array<Int> |
utf8_to_str
| Overload | Description |
|---|---|
utf8_to_str(arr: &Array<Int>) -> String |
Returns arr as a String, assuming it is encoded in UTF-8
|
utf8_to_str(arr: @Array<Int>) -> String |