PageRenderTime 37ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/strigi-0.7.7/libstreamanalyzer/lib/strigi_fnmatch.h

#
C Header | 43 lines | 15 code | 7 blank | 21 comment | 0 complexity | 7e98c7244667535fa61ea348656b8189 MD5 | raw file
Possible License(s): LGPL-2.0
  1. /* This file is part of Strigi Desktop Search
  2. *
  3. * Copyright (C) 2006 Ben van Klinken <bvklinken@gmail.com>
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Library General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Library General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Library General Public License
  16. * along with this library; see the file COPYING.LIB. If not, write to
  17. * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
  18. * Boston, MA 02110-1301, USA.
  19. */
  20. #ifndef STRIGI_FNMATCH_H
  21. #define STRIGI_FNMATCH_H
  22. #if defined(HAVE_FNMATCH_H)
  23. #elif !defined(STRIGI_FNMATCH_H_)
  24. #include <strigi/strigiconfig.h>
  25. #define STRIGI_FNMATCH_H
  26. #define FNM_NOMATCH 1 /**< Match failed. */
  27. #define FNM_NOESCAPE 0x01 /**< Disable backslash escaping. */
  28. #define FNM_PATHNAME 0x02 /**< Slash must be matched by slash. */
  29. #define FNM_PERIOD 0x04 /**< Period must be matched by period. */
  30. #define FNM_CASE_BLIND 0x08 /**< Compare characters case-insensitively.
  31. * @remark This flag is an Apache addition
  32. */
  33. #define SUCCESS 0
  34. int fnmatch(const char *pattern, const char *string, int flags);
  35. #endif
  36. #endif