diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-28 23:46:07 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2019-05-28 23:46:30 +0900 |
commit | fb568fe724b0c8b2582263ed859ad10f0bd90d38 (patch) | |
tree | bb43d880ccd0d3d173bcafba8174c651742e71b6 /include | |
parent | 8a2b497e3b8d9c9be27278081526cace50490140 (diff) |
Added missing predicate macros
Diffstat (limited to 'include')
-rw-r--r-- | include/ruby/ruby.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h index 86e01f64bf..e698142514 100644 --- a/include/ruby/ruby.h +++ b/include/ruby/ruby.h @@ -2295,6 +2295,9 @@ static inline int rb_toupper(int c) { return rb_islower(c) ? (c&0x5f) : c; } #define ISALPHA(c) rb_isalpha(c) #define ISDIGIT(c) rb_isdigit(c) #define ISXDIGIT(c) rb_isxdigit(c) +#define ISBLANK(c) rb_isblank(c) +#define ISCNTRL(c) rb_iscntrl(c) +#define ISPUNCT(c) rb_ispunct(c) #endif #define TOUPPER(c) rb_toupper(c) #define TOLOWER(c) rb_tolower(c) |