MCPcopy Create free account
hub / github.com/JuliaStrings/utf8proc / main

Function main

test/custom.c:15–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

13}
14
15int main(void)
16{
17 utf8proc_uint8_t input[] = {0x41,0x61,0x53,0x62,0xef,0xbd,0x81,0x00}; /* "AaSb\uff41" */
18 utf8proc_uint8_t correct[] = {0x61,0x62,0x73,0x73,0x62,0x61,0x00}; /* "abssba" */
19 utf8proc_uint8_t *output;
20 utf8proc_map_custom(input, 0, &output, UTF8PROC_CASEFOLD | UTF8PROC_COMPOSE | UTF8PROC_COMPAT | UTF8PROC_NULLTERM,
21 custom, &thunk_test);
22 check_compare("map_custom", input, correct, output, 1);
23 printf("map_custom tests SUCCEEDED.\n");
24 return 0;
25}

Callers

nothing calls this directly

Calls 2

utf8proc_map_customFunction · 0.85
check_compareFunction · 0.85

Tested by

no test coverage detected