Commit Graph
2 Commits
Author SHA1 Message Date
Paul Beusterien f8b22fa78c Fix long line and run style (#517) 2017-11-30 16:25:23 -08:00
rsgowman 4ec5f00b1d Fix StringView to properly convert NSStrings (#509)
NSStrings are utf16, so NSString::length returns the number of utf16
characters present in the string. When the string is entirely made up of
US-ASCII characters, everything's fine. But when characters requiring 16
bits are present, the size calculations were incorrect.

Fixed by calculating the length based on the destination character set
(i.e. UTF8).
2017-11-30 13:41:26 -05:00