File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ inline bool isAscii(int c)
70
70
// Checks for a blank character, that is, a space or a tab.
71
71
inline bool isWhitespace (int c)
72
72
{
73
- return ( isblank (c) == 0 ? false : true );
73
+ return ( c == ' \t ' || c == ' ' );
74
74
}
75
75
76
76
@@ -98,7 +98,7 @@ inline bool isGraph(int c)
98
98
// Checks for a lower-case character.
99
99
inline bool isLowerCase (int c)
100
100
{
101
- return (islower (c) == 0 ? false : true );
101
+ return ( c >= ' a ' && c <= ' z ' );
102
102
}
103
103
104
104
@@ -113,7 +113,7 @@ inline bool isPrintable(int c)
113
113
// or an alphanumeric character.
114
114
inline bool isPunct (int c)
115
115
{
116
- return ( ispunct (c) == 0 ? false : true );
116
+ return ( isPrintable (c) && ! isSpace (c) && ! isAlphaNumeric (c) );
117
117
}
118
118
119
119
You can’t perform that action at this time.
0 commit comments