|
Boolp(x): bool |
|
|
Executes a shell command and returns the output written to standard out while the command is running. The command string may contain references to variables in lexical scope by writing $var or ${var}. The value of these referenced variables are expanded before the command is executed. |
|
|
Returns a piece set consisting of all the direct children elements of q in the markup parse tree, unioned with pieces representing all the text segments in q (excluding all the nested text segments). |
|
|
Makes a new object by copying all the fields of the objects passed as arguments. Fields of p have precedence over fields of o (and so on). |
|
|
Returns a piece inside q, representing everything that is inside q excluding the begin and end tag of q. |
|
|
Deletes s or q from the page by removing all the pieces from the page data structure. |
|
|
Returns all the elements with a specific name contained in piece q. |
|
|
Prints arguments to standard error output followed by end-of-line. |
|
|
Executes a shell command and returns the exit code returned by the command. The command string may contain references to variables in lexical scope by writing $var or ${var}. The value of these referenced variables are expanded before the command is executed. |
|
|
Expands the character entities (eg. "<", "&") in s to their Unicode character equivalents. The DTD of page p is used for the lookups. |
|
|
Expands the character entities (eg. "<", "&") in s to their Unicode character equivalents. The HTML 4.0 DTD is used for the lookups. |
|
|
Removes the field fld from the object o. Nothing happens if the field fld does not exist, |
|
|
Returns a "flattened" piece set (without any overlapping) of all the parts of the page covered by s. |
|
|
Uses the HTTP GET protocol to fetch the resource identified by the URL. |
|
|
The params object/string contains the parameters of a GET that includes a query. |
|
|
GetURL(url: string, params: {object,string}, headers: object): page |
The headers object specifies the additional headers to include in the GET request. |
|
GetURL(url: string, params: {object,string}, headers: object. options: object): page |
The options object allows, amongst other functions, the overridng of the MIME type and DTD to be used for parsing the page. |
|
Uses the HTTP HEAD protocol to fetch the resource headers identified by the URL. |
|
|
The params object contains the parameters of the HEAD request. |
|
|
HeadURL(url: string, params: {object,string}, headers: object): page |
The headers object specifies the additional headers to include in the HEAD request. |
|
InsertAfter(t: tag, q: piece): nil |
Inserts a copy of q after the tag t. Inserts copies of the elements of s after the tag t. |
|
InsertBefore(t: tag, q: piece): nil |
Inserts a copy of q before the tag t. Inserts copies of the elements of s before the tag t. |
|
Loads a WebL function1 implemented in Java. |
|
|
Returns a new named piece starting before t1 and ending after t2. |
|
|
Parses the string s with the mimetype indicated markup parser and returns a page object. |
|
|
Returns a new unnamed piece starting before t1 and ending after t2. |
|
|
Converts a set of pieces into a piece set. Throws an EmptySet exception should s be empty. |
|
|
Extracts the paragraphs in p according to the paragraph terminator specification paraspec. See Paragraph search |
|
|
Extracts the paragraphs in p according to the paragraph terminator specification paraspec. See Paragraph search |
|
|
Returns the element in which q is nested (direct parent in the parse tree). |
|
|
Returns all the occurrences of a regular expression pattern in page p. |
|
|
Returns all the occurrences of a regular expression pattern located inside the piece q. |
|
|
Uses the HTTP POST protocol to fetch the resource identified by the URL. |
|
|
Returns the "parsed character data" of the page. This corresponds to the individual seqences of text on the page, as delimited by markup tags. |
|
|
Returns the "parsed character data" of the piece. This corresponds to the individual seqences of text inside the piece, as delimited by markup tags. |
|
|
The params object/string contains the parameters of a POST to fill in a web form. |
|
|
PostURL(url: string, params: {object,string}, headers: object): page |
The headers object specifies the additional headers to include in the POST request. |
|
PostURL(url: string, params: {object,string}, headers: object. options: object): page |
The options object allows, amongst other functions, the overridng of the MIME type and DTD to be used for parsing the page. |
|
Prints arguments to standard output followed by end-of-line. |
|
|
Reads a line from standard input (throws away the end-of-line character). |
|
|
Replaces each piece set of a with copies of all the elements of b. |
|
|
Returns a list of all list elements except the first element. |
|
|
Executes expression x and returns its value. In case x throws an exception, x is re-executed as many times as needed until it is successful. |
|
|
Extracts a sublist of l starting at element number from and ending at element number to (exclusive). |
|
|
Select(s: set, f: fun): set |
Maps sets, lists, and piecesets to sets, lists, and piecesets respectively according to a membership function f. Function f must have a single argument and must return a boolean value indicating whether the actual argument is to be included in the set, list or pieceset. |
|
Extracts a substring of s starting at character number from and ending at character number to (exclusive). |
|
|
Matches all the occurrences of a sequence of elements identified by pattern. See PCData search |
|
|
Matches all the occurrences of a sequence of elements identified by pattern inside the piece p. See PCData search |
|
|
Suspends thread execution for the specified number of milliseconds. |
|
|
Sorts the elements of l according to the comparison function f. The function f needs to take two formal arguments and return -1, 0, or +1 if the actual arguments are less, equal, or more than each other. |
|
|
Returns the text (sans tags) of a piece. When insertspaces is true, each HTML tag is mapped into a space and inserted into the result string (inline tags like "b", "i", "em", etc. are ignored and not mapped into spaces). This option is useful to correctly identify word boundaries, for example to prevent words flowing together in a case like "<li>wordA</li><li>wordB</li>". |
|
|
Returns the time (in milliseconds) it takes to evaluate the expression x. |
|
|
Performs the expression x and returns its value. If the evaluation takes more than the specified amount of time (in milliseconds), an exception is thrown instead. |
|
|
ToList(s: set): list |
Enumerates all the elements of the argument and returns a list. (See Every Statement) |
|
ToSet(s: set): set |
Enumerates all the elements of the argument and returns a set. (See Every Statement) |
|
Executes x and returns the exception object that was caught. In case no exception is thrown in x, nil is returned. In addition, the exception object contains a field trace that has extra information why the exception occurred. This information is useful for logging unexpected exception events in your WebL programs. |
|
|
Returns the type of x (nil, int, real, bool, char, string, meth, fun, set, list, object, page, piece, pieceset, tag). |