Behdad Esfahbod
4c9fe88d30
[API] Make all _from_string() functions take a len parameter
...
Can be -1 for NUL-terminated string. This is useful for passing parts
of a larger string to a function without having to copy or modify the
string first.
Affected functions:
hb_tag_t hb_tag_from_string()
hb_direction_from_string()
hb_language_from_string()
hb_script_from_string()
13 years ago
Behdad Esfahbod
e6c09cdf43
Remove the pre_allocate argument from hb_buffer_create()
...
For two reasons:
1. User can always call hb_buffer_pre_allocate() themselves, and
2. Now we do a pre_alloc in add_utfX anyway, so the total number of
reallocs is limited to a small number (~3) anyway. This just makes the
API cleaner.
13 years ago
Behdad Esfahbod
92de53ea45
[test/buffer] Add more tests for nil buffer
14 years ago
Behdad Esfahbod
da603e8038
[test/font] Start adding tests for hb-font.h
14 years ago
Behdad Esfahbod
b8477e1da2
[test] Add tests for _get_empty() funcs
14 years ago
Behdad Esfahbod
0617b15582
[test] Test blob API
14 years ago
Behdad Esfahbod
c763aa42b4
[test/buffer] Clean up testing
...
Getting the hang of how to cleanly use gtest.
14 years ago
Behdad Esfahbod
6af9cff5e1
[test/unicode] Use text fixture instead of static variables
14 years ago
Behdad Esfahbod
13db3d40bf
[test/buffer] Add UTF-16 tests
14 years ago
Behdad Esfahbod
243673d601
[test/buffer] Add more extensive UTF-8 test data from glib
14 years ago
Behdad Esfahbod
dfec67f958
[test/buffer] Add initial utf-8 tests
14 years ago
Behdad Esfahbod
aafe395ab5
Add test suite infrastructure
...
Wraps around glib for convenience and ease of use.
14 years ago
Behdad Esfahbod
1d39d6e42b
Desable possibly lethal test on 64-bit machines
14 years ago
Behdad Esfahbod
3264042873
[test/buffer] Test pre_allocate() and allocation_successful()
14 years ago
Behdad Esfahbod
15c57e04bf
[test/buffer] Add test pre_alloc(); hangs in the buffer code right now
...
Because the following loop overflows:
while (size > new_allocated)
new_allocated += (new_allocated >> 1) + 32;
14 years ago
Behdad Esfahbod
1e5527e2d6
[test/buffer] Test reset(), set_length(), and set/get_unicode_data()
14 years ago
Behdad Esfahbod
db126b5448
[test/buffer] Test reverse() and reverse_clusters()
14 years ago
Behdad Esfahbod
2409d5f8d7
Update Copyright headers
14 years ago
Behdad Esfahbod
f85faee9b3
[API] Rename hb_buffer_add_glyph() to hb_buffer_add()
14 years ago
Behdad Esfahbod
aab0de50e2
[API] Add hb_buffer_allocation_successful()
...
Returns the error status of the buffer.
14 years ago
Ryan Lortie
70566befc5
[API} hb_buffer_get_glyph_{infos,positions}: Add length out parameter
...
Return the length, whenever we return an array. Makes it easier on the
language bindings.
14 years ago
Behdad Esfahbod
c0af193c8e
Change buffer default properties to invalid
...
This includes HB_DIRECTION_INVALID and HB_SCRIPT_INVALID.
The INVALID will cause a "guess whatever from the text" in hb_shape().
While it's not ideal, it works better than the previous defaults at
least (HB_DIRECTION_LTR and HB_SCRIPT_COMMON).
14 years ago
Behdad Esfahbod
2fc56edff6
[API] Remove hb_buffer_clear()
...
One should use hb_buffer_reset() really.
14 years ago
Behdad Esfahbod
2f2f448af3
[test] Add more TODO items
14 years ago
Behdad Esfahbod
7dea908cd5
[test] Add todo items
14 years ago
Behdad Esfahbod
d0f53fdbea
[test] Test hb-buffer.h
14 years ago