2001-04-03 13:15:41 +00:00
|
|
|
/* GLIB - Library of useful routines for C programming
|
|
|
|
* Copyright (C) 1995-1997, 1999 Peter Mattis, Red Hat, Inc.
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library 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
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
2008-03-14 19:30:38 +00:00
|
|
|
|
2012-12-27 23:43:14 -05:00
|
|
|
#ifndef __G_PATTERN_H__
|
|
|
|
#define __G_PATTERN_H__
|
|
|
|
|
2011-10-12 00:24:46 -04:00
|
|
|
#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
|
2008-03-14 19:30:38 +00:00
|
|
|
#error "Only <glib.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2001-06-26 16:01:21 +00:00
|
|
|
#include <glib/gtypes.h>
|
2001-04-03 13:15:41 +00:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GPatternSpec GPatternSpec;
|
|
|
|
|
2012-12-06 14:04:59 -05:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2001-04-03 13:15:41 +00:00
|
|
|
GPatternSpec* g_pattern_spec_new (const gchar *pattern);
|
2012-12-06 14:04:59 -05:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2001-04-03 13:15:41 +00:00
|
|
|
void g_pattern_spec_free (GPatternSpec *pspec);
|
2012-12-06 14:04:59 -05:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2001-10-13 05:54:10 +00:00
|
|
|
gboolean g_pattern_spec_equal (GPatternSpec *pspec1,
|
|
|
|
GPatternSpec *pspec2);
|
2012-12-06 14:04:59 -05:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2001-04-03 13:15:41 +00:00
|
|
|
gboolean g_pattern_match (GPatternSpec *pspec,
|
|
|
|
guint string_length,
|
|
|
|
const gchar *string,
|
|
|
|
const gchar *string_reversed);
|
2012-12-06 14:04:59 -05:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2001-04-03 13:15:41 +00:00
|
|
|
gboolean g_pattern_match_string (GPatternSpec *pspec,
|
|
|
|
const gchar *string);
|
2012-12-06 14:04:59 -05:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2001-04-03 13:15:41 +00:00
|
|
|
gboolean g_pattern_match_simple (const gchar *pattern,
|
|
|
|
const gchar *string);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __G_PATTERN_H__ */
|