libgrapheme

unicode string library
git clone git://git.suckless.org/libgrapheme
Log | Files | Refs | README | LICENSE

character.c (453B)


      1 /* See LICENSE file for copyright and license details. */
      2 #include <stdbool.h>
      3 #include <stdint.h>
      4 
      5 #include "../gen/character-test.h"
      6 #include "util.h"
      7 
      8 static bool
      9 is_break(uint_least32_t cp0, uint_least32_t cp1, GRAPHEME_STATE *state)
     10 {
     11 	return grapheme_is_character_break(cp0, cp1, state);
     12 }
     13 
     14 int
     15 main(int argc, char *argv[])
     16 {
     17 	(void)argc;
     18 
     19 	return run_break_tests(is_break, character_test,
     20 	                       LEN(character_test), argv[0]);
     21 }