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

Function custom

test/custom.c:5–13  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3static int thunk_test = 1;
4
5static utf8proc_int32_t custom(utf8proc_int32_t codepoint, void *thunk)
6{
7 check(((int *) thunk) == &thunk_test, "unexpected thunk passed");
8 if (codepoint == 'a')
9 return 'b';
10 if (codepoint == 'S')
11 return 0x00df; /* ß */
12 return codepoint;
13}
14
15int main(void)
16{

Callers

nothing calls this directly

Calls 1

checkFunction · 0.85

Tested by

no test coverage detected