blob: 049b5f9428393b27af7a90f46c0d8d730f28b961 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
#ifndef MM_UTIL_H
#define MM_UTIL_H
#include <glib.h>
typedef void (*MMUtilStripFn) (const char *str,
gpointer user_data);
/* Applies the regexp on string and calls the callback (if provided)
with each match and user_data. After that, the matches are removed
from the string.
*/
void mm_util_strip_string (GString *string,
GRegex *regex,
MMUtilStripFn callback,
gpointer user_data);
#endif /* MM_UTIL_H */
|