Go to the source code of this file.
Data Structures | |
struct | ExpandoParseError |
Buffer for parsing errors. More... | |
Functions | |
struct ExpandoNode * | node_parse_one (const char *str, NodeTextTermFlags term_chars, const struct ExpandoDefinition *defs, const char **parsed_until, struct ExpandoParseError *err) |
Parse a single Expando from a format string. | |
bool | node_parse_many (struct ExpandoNode *node_cont, const char *str, NodeTextTermFlags term_chars, const struct ExpandoDefinition *defs, const char **parsed_until, struct ExpandoParseError *err) |
Parse a format string. | |
Expando Parsing.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file parse.h.
struct ExpandoNode * node_parse_one | ( | const char * | str, |
NodeTextTermFlags | term_chars, | ||
const struct ExpandoDefinition * | defs, | ||
const char ** | parsed_until, | ||
struct ExpandoParseError * | err | ||
) |
Parse a single Expando from a format string.
[in] | str | String to parse |
[in] | term_chars | Terminator characters, e.g. NTE_GREATER |
[in] | defs | Expando definitions |
[out] | parsed_until | First character after parsed string |
[out] | err | Buffer for errors |
ptr | Expando Node |
Definition at line 49 of file parse.c.
bool node_parse_many | ( | struct ExpandoNode * | node_cont, |
const char * | str, | ||
NodeTextTermFlags | term_chars, | ||
const struct ExpandoDefinition * | defs, | ||
const char ** | parsed_until, | ||
struct ExpandoParseError * | err | ||
) |
Parse a format string.
[in] | node_cont | Container for the results |
[in] | str | String to parse |
[in] | term_chars | Terminator characters, e.g. NTE_GREATER |
[in] | defs | Expando definitions |
[out] | parsed_until | First character after parsed string |
[out] | err | Buffer for errors |
true | Success |
Definition at line 81 of file parse.c.