|
Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
|
Functions | |
| std::string | quote (const std::string &s) |
| std::string | quote_id_if_needed (const std::string &s) |
Return s as a bare DOT identifier when it matches [A-Za-z_][A-Za-z_0-9]*, otherwise return quote(s). | |
|
inline |
Definition at line 92 of file ca-dot.H.
References Aleph::blossom_maximum_cardinality_matching(), and out.
Referenced by quote_id_if_needed().
|
inline |
Return s as a bare DOT identifier when it matches [A-Za-z_][A-Za-z_0-9]*, otherwise return quote(s).
The bare form keeps round-trip-friendly output for the default graph_name = "CA" while protecting names that contain spaces or other characters DOT does not allow bare.
Definition at line 110 of file ca-dot.H.
References Aleph::and, Aleph::blossom_maximum_cardinality_matching(), and quote().