Added String.fromByte with docs and unit test

This commit is contained in:
Walter Schell
2019-02-27 08:05:07 -05:00
parent 487f53ace1
commit a437e804ba
9 changed files with 44 additions and 0 deletions

View File

@ -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**