Handbook
Glossary
1.0name-char? ( object -- ? )
Vocabulary
xml
.
char-classes
Inputs and outputs
object
an
object
?
a
boolean
Word description
Tests if the object is an instance of the
1.0name-char
class.
Definition
USING:
kernel
math
sequences
unicode.data
;
IN:
xml.char-classes
:
1.0name-char?
( object -- ? )
dup
integer?
[
integer>fixnum-strict
dup
category-num
B{
2 1 5 3 10 7 8 6 4 9
}
member?
[
drop
t
]
[
"_-.·:"
member?
]
if
]
[
drop
f
]
if
;