--- parser3/operators.txt 2024/12/20 19:20:02 1.263 +++ parser3/operators.txt 2025/01/10 20:02:21 1.267 @@ -156,6 +156,9 @@ odbc parser3odbc.dll ^rem{} a comment, removed at compile time + ^syslog[ident;message[;info|warning|error|debug]] + writes a message to syslog + ^cache[file](seconds){code}[{catch code}] relative time assignment caches the string resulting from the code execution for 'seconds' seconds @@ -427,7 +430,7 @@ hash ^hash.foreach[key;value]{body}[[delimiter]|{delimiter executed before each non-empty non-first body}] ^hash.delete[key] delete key - ^hash.contain[key] + ^hash.contains[key] checks if hash contains a key (bool) ^hash.at[first|last][[key|value|hash]] ^hash.at([-]N)[[key|value|hash]] @@ -508,7 +511,7 @@ array adds an element to the end of the array ^array.pop[] returns the last element and removes it from the array - ^array.contain(index) + ^array.contains(index) checks if an element exists at the given index (bool) ^array::sql{query}[ $.sparse(false|true) $.distinct(false|true) $.limit(n) $.offset(n) $.type[hash|string|table] ] creates an array based on a database query @@ -901,9 +904,9 @@ mail $value[FILE] ] ] - if charset is specified, the email is transcoded to this charset - content-type.charset does not affect transcoding - after the part name a # number can follow + if charset is specified, the email is transcoded to this charset + content-type.charset does not affect transcoding + after the part name a # number can follow ^mail:send[ # by default, matches the source encoding. @@ -1087,8 +1090,13 @@ reflection copies methods and fields from one class to another request + https://site.name/a%20b/?name=some%20value $request:query + name=some%20value $request:uri + /a%20b/?name=value + $request:path + /a b/ $request:document-root directory relative to which paths are considered in parser, default = $env:DOCUMENT_ROOT $request:argv @@ -1418,4 +1426,4 @@ if $SIGPIPE(1) is defined in MAIN, then if the method description explicitly contains the local variable result (there is also an implicit variable), then the code for outputting whitespace literals does not get into the final bytecode -$Id: operators.txt,v 1.263 2024/12/20 19:20:02 moko Exp $ +$Id: operators.txt,v 1.267 2025/01/10 20:02:21 moko Exp $