-
Notifications
You must be signed in to change notification settings - Fork 185
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Some cleanup/improvements to wtf8/utf16 functions
- Remove the `len` parameter from `utf16_` functions, since string.sub can be used to pass a different length to those functions - Remove the allocation of an intermediate NUL-terminated UTF-16 string in `luv_utf16_length_as_wtf8`/`luv_utf16_to_wtf8`, since a NUL terminator is not needed when specifying the length (it's only needed when using `-1` as the length) - Add some more test cases
- Loading branch information
Showing
3 changed files
with
41 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters