• Tim Janik's avatar
    make struct _GPatternSpec and GMatchType private. (g_pattern_equal): new · 92dfa961
    Tim Janik authored
    Fri Oct 12 18:24:02 2001  Tim Janik  <timj@gtk.org>
            * glib/gpattern.[hc]: make struct _GPatternSpec and GMatchType
            (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.
gpattern.h 1.56 KB