blob: 3fc3ba91fac6cdba82d90fccec547972bb85ddea (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
/*-
* Copyright (c) 2014-2019 MongoDB, Inc.
* Copyright (c) 2008-2014 WiredTiger, Inc.
* All rights reserved.
*
* See the file LICENSE for redistribution information.
*/
#include <ctype.h>
/*
* __wt_isalnum --
* Wrap the ctype function without sign extension.
*/
static inline bool
__wt_isalnum(u_char c)
{
return (isalnum(c) != 0);
}
/*
* __wt_isalpha --
* Wrap the ctype function without sign extension.
*/
static inline bool
__wt_isalpha(u_char c)
{
return (isalpha(c) != 0);
}
/*
* __wt_isdigit --
* Wrap the ctype function without sign extension.
*/
static inline bool
__wt_isdigit(u_char c)
{
return (isdigit(c) != 0);
}
/*
* __wt_isprint --
* Wrap the ctype function without sign extension.
*/
static inline bool
__wt_isprint(u_char c)
{
return (isprint(c) != 0);
}
/*
* __wt_isspace --
* Wrap the ctype function without sign extension.
*/
static inline bool
__wt_isspace(u_char c)
{
return (isspace(c) != 0);
}
/*
* __wt_tolower --
* Wrap the ctype function without sign extension.
*/
static inline u_char
__wt_tolower(u_char c)
{
return ((u_char)tolower(c));
}
|