home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 15 / AACD15.ISO / AACD / Magazine / HomeAutomation / Apache / include / php / ext / standard / reg.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-06-23  |  2.8 KB  |  72 lines

  1. /* 
  2.    +----------------------------------------------------------------------+
  3.    | PHP HTML Embedded Scripting Language Version 3.0                     |
  4.    +----------------------------------------------------------------------+
  5.    | Copyright (c) 1997,1998 PHP Development Team (See Credits file)      |
  6.    +----------------------------------------------------------------------+
  7.    | This program is free software; you can redistribute it and/or modify |
  8.    | it under the terms of one of the following licenses:                 |
  9.    |                                                                      |
  10.    |  A) the GNU General Public License as published by the Free Software |
  11.    |     Foundation; either version 2 of the License, or (at your option) |
  12.    |     any later version.                                               |
  13.    |                                                                      |
  14.    |  B) the PHP License as published by the PHP Development Team and     |
  15.    |     included in the distribution in the file: LICENSE                |
  16.    |                                                                      |
  17.    | This program is distributed in the hope that it will be useful,      |
  18.    | but WITHOUT ANY WARRANTY; without even the implied warranty of       |
  19.    | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the        |
  20.    | GNU General Public License for more details.                         |
  21.    |                                                                      |
  22.    | You should have received a copy of both licenses referred to here.   |
  23.    | If you did not, or have any questions about PHP licensing, please    |
  24.    | contact core@php.net.                                                |
  25.    +----------------------------------------------------------------------+
  26.    | Authors: Rasmus Lerdorf <rasmus@lerdorf.on.ca>                       |
  27.    +----------------------------------------------------------------------+
  28.  */
  29.  
  30.  
  31. /* $Id: reg.h,v 1.8 2000/06/23 11:48:02 thies Exp $ */
  32.  
  33. #ifndef _REG_H
  34. #define _REG_H
  35.  
  36. char *php_reg_replace(const char *pattern, const char *replace, const char *string, int icase, int extended);
  37.  
  38. PHP_FUNCTION(ereg);
  39. PHP_FUNCTION(eregi);
  40. PHP_FUNCTION(eregi_replace);
  41. PHP_FUNCTION(ereg_replace);
  42. PHP_FUNCTION(split);
  43. PHP_FUNCTION(spliti);
  44. PHPAPI PHP_FUNCTION(sql_regcase);
  45.  
  46. typedef struct {
  47.     HashTable ht_rc;
  48. } php_reg_globals;
  49.  
  50. PHP_MINIT_FUNCTION(regex);
  51. PHP_MSHUTDOWN_FUNCTION(regex);
  52. PHP_MINFO_FUNCTION(regex);
  53.  
  54.  
  55. #ifdef ZTS
  56. #define REGLS_D php_reg_globals *reg_globals
  57. #define REGLS_DC , REGLS_D
  58. #define REGLS_C reg_globals
  59. #define REGLS_CC , REGLS_C
  60. #define REG(v) (reg_globals->v)
  61. #define REGLS_FETCH() php_reg_globals *reg_globals = ts_resource(reg_globals_id)
  62. #else
  63. #define REGLS_D
  64. #define REGLS_DC
  65. #define REGLS_C
  66. #define REGLS_CC
  67. #define REG(v) (reg_globals.v)
  68. #define REGLS_FETCH()
  69. #endif
  70.  
  71. #endif /* _REG_H */
  72.