Module mangle

Module mangle 

Source
Expand description

Functions for parsing and applying version and URL mangling expressions.

Debian watch files use sed-style expressions for transforming versions and URLs.

Structs§

MangleExpr
A parsed mangling expression

Enums§

MangleError
Error type for mangling expression parsing
MangleExprKind
Type of mangling expression

Functions§

apply_mangle
Apply a mangling expression to a string
parse_mangle_expr
Parse a mangling expression
parse_subst_expr
Parse a substitution expression (s/pattern/replacement/flags)
parse_transl_expr
Parse a translation expression (tr/pattern/replacement/flags or y/pattern/replacement/flags)