Sep

Generic separators to build lenses

Author: Raphael Pinson rap.nosp@m.hink@gmai.nosp@m.l.com

Summary
SepGeneric separators to build lenses
LicenseThis file is licensed under the LGPL v2+, like the rest of Augeas.
Augeas Variables
colon
semicolon
comma
equal
space_equal
spaceDeletes a Rx.space and default to a single space
tabDeletes a Rx.space and default to a tab
opt_spaceDeletes a Rx.opt_space and default to an empty string
opt_tabDeletes a Rx.opt_space and default to a tab
cl_or_spaceDeletes a Rx.cl_or_space and default to a single space
cl_or_opt_spaceDeletes a Rx.cl_or_opt_space and default to a single space
lbracket
rbracket

License

This file is licensed under the LGPL v2+, like the rest of Augeas.

Augeas Variables

colon

let colon = Util.del_str ":"

semicolon

let semicolon = Util.del_str ";"

comma

let comma = Util.del_str ","

equal

let equal = Util.del_str "="

space_equal

let space_equal = Util.delim "="

space

let space = del Rx.space " "

Deletes a Rx.space and default to a single space

tab

let tab = del Rx.space "\t"

Deletes a Rx.space and default to a tab

opt_space

let opt_space = del Rx.opt_space ""

Deletes a Rx.opt_space and default to an empty string

opt_tab

let opt_tab = del Rx.opt_space "\t"

Deletes a Rx.opt_space and default to a tab

cl_or_space

let cl_or_space = del Rx.cl_or_space " "

Deletes a Rx.cl_or_space and default to a single space

cl_or_opt_space

let cl_or_opt_space = del Rx.cl_or_opt_space " "

Deletes a Rx.cl_or_opt_space and default to a single space

lbracket

rbracket

let rbracket = Util.del_str ")"
let colon = Util.del_str ":"
let semicolon = Util.del_str ";"
let comma = Util.del_str ","
let equal = Util.del_str "="
let space_equal = Util.delim "="
let space = del Rx.space " "
Deletes a Rx.space and default to a single space
let space = /[ \t]+/
A mandatory space or tab
let tab = del Rx.space "\t"
Deletes a Rx.space and default to a tab
let opt_space = del Rx.opt_space ""
Deletes a Rx.opt_space and default to an empty string
let opt_space = /[ \t]*/
An optional space or tab
let opt_tab = del Rx.opt_space "\t"
Deletes a Rx.opt_space and default to a tab
let cl_or_space = del Rx.cl_or_space " "
Deletes a Rx.cl_or_space and default to a single space
let cl_or_space = cl | space
A cl or a space
let cl_or_opt_space = del Rx.cl_or_opt_space " "
Deletes a Rx.cl_or_opt_space and default to a single space
let cl_or_opt_space = cl | opt_space
A cl or a opt_space
let rbracket = Util.del_str ")"
Close