Compile a PostExecutionNode
node
Compile a PreExecutionNode
node
Dispatch enter and leave events for AlternationPatternNode
nodes and continue walking the tree.
Dispatch enter and leave events for OptionalParameterNode
nodes and continue walking the tree.
Dispatch enter and leave events for PostExecutionNode
nodes and continue walking the tree.
Dispatch enter and leave events for PreExecutionNode
nodes and continue walking the tree.
Add local/remote options to the command line parser.
Add the –bulk-threshold option
Add the –clear-sources option
Compile a UntilNode
node
Dispatch enter and leave events for UntilNode
nodes and continue walking the tree.
Copy a UntilNode
node
Returns a URL-encoded string derived from the given string str
.
The returned string:
Preserves:
Characters '*'
, '.'
, '-'
, and '_'
.
Character in ranges 'a'..'z'
, 'A'..'Z'
, and '0'..'9'
.
Example:
URI.encode_www_form_component('*.-_azAZ09') # => "*.-_azAZ09"
Converts:
Character ' '
to character '+'
.
Any other character to “percent notation”; the percent notation for character c is '%%%X' % c.ord
.
Example:
URI.encode_www_form_component('Here are some punctuation characters: ,;?:') # => "Here+are+some+punctuation+characters%3A+%2C%3B%3F%3A"
Encoding:
If str
has encoding Encoding::ASCII_8BIT, argument enc
is ignored.
Otherwise str
is converted first to Encoding::UTF_8 (with suitable character replacements), and then to encoding enc
.
In either case, the returned string has forced encoding Encoding::US_ASCII.
Related: URI.encode_uri_component
(encodes ' '
as '%20'
).
Compile a UnlessNode
node
Dispatch enter and leave events for UnlessNode
nodes and continue walking the tree.
Copy a UnlessNode
node