aboutsummaryrefslogtreecommitdiff
path: root/lib/utf8_is_space.c
blob: d641017ceffbde264549e0caaf54b4ad778a0e72 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include <config.h>
#include "dico.h"

static const unsigned start[] = {
     0,
     9,    32,  5760,  8192,  8200,  8232, 12288,
};

static int count[] = {
     0,
     5,     1,     1,     7,     4,     2,     1,
};

int
utf8_wc_is_space(unsigned wc)
{
    return utf8_table_check(wc, start, count, DICO_ARRAY_SIZE(start));
}

Return to:

Send suggestions and report system problems to the System administrator.