Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Jan 18, 2009
  1. @gitster

    Add is_regex_special()

    René Scharfe authored gitster committed
    Add is_regex_special(), a character class macro for chars that have a
    special meaning in regular expressions.
    
    Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  2. @gitster

    Change NUL char handling of isspecial()

    René Scharfe authored gitster committed
    Replace isspecial() by the new macro is_glob_special(), which is more,
    well, specialized.  The former included the NUL char in its character
    class, while the letter only included characters that are special to
    file name globbing.
    
    The new name contains underscores because they enhance readability
    considerably now that it's made up of three words.  Renaming the
    function is necessary to document its changed scope.
    
    The call sites of isspecial() are updated to check explicitly for NUL.
    
    Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
  3. @gitster

    Add ctype test

    René Scharfe authored gitster committed
    Manipulating the character class table in ctype.c by hand is error prone.
    To ensure that typos are found quickly, add a test program and script.
    
    test-ctype checks the output of the character class macros isspace() et.
    al. by applying them on all possible char values and consulting a list of
    all characters in the particular class.  It doesn't check tolower() and
    toupper(); this could be added later.
    
    The test script t0070-fundamental.sh is created because there is no good
    place for the ctype test, yet -- except for t0000-basic.sh perhaps, but
    it doesn't run well on Windows, yet.
    
    Signed-off-by: Rene Scharfe <rene.scharfe@lsrfire.ath.cx>
    Signed-off-by: Junio C Hamano <gitster@pobox.com>
Something went wrong with that request. Please try again.