make struct _GPatternSpec and GMatchType private. (g_pattern_equal): new
authorTim Janik <timj@gtk.org>
Sat, 13 Oct 2001 05:54:10 +0000 (05:54 +0000)
committerTim Janik <timj@src.gnome.org>
Sat, 13 Oct 2001 05:54:10 +0000 (05:54 +0000)
commit92dfa96114dc81e643d42421f9a1a7f66bb42ff3
tree57650db12cb3c482954adb8281c665361b70b017
parent96bc4f0c3b96abae4231663bd008617be048100e
make struct _GPatternSpec and GMatchType private. (g_pattern_equal): new

Fri Oct 12 18:24:02 2001  Tim Janik  <timj@gtk.org>

        * glib/gpattern.[hc]: make struct _GPatternSpec and GMatchType
        private.
        (g_pattern_equal): new function to return equality of two patterns
        (required because GPatternSpec is private now).
        (g_pattern_spec_new): fix bug wrg wildcard counting which produced
        incorrect pattern specs (discovered by Matthias Clasen).
        optimized code so we just keep one compiled pattern string now.
        correctly canonicalize patterns. reduce string walks, optimize
        decision about MATCH_ALL vs. MATCH_ALL_TAIL.
        (g_pattern_match_string): call just g_pattern_match() with NULL
        reversed string.
        (g_pattern_match): allow NULL reversed strings now, reverse_dup
        strings on demand.

        * tests/patterntest.c (test_compilation): added an extended testcase
        for pattern matching from Matthias Clasen <matthiasc@poet.de>.

Sat Oct 13 06:58:23 2001  Tim Janik  <timj@gtk.org>

        * glib/tmpl/patterns.sgml: amended documentation.
19 files changed:
ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
docs/reference/ChangeLog
docs/reference/glib/glib-sections.txt
docs/reference/glib/tmpl/glib-unused.sgml
docs/reference/glib/tmpl/patterns.sgml
docs/reference/glib/tmpl/string_utils.sgml
docs/reference/gobject/tmpl/types.sgml
glib/gpattern.c
glib/gpattern.h
tests/.cvsignore
tests/Makefile.am
tests/patterntest.c [new file with mode: 0644]