Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2026-05-06 08:41:18

0001 /* GLIB - Library of useful routines for C programming
0002  * Copyright (C) 1995-1997, 1999  Peter Mattis, Red Hat, Inc.
0003  *
0004  * SPDX-License-Identifier: LGPL-2.1-or-later
0005  *
0006  * This library is free software; you can redistribute it and/or
0007  * modify it under the terms of the GNU Lesser General Public
0008  * License as published by the Free Software Foundation; either
0009  * version 2.1 of the License, or (at your option) any later version.
0010  *
0011  * This library is distributed in the hope that it will be useful,
0012  * but WITHOUT ANY WARRANTY; without even the implied warranty of
0013  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
0014  * Lesser General Public License for more details.
0015  *
0016  * You should have received a copy of the GNU Lesser General Public
0017  * License along with this library; if not, see <http://www.gnu.org/licenses/>.
0018  */
0019 
0020 #ifndef __G_PATTERN_H__
0021 #define __G_PATTERN_H__
0022 
0023 #if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
0024 #error "Only <glib.h> can be included directly."
0025 #endif
0026 
0027 #include <glib/gtypes.h>
0028 
0029 G_BEGIN_DECLS
0030 
0031 
0032 typedef struct _GPatternSpec    GPatternSpec;
0033 
0034 GLIB_AVAILABLE_IN_ALL
0035 GPatternSpec* g_pattern_spec_new       (const gchar  *pattern);
0036 GLIB_AVAILABLE_IN_ALL
0037 void          g_pattern_spec_free      (GPatternSpec *pspec);
0038 GLIB_AVAILABLE_IN_2_70
0039 GPatternSpec *g_pattern_spec_copy (GPatternSpec *pspec);
0040 GLIB_AVAILABLE_IN_ALL
0041 gboolean      g_pattern_spec_equal     (GPatternSpec *pspec1,
0042                     GPatternSpec *pspec2);
0043 GLIB_AVAILABLE_IN_2_70
0044 gboolean g_pattern_spec_match (GPatternSpec *pspec,
0045                                gsize string_length,
0046                                const gchar *string,
0047                                const gchar *string_reversed);
0048 GLIB_AVAILABLE_IN_2_70
0049 gboolean g_pattern_spec_match_string (GPatternSpec *pspec,
0050                                       const gchar *string);
0051 GLIB_DEPRECATED_IN_2_70_FOR (g_pattern_spec_match)
0052 gboolean      g_pattern_match          (GPatternSpec *pspec,
0053                     guint         string_length,
0054                     const gchar  *string,
0055                     const gchar  *string_reversed);
0056 GLIB_DEPRECATED_IN_2_70_FOR (g_pattern_spec_match_string)
0057 gboolean      g_pattern_match_string   (GPatternSpec *pspec,
0058                     const gchar  *string);
0059 GLIB_AVAILABLE_IN_ALL
0060 gboolean      g_pattern_match_simple   (const gchar  *pattern,
0061                     const gchar  *string);
0062 
0063 G_END_DECLS
0064 
0065 #endif /* __G_PATTERN_H__ */