Top |
GQuark | ags_regex_util_error_quark () |
AgsRegexUtil * | ags_regex_util_alloc () |
gpointer | ags_regex_util_copy () |
void | ags_regex_util_free () |
gchar * | ags_regex_util_get_app_encoding () |
gchar * | ags_regex_util_get_encoding () |
gboolean | ags_regex_util_compile () |
AgsRegexMatch * | ags_regex_util_match_alloc () |
AgsRegexMatch * | ags_regex_util_match_copy () |
void | ags_regex_util_match_free () |
void | ags_regex_util_match_get_offset () |
gboolean | ags_regex_util_execute () |
gboolean | ags_regex_util_execute_unichar () |
gboolean | ags_regex_util_execute_unichar2 () |
enum | AgsRegexUtilCompileFlags |
enum | AgsRegexUtilExecuteFlags |
#define | AGS_REGEX_UTIL_ERROR |
enum | AgsRegexUtilError |
struct | AgsRegexMatch |
AgsRegexUtil * ags_regex_util_alloc (gchar *app_encoding
,gchar *encoding
,gboolean is_unichar
,gboolean is_unichar2
);
Allocate AgsRegexUtil
app_encoding |
the application encoding |
|
encoding |
the input encoding |
|
is_unichar |
is gunichar |
|
is_unichar2 |
is gunichar2 |
Since: 6.3.2
gpointer
ags_regex_util_copy (AgsRegexUtil *ptr
);
Create a copy of ptr
.
Since: 6.3.2
void
ags_regex_util_free (AgsRegexUtil *ptr
);
Free the memory of ptr
.
Since: 6.3.2
gchar *
ags_regex_util_get_app_encoding (AgsRegexUtil *regex_util
);
Get application encoding of regex_util
.
Since: 6.3.2
gchar *
ags_regex_util_get_encoding (AgsRegexUtil *regex_util
);
Get encoding of regex_util
.
Since: 6.3.2
gboolean ags_regex_util_compile (AgsRegexUtil *regex_util
,const gchar *regex_str
,gint compile_flags
,GError **error
);
Compile regex_str
by respecting compile_flags
.
regex_util |
the AgsRegexUtil |
|
regex_str |
the regular expression |
|
compile_flags |
the compile flags |
|
error |
an error that may occure |
Since: 6.3.2
AgsRegexMatch * ags_regex_util_match_alloc (AgsRegexUtil *regex_util
,guint match_count
);
Allocate AgsRegexMatch array.
Since: 6.3.2
AgsRegexMatch * ags_regex_util_match_copy (AgsRegexUtil *regex_util
,AgsRegexMatch *match
,guint match_count
);
Copy match
.
Since: 6.3.2
void ags_regex_util_match_free (AgsRegexUtil *regex_util
,AgsRegexMatch *match
);
Free match
.
Since: 6.3.2
void ags_regex_util_match_get_offset (AgsRegexUtil *regex_util
,AgsRegexMatch *match
,guint nth_match
,gint *start_match_offset
,gint *end_match_offset
);
Get offset of match
.
regex_util |
the AgsRegexUtil |
|
match |
the regex match |
|
nth_match |
the match position |
|
start_match_offset |
the start match offset. |
[out] |
end_match_offset |
the end match offset. |
[out] |
Since: 6.3.2
gboolean ags_regex_util_execute (AgsRegexUtil *regex_util
,const gchar *str
,guint match_count
,AgsRegexMatch *match
,guint execute_flags
,GError **error
);
Execute regex_util
and fill match
.
regex_util |
the AgsRegexUtil |
|
str |
the input string |
|
match_count |
the match count |
|
match |
the regex match |
|
execute_flags |
the execute flags |
|
error |
an error that may occure |
Since: 6.3.2
gboolean ags_regex_util_execute_unichar (AgsRegexUtil *regex_util
,const gunichar *str
,guint match_count
,AgsRegexMatch *match
,guint execute_flags
,GError **error
);
Execute regex_util
and fill match
.
regex_util |
the AgsRegexUtil |
|
str |
the input string |
|
match_count |
the match count |
|
match |
the regex match |
|
execute_flags |
the execute flags |
|
error |
an error that may occure |
Since: 6.3.2
gboolean ags_regex_util_execute_unichar2 (AgsRegexUtil *regex_util
,const gunichar2 *str
,guint match_count
,AgsRegexMatch *match
,guint execute_flags
,GError **error
);
Execute regex_util
and fill match
.
regex_util |
the AgsRegexUtil |
|
str |
the input string |
|
match_count |
the match count |
|
match |
the regex match |
|
execute_flags |
the execute flags |
|
error |
an error that may occure |
Since: 6.3.2
Enum values to control the behavior of ags_regex_util_compile()
and related by
enable/disable as flags.
Enum values to control the behavior of ags_regex_util_execute()
and such by
enable/disable as flags.