libgrapheme

Freestanding C library for unicode string handling
git clone https://git.sinitax.com/suckless/libgrapheme
Log | Files | Refs | README | LICENSE | sfeed.txt

word-test.c (388B)


      1/* See LICENSE file for copyright and license details. */
      2#include <stddef.h>
      3
      4#include "util.h"
      5
      6int
      7main(int argc, char *argv[])
      8{
      9	struct break_test *test = NULL;
     10	size_t testlen = 0;
     11
     12	(void)argc;
     13
     14	break_test_list_parse("data/WordBreakTest.txt", &test, &testlen);
     15	break_test_list_print(test, testlen, "word_break_test", argv[0]);
     16	break_test_list_free(test, testlen);
     17
     18	return 0;
     19}