From 363c6aa64d2b6915ccf8d509ea40d751e2f40415 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Sat, 28 Apr 2018 11:23:27 -0700 Subject: [PATCH] ssub online docs --- doc/manpage.html | 15 +++++++++------ doc/manpage.txt | 15 +++++++++------ doc/mlr.1 | 23 ++++++++++++++++------- doc/reference.html | 22 +++++++++++----------- 4 files changed, 45 insertions(+), 30 deletions(-) diff --git a/doc/manpage.html b/doc/manpage.html index 6cf3e3933..868db38ab 100644 --- a/doc/manpage.html +++ b/doc/manpage.html @@ -327,11 +327,11 @@ OPTIONS FUNCTION LIST + + - - * / // .+ .+ .- .- .* ./ .// % ** | ^ & ~ << >> bitcount == != =~ !=~ - > >= < <= && || ^^ ! ? : . gsub strlen sub substr tolower toupper abs acos - acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp expm1 floor - invqnorm log log10 log1p logifit madd max mexp min mmul msub pow qnorm round - roundm sgn sin sinh sqrt tan tanh urand urand32 urandint dhms2fsec dhms2sec - fsec2dhms fsec2hms gmt2sec hms2fsec hms2sec sec2dhms sec2gmt sec2gmt + > >= < <= && || ^^ ! ? : . gsub strlen sub ssub substr tolower toupper abs + acos acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp expm1 + floor invqnorm log log10 log1p logifit madd max mexp min mmul msub pow qnorm + round roundm sgn sin sinh sqrt tan tanh urand urand32 urandint dhms2fsec + dhms2sec fsec2dhms fsec2hms gmt2sec hms2fsec hms2sec sec2dhms sec2gmt sec2gmt sec2gmtdate sec2hms strftime strptime systime is_absent is_bool is_boolean is_empty is_empty_map is_float is_int is_map is_nonempty_map is_not_empty is_not_map is_not_null is_null is_numeric is_present is_string @@ -1585,6 +1585,9 @@ FUNCTIONS FOR FILTER/PUT (class=string #args=3): Example: '$name=sub($name, "old", "new")' (replace once). + ssub + (class=string #args=3): Like sub but does no regexing. No characters are special. + substr (class=string #args=3): substr(s,m,n) gives substring of s from 0-up position m to n inclusive. Negative indices -len .. -1 alias to 0 .. len-1. @@ -2341,7 +2344,7 @@ SEE ALSO - 2018-03-14 MILLER(1) + 2018-04-28 MILLER(1)

diff --git a/doc/manpage.txt b/doc/manpage.txt index 072a82a9c..004f1d72b 100644 --- a/doc/manpage.txt +++ b/doc/manpage.txt @@ -133,11 +133,11 @@ OPTIONS FUNCTION LIST + + - - * / // .+ .+ .- .- .* ./ .// % ** | ^ & ~ << >> bitcount == != =~ !=~ - > >= < <= && || ^^ ! ? : . gsub strlen sub substr tolower toupper abs acos - acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp expm1 floor - invqnorm log log10 log1p logifit madd max mexp min mmul msub pow qnorm round - roundm sgn sin sinh sqrt tan tanh urand urand32 urandint dhms2fsec dhms2sec - fsec2dhms fsec2hms gmt2sec hms2fsec hms2sec sec2dhms sec2gmt sec2gmt + > >= < <= && || ^^ ! ? : . gsub strlen sub ssub substr tolower toupper abs + acos acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp expm1 + floor invqnorm log log10 log1p logifit madd max mexp min mmul msub pow qnorm + round roundm sgn sin sinh sqrt tan tanh urand urand32 urandint dhms2fsec + dhms2sec fsec2dhms fsec2hms gmt2sec hms2fsec hms2sec sec2dhms sec2gmt sec2gmt sec2gmtdate sec2hms strftime strptime systime is_absent is_bool is_boolean is_empty is_empty_map is_float is_int is_map is_nonempty_map is_not_empty is_not_map is_not_null is_null is_numeric is_present is_string @@ -1391,6 +1391,9 @@ FUNCTIONS FOR FILTER/PUT (class=string #args=3): Example: '$name=sub($name, "old", "new")' (replace once). + ssub + (class=string #args=3): Like sub but does no regexing. No characters are special. + substr (class=string #args=3): substr(s,m,n) gives substring of s from 0-up position m to n inclusive. Negative indices -len .. -1 alias to 0 .. len-1. @@ -2147,4 +2150,4 @@ SEE ALSO - 2018-03-14 MILLER(1) + 2018-04-28 MILLER(1) diff --git a/doc/mlr.1 b/doc/mlr.1 index 2fc54622e..d21c75d63 100644 --- a/doc/mlr.1 +++ b/doc/mlr.1 @@ -2,12 +2,12 @@ .\" Title: mlr .\" Author: [see the "AUTHOR" section] .\" Generator: ./mkman.rb -.\" Date: 2018-03-14 +.\" Date: 2018-04-28 .\" Manual: \ \& .\" Source: \ \& .\" Language: English .\" -.TH "MILLER" "1" "2018-03-14" "\ \&" "\ \&" +.TH "MILLER" "1" "2018-04-28" "\ \&" "\ \&" .\" ----------------------------------------------------------------- .\" * Portability definitions .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ @@ -182,11 +182,11 @@ output separator to the given value. .\} .nf + + - - * / // .+ .+ .- .- .* ./ .// % ** | ^ & ~ << >> bitcount == != =~ !=~ - > >= < <= && || ^^ ! ? : . gsub strlen sub substr tolower toupper abs acos - acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp expm1 floor - invqnorm log log10 log1p logifit madd max mexp min mmul msub pow qnorm round - roundm sgn sin sinh sqrt tan tanh urand urand32 urandint dhms2fsec dhms2sec - fsec2dhms fsec2hms gmt2sec hms2fsec hms2sec sec2dhms sec2gmt sec2gmt + > >= < <= && || ^^ ! ? : . gsub strlen sub ssub substr tolower toupper abs + acos acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp expm1 + floor invqnorm log log10 log1p logifit madd max mexp min mmul msub pow qnorm + round roundm sgn sin sinh sqrt tan tanh urand urand32 urandint dhms2fsec + dhms2sec fsec2dhms fsec2hms gmt2sec hms2fsec hms2sec sec2dhms sec2gmt sec2gmt sec2gmtdate sec2hms strftime strptime systime is_absent is_bool is_boolean is_empty is_empty_map is_float is_int is_map is_nonempty_map is_not_empty is_not_map is_not_null is_null is_numeric is_present is_string @@ -1993,6 +1993,15 @@ and string results in string compare. .fi .if n \{\ .RE +.SS "ssub" +.if n \{\ +.RS 0 +.\} +.nf +(class=string #args=3): Like sub but does no regexing. No characters are special. +.fi +.if n \{\ +.RE .SS "substr" .if n \{\ .RS 0 diff --git a/doc/reference.html b/doc/reference.html index 5a0bdb2a6..416b8f49d 100644 --- a/doc/reference.html +++ b/doc/reference.html @@ -1447,17 +1447,17 @@ Verbs: Functions for the filter and put verbs: + + - - * / // .+ .+ .- .- .* ./ .// % ** | ^ & ~ << >> bitcount == != =~ - !=~ > >= < <= && || ^^ ! ? : . gsub strlen sub substr tolower toupper abs - acos acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp expm1 - floor invqnorm log log10 log1p logifit madd max mexp min mmul msub pow qnorm - round roundm sgn sin sinh sqrt tan tanh urand urand32 urandint dhms2fsec - dhms2sec fsec2dhms fsec2hms gmt2sec hms2fsec hms2sec sec2dhms sec2gmt - sec2gmt sec2gmtdate sec2hms strftime strptime systime is_absent is_bool - is_boolean is_empty is_empty_map is_float is_int is_map is_nonempty_map - is_not_empty is_not_map is_not_null is_null is_numeric is_present is_string - asserting_absent asserting_bool asserting_boolean asserting_empty - asserting_empty_map asserting_float asserting_int asserting_map - asserting_nonempty_map asserting_not_empty asserting_not_map + !=~ > >= < <= && || ^^ ! ? : . gsub strlen sub ssub substr tolower toupper + abs acos acosh asin asinh atan atan2 atanh cbrt ceil cos cosh erf erfc exp + expm1 floor invqnorm log log10 log1p logifit madd max mexp min mmul msub pow + qnorm round roundm sgn sin sinh sqrt tan tanh urand urand32 urandint + dhms2fsec dhms2sec fsec2dhms fsec2hms gmt2sec hms2fsec hms2sec sec2dhms + sec2gmt sec2gmt sec2gmtdate sec2hms strftime strptime systime is_absent + is_bool is_boolean is_empty is_empty_map is_float is_int is_map + is_nonempty_map is_not_empty is_not_map is_not_null is_null is_numeric + is_present is_string asserting_absent asserting_bool asserting_boolean + asserting_empty asserting_empty_map asserting_float asserting_int + asserting_map asserting_nonempty_map asserting_not_empty asserting_not_map asserting_not_null asserting_null asserting_numeric asserting_present asserting_string boolean float fmtnum hexfmt int string typeof depth haskey joink joinkv joinv leafcount length mapdiff mapexcept mapselect mapsum