mirror of
https://github.com/wren-lang/wren.git
synced 2026-01-11 14:18:42 +01:00
Added String.fromByte with docs and unit test
This commit is contained in:
@ -57,6 +57,15 @@ Creates a new string containing the UTF-8 encoding of `codePoint`.
|
||||
It is a runtime error if `codePoint` is not an integer between `0` and
|
||||
`0x10ffff`, inclusive.
|
||||
|
||||
### String.**fromByte**(byte)
|
||||
|
||||
Creates a new string containing the single byte `byte`.
|
||||
|
||||
:::wren
|
||||
String.fromByte(255) //> <20>
|
||||
|
||||
It is a runtime error if `byte` is not an integer between `0` and `0xff`, inclusive.
|
||||
|
||||
## Methods
|
||||
|
||||
### **bytes**
|
||||
|
||||
Reference in New Issue
Block a user