update harfbuzz to 10.1.0

This commit is contained in:
Sasha Szpakowski
2024-11-08 20:45:28 -04:00
parent 7ca40027e0
commit aecb572558
3449 changed files with 101770 additions and 22266 deletions
+24 -1
View File
@@ -319,13 +319,36 @@ main (int argc, char **argv)
;
/* The result should be something like 0->10, 1->11, ..., 9->19 */
assert (hb_map_get (result, 9) == 19);
hb_map_destroy (result);
/* Like above, but passing hb_set_t instead of hb_set_t * */
temp1 = 10;
temp2 = 0;
result =
+ hb_iter (src)
| hb_map ([&] (int i) -> hb_set_t
{
hb_set_t set;
for (unsigned int i = 0; i < temp1; ++i)
hb_set_add (&set, i);
temp1++;
return set;
})
| hb_reduce ([&] (hb_map_t *acc, hb_set_t value) -> hb_map_t *
{
hb_map_set (acc, temp2++, hb_set_get_population (&value));
return acc;
}, hb_map_create ())
;
/* The result should be something like 0->10, 1->11, ..., 9->19 */
assert (hb_map_get (result, 9) == 19);
hb_map_destroy (result);
unsigned int temp3 = 0;
+ hb_iter(src)
| hb_map([&] (int i) { return ++temp3; })
| hb_reduce([&] (float acc, int value) { return acc + value; }, 0)
;
hb_map_destroy (result);
+ hb_iter (src)
| hb_drain