2001-04-03 15:15:41 +02:00
|
|
|
/* GLIB - Library of useful routines for C programming
|
|
|
|
* Copyright (C) 1995-1997, 1999 Peter Mattis, Red Hat, Inc.
|
|
|
|
*
|
2022-05-18 10:15:38 +02:00
|
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
*
|
2001-04-03 15:15:41 +02:00
|
|
|
* 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
|
2017-01-05 12:47:07 +01:00
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
2001-04-03 15:15:41 +02:00
|
|
|
*
|
|
|
|
* 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
|
2014-01-23 12:58:29 +01:00
|
|
|
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
2001-04-03 15:15:41 +02:00
|
|
|
*/
|
2008-03-14 20:30:38 +01:00
|
|
|
|
2012-12-28 05:43:14 +01:00
|
|
|
#ifndef __G_PATTERN_H__
|
|
|
|
#define __G_PATTERN_H__
|
|
|
|
|
2011-10-12 06:24:46 +02:00
|
|
|
#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
|
2008-03-14 20:30:38 +01:00
|
|
|
#error "Only <glib.h> can be included directly."
|
|
|
|
#endif
|
|
|
|
|
2001-06-26 18:01:21 +02:00
|
|
|
#include <glib/gtypes.h>
|
2001-04-03 15:15:41 +02:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct _GPatternSpec GPatternSpec;
|
|
|
|
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2001-04-03 15:15:41 +02:00
|
|
|
GPatternSpec* g_pattern_spec_new (const gchar *pattern);
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2001-04-03 15:15:41 +02:00
|
|
|
void g_pattern_spec_free (GPatternSpec *pspec);
|
2021-04-25 02:30:57 +02:00
|
|
|
GLIB_AVAILABLE_IN_2_70
|
|
|
|
GPatternSpec *g_pattern_spec_copy (GPatternSpec *pspec);
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2001-10-13 07:54:10 +02:00
|
|
|
gboolean g_pattern_spec_equal (GPatternSpec *pspec1,
|
|
|
|
GPatternSpec *pspec2);
|
2021-04-25 02:33:24 +02:00
|
|
|
GLIB_AVAILABLE_IN_2_70
|
|
|
|
gboolean g_pattern_spec_match (GPatternSpec *pspec,
|
|
|
|
gsize string_length,
|
|
|
|
const gchar *string,
|
|
|
|
const gchar *string_reversed);
|
|
|
|
GLIB_AVAILABLE_IN_2_70
|
|
|
|
gboolean g_pattern_spec_match_string (GPatternSpec *pspec,
|
|
|
|
const gchar *string);
|
|
|
|
GLIB_DEPRECATED_IN_2_70_FOR (g_pattern_spec_match)
|
2001-04-03 15:15:41 +02:00
|
|
|
gboolean g_pattern_match (GPatternSpec *pspec,
|
|
|
|
guint string_length,
|
|
|
|
const gchar *string,
|
|
|
|
const gchar *string_reversed);
|
2021-04-25 02:33:24 +02:00
|
|
|
GLIB_DEPRECATED_IN_2_70_FOR (g_pattern_spec_match_string)
|
2001-04-03 15:15:41 +02:00
|
|
|
gboolean g_pattern_match_string (GPatternSpec *pspec,
|
|
|
|
const gchar *string);
|
2012-12-06 20:04:59 +01:00
|
|
|
GLIB_AVAILABLE_IN_ALL
|
2001-04-03 15:15:41 +02:00
|
|
|
gboolean g_pattern_match_simple (const gchar *pattern,
|
|
|
|
const gchar *string);
|
|
|
|
|
|
|
|
G_END_DECLS
|
|
|
|
|
|
|
|
#endif /* __G_PATTERN_H__ */
|