blob: 3ec2dd0f98a232407eac5166da5abd5d4593d906 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
#include <u.h>
#include <libc.h>
#include "runeistypedata"
int
isspacerune(Rune c)
{
return (mergedlkup(c) & Lspace) == Lspace;
}
int
isalpharune(Rune c)
{
return (mergedlkup(c) & Lalpha) == Lalpha;
}
int
isdigitrune(Rune c)
{
return (mergedlkup(c) & Ldigit) == Ldigit;
}
int
isupperrune(Rune c)
{
return (mergedlkup(c) & Lupper) == Lupper;
}
int
islowerrune(Rune c)
{
return (mergedlkup(c) & Llower) == Llower;
}
int
istitlerune(Rune c)
{
return (mergedlkup(c) & Ltitle) == Ltitle;
}
|