PageRenderTime 41ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/quakeforge/branches/release_0_5_3/include/gib_regex.h

#
C Header | 46 lines | 12 code | 3 blank | 31 comment | 0 complexity | 3bcc7ff929656b0de4bb6c2caa9da002 MD5 | raw file
Possible License(s): GPL-2.0, LGPL-2.1, AGPL-3.0, AGPL-1.0, Unlicense
  1. /*
  2. #FILENAME#
  3. #DESCRIPTION#
  4. Copyright (C) 2002 #AUTHOR#
  5. Author: #AUTHOR#
  6. Date: #DATE#
  7. This program is free software; you can redistribute it and/or
  8. modify it under the terms of the GNU General Public License
  9. as published by the Free Software Foundation; either version 2
  10. of the License, or (at your option) any later version.
  11. This program is distributed in the hope that it will be useful,
  12. but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  14. See the GNU General Public License for more details.
  15. You should have received a copy of the GNU General Public License
  16. along with this program; if not, write to:
  17. Free Software Foundation, Inc.
  18. 59 Temple Place - Suite 330
  19. Boston, MA 02111-1307, USA
  20. $Id: gib_regex.h 9722 2003-07-15 21:40:37Z snax $
  21. */
  22. #include "regex.h"
  23. typedef struct gib_regex_s {
  24. char *regex;
  25. regex_t comp;
  26. int cflags;
  27. } gib_regex_t;
  28. void GIB_Regex_Init (void);
  29. regex_t *GIB_Regex_Compile (const char *regex, int cflags);
  30. const char *GIB_Regex_Error (void);
  31. int GIB_Regex_Translate_Options (const char *opstr);
  32. int GIB_Regex_Translate_Runtime_Options (const char *opstr);
  33. unsigned int GIB_Regex_Apply_Match (regmatch_t match[10], dstring_t *dstr, unsigned int ofs, const char *replace);