irssi/src/core/iregex.h

36 lines
822 B
C
Raw Normal View History

2019-05-01 22:22:22 +02:00
#ifndef IRSSI_CORE_IREGEX_H
#define IRSSI_CORE_IREGEX_H
2019-05-01 16:33:47 +02:00
#include <irssi/src/common.h>
typedef GRegex Regex;
2017-06-05 11:41:50 +02:00
typedef struct _MatchInfo MatchInfo;
gboolean
i_match_info_matches (const MatchInfo *match_info);
void
i_match_info_free (MatchInfo *match_info);
Regex *
i_regex_new (const gchar *pattern,
GRegexCompileFlags compile_options,
GRegexMatchFlags match_options,
GError **error);
void
i_regex_unref (Regex *regex);
gboolean
i_regex_match (const Regex *regex,
const gchar *string,
GRegexMatchFlags match_options,
2017-06-05 11:41:50 +02:00
MatchInfo **match_info);
gboolean
i_match_info_fetch_pos (const MatchInfo *match_info,
gint match_num,
gint *start_pos,
2017-06-05 11:41:50 +02:00
gint *end_pos);
#endif