Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- b165f6e25e8044d10c0e354b7301adcc9dedd4fa is the first bad commit
- commit b165f6e25e8044d10c0e354b7301adcc9dedd4fa
- Author: aquileia <[email protected]>
- Date: Sat Mar 22 15:13:57 2014 +0100
- Improve UTF-8 handling
- For manipulation of UTF-8 encoded strings (insert, delete, truncate, and
- size), usually conversion to wstring and back was necessary. This has
- two disadvantages:
- * the size of wstring is implementation defined
- * the
- double conversion is slow
- The purpose of this patch is to add functions
- to handle these tasks by a layer handling the different indexing between
- codepoints and characters.
- This commit applies these functions in
- several places to replace the old implementations.
- The byte_size_from_utf8_first() implementation will be replaced in a
- separate commit as it relies on the count_leading_ones function by 8680.
- Signed-off-by: aquileia <[email protected]>
- :040000 040000 9261d0c18b9dd497cda02c6bd7ab0b05f49aa96f 0920eec562c9868dae9b6a5d8f3b03d1d458cd15 M src
Advertisement
Add Comment
Please, Sign In to add comment