Type representing a regular expression. More...
#include <stdbool.h>#include <stdint.h>
Include dependency graph for regex2.h:
This graph shows which files directly or indirectly include this file:Go to the source code of this file.
Functions | |
| bool | regex_equal (const struct Regex *a, const struct Regex *b) |
| Compare two regexes. | |
| void | regex_free (struct Regex **ptr) |
| Free a Regex object. | |
| struct Regex * | regex_new (const char *str, uint32_t flags, struct Buffer *err) |
| Create an Regex from a string. | |
Type representing a regular expression.
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 regex2.h.
Compare two regexes.
| a | First regex |
| b | Second regex |
| true | They are identical |
Definition at line 52 of file regex.c.
Here is the call graph for this function:
Here is the caller graph for this function:| void regex_free | ( | struct Regex ** | ptr | ) |
Create an Regex from a string.
| str | Regular expression |
| flags | Type flags, e.g. D_REGEX_MATCH_CASE |
| err | Buffer for error messages |
| ptr | New Regex object |
| NULL | Error |
Definition at line 102 of file regex.c.
Here is the call graph for this function:
Here is the caller graph for this function: