From b15e3c764db12c8a26f2c1d5346e4b2e2d3ff20c Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sun, 15 Nov 2015 07:09:10 -0700 Subject: [PATCH] bitwise-shift operators --- doc/mlr.1.premade | 6 +++--- doc/reference.html | 4 +++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/doc/mlr.1.premade b/doc/mlr.1.premade index acf587229..76e4a490e 100644 --- a/doc/mlr.1.premade +++ b/doc/mlr.1.premade @@ -141,9 +141,9 @@ output separator to the given value. abs acos acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp expm1 floor invqnorm log log10 log1p logifit madd msub mmul mexp max min pow qnorm round roundm sgn sin sinh sqrt tan tanh urand urandint + + - - * / // % - ** | ^ & ~ =~ !=~ == != > >= < <= && || ^^ ! strlen sub gsub tolower toupper . - boolean float int string hexfmt fmtnum systime sec2gmt gmt2sec sec2hms - sec2dhms hms2sec dhms2sec fsec2hms fsec2dhms hms2fsec dhms2fsec + ** | ^ & ~ << >> =~ !=~ == != > >= < <= && || ^^ ! strlen sub gsub tolower + toupper . boolean float int string hexfmt fmtnum systime sec2gmt gmt2sec + sec2hms sec2dhms hms2sec dhms2sec fsec2hms fsec2dhms hms2fsec dhms2fsec Please use "mlr --help-function {function name}" for function-specific help. Please use "mlr --help-all-functions" or "mlr -f" for help on all functions. .fi diff --git a/doc/reference.html b/doc/reference.html index fdd90f263..b3f8a7f38 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -294,7 +294,7 @@ Functions for the filter and put verbs: abs acos acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp expm1 floor invqnorm log log10 log1p logifit madd msub mmul mexp max min pow qnorm round roundm sgn sin sinh sqrt tan tanh urand urandint + + - - * / // - % ** | ^ & ~ =~ !=~ == != > >= < <= && || ^^ ! strlen sub gsub tolower + % ** | ^ & ~ << >> =~ !=~ == != > >= < <= && || ^^ ! strlen sub gsub tolower toupper . boolean float int string hexfmt fmtnum systime sec2gmt gmt2sec sec2hms sec2dhms hms2sec dhms2sec fsec2hms fsec2dhms hms2fsec dhms2fsec Please use "mlr --help-function {function name}" for function-specific help. @@ -2867,6 +2867,8 @@ urandint (math: #args=2): Integer uniformly distributed between inclusiv ^ (math: #args=2): Bitwise XOR. & (math: #args=2): Bitwise AND. ~ (math: #args=1): Bitwise NOT. +<< (math: #args=2): Bitwise left-shift. +>> (math: #args=2): Bitwise right-shift. =~ (boolean: #args=2): String (left-hand side) matches regex (right-hand side), e.g. '$name =~ "^a.*b$"'. !=~ (boolean: #args=2): String (left-hand side) does not match regex (right-hand side), e.g. '$name !=~ "^a.*b$"'. == (boolean: #args=2): String/numeric equality. Mixing number and string results in string compare.