mirror of
https://github.com/ruby/ruby.git
synced 2025-09-21 03:24:00 +02:00
* include/ruby/encoding.h (rb_isascii): simplified.
(rb_isalnum): call onigenc_ascii_is_code_ctype without indirect call. (rb_isalpha): ditto. (rb_isblank): ditto. (rb_iscntrl): ditto. (rb_isdigit): ditto. (rb_isgraph): ditto. (rb_islower): ditto. (rb_isprint): ditto. (rb_ispunct): ditto. (rb_isspace): ditto. (rb_isupper): ditto. (rb_isxdigit): ditto. * include/ruby/oniguruma.h (onigenc_ascii_is_code_ctype): declaration moved from regenc.h. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14864 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
df4f37bca3
commit
155fda385e
5 changed files with 35 additions and 14 deletions
|
@ -968,6 +968,7 @@ int rb_remove_event_hook(rb_event_hook_func_t func);
|
|||
} /* extern "C" { */
|
||||
#endif
|
||||
|
||||
/* locale insensitive functions */
|
||||
#include "encoding.h"
|
||||
#ifndef ISPRINT
|
||||
#define ISASCII(c) rb_isascii((int)(unsigned char)(c))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue