shadowm

Untitled

Jun 3rd, 2014
329
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.06 KB | None | 0 0
  1. b165f6e25e8044d10c0e354b7301adcc9dedd4fa is the first bad commit
  2. commit b165f6e25e8044d10c0e354b7301adcc9dedd4fa
  3. Author: aquileia <[email protected]>
  4. Date: Sat Mar 22 15:13:57 2014 +0100
  5.  
  6. Improve UTF-8 handling
  7.  
  8. For manipulation of UTF-8 encoded strings (insert, delete, truncate, and
  9. size), usually conversion to wstring and back was necessary. This has
  10. two disadvantages:
  11. * the size of wstring is implementation defined
  12. * the
  13. double conversion is slow
  14.  
  15. The purpose of this patch is to add functions
  16. to handle these tasks by a layer handling the different indexing between
  17. codepoints and characters.
  18.  
  19. This commit applies these functions in
  20. several places to replace the old implementations.
  21.  
  22. The byte_size_from_utf8_first() implementation will be replaced in a
  23. separate commit as it relies on the count_leading_ones function by 8680.
  24.  
  25. Signed-off-by: aquileia <[email protected]>
  26.  
  27. :040000 040000 9261d0c18b9dd497cda02c6bd7ab0b05f49aa96f 0920eec562c9868dae9b6a5d8f3b03d1d458cd15 M src
Advertisement
Add Comment
Please, Sign In to add comment