afc_regexp_get_pos

Name

afc_regexp_get_pos  -- Returns the offsets of the string matching the RE

Synopsis

int afc_regexp_get_pos ( RegExp * regexp, int pos, struct afc_regexp_pos * coords );

Description

This function returns the relative coordinates (start/end) of the particular sub string match.

Inputs

regexp

Pointer to a valid afc_regexp class.

pos

The substring ordinal position you want to know the coords of.

coords

A pointer to an already allocated afc_regexp_pos structure.

Result

should be AFC_ERR_NO_ERROR

Note

See Also