Merge: Bytes update
authorJean Privat <jean@pryen.org>
Sat, 28 Nov 2015 14:13:02 +0000 (09:13 -0500)
committerJean Privat <jean@pryen.org>
Sat, 28 Nov 2015 14:13:02 +0000 (09:13 -0500)
commit196545daaa30504e3d707e4a60b10a799e6d4099
treed518827764356193473c25b73227df404e0fd90a
parent451a16e31e78c2eb8bdf68cbc0e956889f3097a6
parenteee4c0eaebb2f0d60f1e758e053aab1e816073eb
Merge: Bytes update

Various updates to `Bytes`, added a new escaping method taking into account \u and \x escape sequences

Also added a add_char method to `Bytes` for convenience.

`to_bytes` in Text now has an optional length parameter for those who wish not to rely on `cstring_length` (or did not want to pay the cost) for the length in bytes.

Pull-Request: #1850
Reviewed-by: Jean Privat <jean@pryen.org>