src/hb-utf-private.hh


Log

Author Commit Date CI Message
Ebrahim Byagowi 3b0e47ca 2017-06-19T14:47:09 Fix arm-none-eabi build (fixes #451) (#496)
Konstantin Ritt 529a9331 2015-11-07T02:00:04 Micro optimization to hb_utf16_t and hb_utf32_t ::prev() Implement reverse lookup instead of re-using next()
Konstantin Ritt 44ae9be7 2015-11-07T01:58:38 Nano optimization to hb_utf16_t and hb_utf32_t ::next()
Behdad Esfahbod 61820bc4 2015-01-26T14:25:52 [API] Add hb_buffer_add_latin1() This is by no ways to promote non-Unicode encodings. This is an entry point that takes Unicode codepoints that happen to all be the first 256 characters and hence fit in 8bit strings. This is useful eg in Chrome where strings that can fit in 8bit are implemented that way, and this avoids copying into UTF-8 or UTF-16. Perhaps we should rename this to hb_buffer_add_codepoints8(). I'm also curious if anyone would be really interested in hb_buffer_add_codepoints16(). Please discuss!
Behdad Esfahbod a4d64375 2014-07-16T20:15:45 Minor
Behdad Esfahbod 976c8f45 2014-07-16T15:34:20 New API: hb_buffer_[sg]et_replacement_codepoint() With this change, we now by default replace broken UTF-8/16/32 bits with U+FFFD. This can be changed by calling new API on the buffer. Previously the replacement value used to be (hb_codepoint_t)-1. Note that hb_buffer_clear_contents() does NOT reset the replacement character. See discussion here: https://github.com/behdad/harfbuzz/commit/6f13b6d62daae4989e3cc2fe4b168e5c59650964 New API: hb_buffer_set_replacement_codepoint() hb_buffer_get_replacement_codepoint()
Behdad Esfahbod 625dbf14 2014-07-16T14:49:55 [buffer] Templatize UTF-* functions
Behdad Esfahbod e634fed4 2014-07-16T14:17:26 [buffer] Validate UTF-32 input Same as what we do for UTF-8 and UTF-16.
Behdad Esfahbod b7bc0b67 2014-07-11T16:20:28 Simplify / speed up UTF-8 code
Behdad Esfahbod af2490c0 2014-07-11T16:10:58 Only accept well-formed UTF-8 sequences Enable tests that were disabled before, and adjust one test, and add more tests.
Behdad Esfahbod 7323d385 2014-07-11T15:10:05 Simplify hb_utf_prev<16> to call hb_utf_next<16>
Behdad Esfahbod 7627100f 2014-07-11T14:54:42 Mark unsigned integer literals with the u suffix Simplifies hb_in_range() calls as the type can be inferred. The rest is obsessiveness, I admit.
Behdad Esfahbod db8934fa 2014-07-11T13:58:36 Simplify hb_utf_prev<8> to call hb_utf_next<8>
Behdad Esfahbod 6f13b6d6 2014-07-10T19:31:40 When parsing UTF-16, generate invalid codepoint for lonely low surrogate Test passes now.
Behdad Esfahbod 0beb66e3 2012-12-05T18:46:04 Fix warnings
Behdad Esfahbod e13f8d28 2012-11-13T15:12:06 Fix UTF-8 backward iteration Ouch!
Behdad Esfahbod 89ac39db 2012-09-25T13:59:24 Add hb_utf_prev()
Behdad Esfahbod 70ea4ac6 2012-09-25T12:30:16 Slightly optimize UTF-8 parsing
Behdad Esfahbod 4445e5e2 2012-09-25T12:26:12 [buffer] Cleanup / optimize UTF-16 parsing a bit
Behdad Esfahbod 1f66c3c1 2012-09-25T11:42:16 Add hb_utf_strlen() Speeds up UTF-8 parsing by calling strlen().
Behdad Esfahbod 7f19ae7b 2012-09-25T11:22:28 [buffer] Templatize UTF handling Also move UTF routines into a separate file, to be reused from shapers that need it.