ecoli_node_re - Man Page

Name

ecoli_node_re — Regex node

— A node that matches input against a regular expression.  

Synopsis

Functions

struct ec_node * ec_node_re (const char *id, const char *str)
int ec_node_re_set_regexp (struct ec_node *node, const char *re)

Detailed Description

A node that matches input against a regular expression.

Configuration Schema

schema re {
    string pattern  {
        description "The pattern to match.";
    }
}

Function Documentation

struct ec_node * ec_node_re (const char * id, const char * str)

Create a regular expression node.

Parameters

id The node identifier.
str The regular expression pattern (POSIX extended regex).

Returns

The node, or NULL on error (errno is set).

int ec_node_re_set_regexp (struct ec_node * node, const char * re)

Set the regular expression on a regex node.

Parameters

node The regex node.
re The regular expression pattern. It is duplicated internally.

Returns

0 on success, -1 on error (errno is set).

Author

Generated automatically by Doxygen for Libecoli from the source code.

Referenced By

The man pages ec_node_re(3) and ec_node_re_set_regexp(3) are aliases of ecoli_node_re(3).

Version 0.11.3 Libecoli