REBOL 3 Docs | Guide | Concepts | Functions | Datatypes | Errors |
TOC < Back Next > | Updated: 3-Aug-2010 Edit History |
Makes a bitset of chars for the parse function.
Arguments:
chars [string! block! binary! char! integer!]
Refinements:
/length - Preallocate this many bits
len [integer!] - Must be > 0
See also:
The charset function is a shortcut for:
make bitset! value
It is used often for character based bitsets.
chars: charset "aeiou"
print find chars "o"
true
print find "there you go" chars
ere you go
digits: charset "0123456789"
area-code: ["(" 3 digits ")"]
phone-num: [3 digits "-" 4 digits]
print parse "(707)467-8000" [[area-code | none] phone-num]
true
TOC < Back Next > | REBOL.com - WIP Wiki | Feedback Admin |