Changeset 7223 in webkit for trunk/JavaScriptCore/pcre/pcre.h
- Timestamp:
- Aug 10, 2004, 2:35:09 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/pcre/pcre.h
r4739 r7223 1 1 /************************************************* 2 2 * Perl-Compatible Regular Expressions * 3 * extended to UTF-16 for use in JavaScriptCore * 3 4 *************************************************/ 4 5 5 6 /* Copyright (c) 1997-2001 University of Cambridge */ 7 /* Copyright (C) 2004 Apple Computer, Inc. */ 6 8 7 9 #ifndef _PCRE_H … … 27 29 #define PCRE_DATE 02-Jan-2002 28 30 #define PCRE_DL_IMPORT 31 #define PCRE_UTF16 1 29 32 30 33 /* Have to include stdlib.h in order to ensure that size_t is defined; … … 82 85 typedef struct real_pcre_extra pcre_extra; 83 86 87 #if PCRE_UTF16 88 #include <stdint.h> 89 typedef uint16_t pcre_char; 90 #else 91 typedef char pcre_char; 92 #endif 93 84 94 /* Store get and free functions. These can be set to alternative malloc/free 85 95 functions if required. Some magic is required for Win32 DLL; it is null on … … 93 103 /* Functions */ 94 104 95 extern pcre *pcre_compile(const char *, int, const char **, int *,105 extern pcre *pcre_compile(const pcre_char *, int, const char **, int *, 96 106 const unsigned char *); 97 extern int pcre_copy_substring(const char *, int *, int, int,char *, int);98 extern int pcre_exec(const pcre *, const pcre_extra *, const char *,107 extern int pcre_copy_substring(const pcre_char *, int *, int, int, pcre_char *, int); 108 extern int pcre_exec(const pcre *, const pcre_extra *, const pcre_char *, 99 109 int, int, int, int *, int); 100 extern void pcre_free_substring(const char *);101 extern void pcre_free_substring_list(const char **);102 extern int pcre_get_substring(const char *, int *, int, int, constchar **);103 extern int pcre_get_substring_list(const char *, int *, int, constchar ***);110 extern void pcre_free_substring(const pcre_char *); 111 extern void pcre_free_substring_list(const pcre_char **); 112 extern int pcre_get_substring(const pcre_char *, int *, int, int, const pcre_char **); 113 extern int pcre_get_substring_list(const pcre_char *, int *, int, const pcre_char ***); 104 114 extern int pcre_info(const pcre *, int *, int *); 105 115 extern int pcre_fullinfo(const pcre *, const pcre_extra *, int, void *);
Note:
See TracChangeset
for help on using the changeset viewer.