-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrb_u_string_xdigit.c
More file actions
22 lines (21 loc) · 908 Bytes
/
Copy pathrb_u_string_xdigit.c
File metadata and controls
22 lines (21 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "rb_includes.h"
/* @overload xdigit?
*
* Returns true if the receiver contains only characters in the general
* category Number, decimal digit (Nd) or is a lower- or uppercase letter
* between ‘a’ and ‘f’. Specifically, any character that
*
* * Belongs to the general category Number, decimal digit (Nd)
* * Falls in the range U+0041 (LATIN CAPITAL LETTER A) through U+0046 (LATIN CAPITAL LETTER F)
* * Falls in the range U+0061 (LATIN SMALL LETTER A) through U+0066 (LATIN SMALL LETTER F)
* * Falls in the range U+FF21 (FULLWIDTH LATIN CAPITAL LETTER A) through U+FF26 (FULLWIDTH LATIN CAPITAL LETTER F)
* * Falls in the range U+FF41 (FULLWIDTH LATIN SMALL LETTER A) through U+FF46 (FULLWIDTH LATIN SMALL LETTER F)
*
* will do.
*
* @return [Boolean] */
VALUE
rb_u_string_xdigit(VALUE self)
{
return _rb_u_character_test(self, u_char_isxdigit);
}