2015-02-11 14:44:54 +00:00
|
|
|
/* Automatically generated by mkrunetype.awk */
|
|
|
|
#include <stdlib.h>
|
|
|
|
|
|
|
|
#include "../utf.h"
|
|
|
|
#include "runetype.h"
|
|
|
|
|
|
|
|
static Rune space2[][2] = {
|
2015-02-12 15:48:22 +00:00
|
|
|
{ 0x0009, 0x000D },
|
|
|
|
{ 0x001C, 0x0020 },
|
2015-02-11 14:44:54 +00:00
|
|
|
{ 0x2000, 0x200A },
|
|
|
|
{ 0x2028, 0x2029 },
|
|
|
|
};
|
|
|
|
|
|
|
|
static Rune space1[] = {
|
2015-02-12 15:48:22 +00:00
|
|
|
0x0085,
|
2015-02-11 14:44:54 +00:00
|
|
|
0x00A0,
|
|
|
|
0x1680,
|
|
|
|
0x202F,
|
|
|
|
0x205F,
|
|
|
|
0x3000,
|
|
|
|
};
|
|
|
|
|
|
|
|
int
|
|
|
|
isspacerune(Rune r)
|
|
|
|
{
|
|
|
|
if(bsearch(&r, space2, nelem(space2), sizeof *space2, &rune2cmp))
|
|
|
|
return 1;
|
|
|
|
if(bsearch(&r, space1, nelem(space1), sizeof *space1, &rune1cmp))
|
|
|
|
return 1;
|
|
|
|
return 0;
|
|
|
|
}
|