Searched refs:code (Results 1 - 25 of 115) sorted by relevance

12345

/PHP_5_4/ext/ereg/regex/
H A Dcname.h4 char code; member in struct:cname
H A Dregerror.c35 int code; member in struct:rerr
56 {-1, "", "*** unknown regexp error code ***"},
80 for (r = rerrs; r->code >= 0; r++)
81 if (r->code == target)
85 if (r->code >= 0) {
122 for (r = rerrs; r->code >= 0; r++)
125 if (r->code < 0)
128 snprintf(localbuf, bufsize, "%d", r->code);
/PHP_5_4/ext/pcre/pcrelib/
H A Dpcre_printint.src15 * Redistributions of source code must retain the above copyright notice,
158 uschar *codestart, *code;
177 code = codestart = (uschar *)re + offset + count * size;
187 fprintf(f, "%3d ", (int)(code - codestart));
191 switch(*code)
213 fprintf(f, " %s\n", OP_names[*code]);
218 fprintf(f, " %.2x %s", code[1], OP_names[*code]);
225 code++;
226 code
[all...]
H A Dpcre_get.c15 * Redistributions of source code must retain the above copyright notice,
61 code the compiled regex
70 pcre_get_stringnumber(const pcre *code, const char *stringname) argument
73 pcre16_get_stringnumber(const pcre16 *code, PCRE_SPTR16 stringname)
76 pcre32_get_stringnumber(const pcre32 *code, PCRE_SPTR32 stringname)
85 if ((rc = pcre_fullinfo(code, NULL, PCRE_INFO_NAMECOUNT, &top)) != 0)
89 if ((rc = pcre_fullinfo(code, NULL, PCRE_INFO_NAMEENTRYSIZE, &entrysize)) != 0)
91 if ((rc = pcre_fullinfo(code, NULL, PCRE_INFO_NAMETABLE, &nametable)) != 0)
95 if ((rc = pcre16_fullinfo(code, NULL, PCRE_INFO_NAMECOUNT, &top)) != 0)
99 if ((rc = pcre16_fullinfo(code, NUL
150 pcre_get_stringtable_entries(const pcre *code, const char *stringname, char **firstptr, char **lastptr) argument
261 get_first_set(const pcre *code, const char *stringname, int *ovector) argument
390 pcre_copy_named_substring(const pcre *code, const char *subject, int *ovector, int stringcount, const char *stringname, char *buffer, int size) argument
607 pcre_get_named_substring(const pcre *code, const char *subject, int *ovector, int stringcount, const char *stringname, const char **stringptr) argument
[all...]
H A Dpcre_compile.c15 * Redistributions of source code must retain the above copyright notice,
100 soon as they can be, so that hopefully there will never be an overrun. The code
109 /(?1){0,1999}(b)/, and one user did hit the limit. The code has been changed so
445 "internal error: code overflow\0"
505 "disallowed Unicode code point (>= 0xd800 && <= 0xdfff)\0"
515 may mark arbitrary characters as digits - but the PCRE compiling code expects
527 Then we can use ctype_digit and ctype_xdigit in the code. */
530 is much faster, and the resulting code is simpler (the compiler turns it
886 the ESC_g code (cf \k). */
1022 larger first octal digit. The original code use
1672 first_significant_code(const pcre_uchar *code, BOOL skipassert) argument
1739 find_fixedlength(pcre_uchar *code, BOOL utf, BOOL atend, compile_data *cd) argument
2068 find_bracket(const pcre_uchar *code, BOOL utf, int number) argument
2206 find_recurse(const pcre_uchar *code, BOOL utf) argument
2361 could_be_empty_branch(const pcre_uchar *code, const pcre_uchar *endcode, BOOL utf, compile_data *cd) argument
2660 could_be_empty(const pcre_uchar *code, const pcre_uchar *endcode, branch_chain *bcptr, BOOL utf, compile_data *cd) argument
2862 auto_callout(pcre_uchar *code, const pcre_uchar *ptr, compile_data *cd) argument
3715 register pcre_uchar *code = *codeptr; local
7104 pcre_uchar *code = *codeptr; local
7433 is_anchored(register const pcre_uchar *code, unsigned int bracket_map, compile_data *cd, int atomcount) argument
7523 is_startline(const pcre_uchar *code, unsigned int bracket_map, compile_data *cd, int atomcount) argument
7642 find_firstassertedchar(const pcre_uchar *code, pcre_int32 *flags, BOOL inassert) argument
7785 pcre_uchar *code; local
[all...]
/PHP_5_4/ext/pdo_mysql/
H A Dget_error_codes.php20 foreach ($codes as $code => $state) {
21 echo "#ifdef $code\n";
22 printf(" case %-{$maxlen}s: return \"%s\";\n", $code, $state);
/PHP_5_4/ext/intl/doc/
H A Dcommon_api.php5 * when there's no object to get error code/message from.
8 * <code>
12 * </code>
15 * <code>
18 * </code>
22 * Get the last error code.
24 * @return int Error code returned by the last
38 * Check whether the given error code indicates failure.
40 * @param int $code ICU error code
[all...]
/PHP_5_4/ext/mbstring/libmbfl/filters/
H A Dhtml_entities.h2 * "streamable kanji code filter and converter"
7 * This file is part of "streamable kanji code filter and converter",
17 * License along with "streamable kanji code filter and converter";
25 * The source code included in this files was separated from mbfilter.h
35 int code; member in struct:_mbfl_html_entity_entry
/PHP_5_4/ext/intl/
H A Dintl_error.c77 err->code = U_ZERO_ERROR;
84 * Set last error code to 0 and unset last error message
91 err->code = U_ZERO_ERROR;
133 uErrorName = u_errorName( err->code );
150 * Set last error code.
157 err->code = err_code;
162 * Return last error code.
169 return err->code;
173 /* {{{ void intl_error_set( intl_error* err, UErrorCode code, char* msg, int copyMsg )
174 * Set error code an
176 intl_error_set( intl_error* err, UErrorCode code, char* msg, int copyMsg TSRMLS_DC ) argument
186 intl_errors_set( intl_error* err, UErrorCode code, char* msg, int copyMsg TSRMLS_DC ) argument
[all...]
H A Dintl_error.h24 #define INTL_ERROR_CODE(e) (e).code
27 UErrorCode code; member in struct:_intl_error
37 void intl_error_set( intl_error* err, UErrorCode code, char* msg, int copyMsg TSRMLS_DC );
45 void intl_errors_set( intl_error* err, UErrorCode code, char* msg, int copyMsg TSRMLS_DC );
/PHP_5_4/ext/mbstring/oniguruma/enc/
H A Dascii.c11 * 1. Redistributions of source code must retain the above copyright
33 ascii_is_code_ctype(OnigCodePoint code, unsigned int ctype) argument
35 if (code < 128)
36 return ONIGENC_IS_ASCII_CODE_CTYPE(code, ctype);
H A Deuc_jp.c11 * 1. Redistributions of source code must retain the above copyright
78 eucjp_code_to_mbclen(OnigCodePoint code) argument
80 if (ONIGENC_IS_CODE_ASCII(code)) return 1;
81 else if ((code & 0xff0000) != 0) return 3;
82 else if ((code & 0xff00) != 0) return 2;
88 eucjp_code_to_mbc_first(OnigCodePoint code)
92 if ((code & 0xff0000) != 0) {
93 first = (code >> 16) & 0xff;
95 else if ((code & 0xff00) != 0) {
96 first = (code >>
106 eucjp_code_to_mbc(OnigCodePoint code, UChar *buf) argument
159 eucjp_is_code_ctype(OnigCodePoint code, unsigned int ctype) argument
[all...]
H A Dsjis.c11 * 1. Redistributions of source code must retain the above copyright
80 sjis_code_to_mbclen(OnigCodePoint code) argument
82 if (code < 256) {
83 if (EncLen_SJIS[(int )code] == 1)
88 else if (code <= 0xffff) {
115 sjis_code_to_mbc(OnigCodePoint code, UChar *buf) argument
119 if ((code & 0xff00) != 0) *p++ = (UChar )(((code >> 8) & 0xff));
120 *p++ = (UChar )(code & 0xff);
168 sjis_is_code_ctype(OnigCodePoint code, unsigne argument
[all...]
H A Dutf16_be.c11 * 1. Redistributions of source code must retain the above copyright
79 OnigCodePoint code; local
82 code = ((((p[0] - 0xd8) << 2) + ((p[1] & 0xc0) >> 6) + 1) << 16)
87 code = p[0] * 256 + p[1];
89 return code;
93 utf16be_code_to_mbclen(OnigCodePoint code) argument
95 return (code > 0xffff ? 4 : 2);
99 utf16be_code_to_mbc(OnigCodePoint code, UChar *buf) argument
103 if (code > 0xffff) {
106 plane = code >> 1
[all...]
H A Dutf16_le.c11 * 1. Redistributions of source code must retain the above copyright
55 utf16le_code_to_mbclen(OnigCodePoint code) argument
57 return (code > 0xffff ? 4 : 2);
85 OnigCodePoint code; local
90 code = ((((c1 - 0xd8) << 2) + ((c0 & 0xc0) >> 6) + 1) << 16)
95 code = c1 * 256 + p[0];
97 return code;
101 utf16le_code_to_mbc(OnigCodePoint code, UChar *buf) argument
105 if (code > 0xffff) {
108 plane = code >> 1
[all...]
H A Dutf32_be.c11 * 1. Redistributions of source code must retain the above copyright
63 utf32be_code_to_mbclen(OnigCodePoint code) argument
69 utf32be_code_to_mbc(OnigCodePoint code, UChar *buf) argument
73 *p++ = (UChar )((code & 0xff000000) >>24);
74 *p++ = (UChar )((code & 0xff0000) >>16);
75 *p++ = (UChar )((code & 0xff00) >> 8);
76 *p++ = (UChar ) (code & 0xff);
H A Dutf32_le.c11 * 1. Redistributions of source code must retain the above copyright
63 utf32le_code_to_mbclen(OnigCodePoint code) argument
69 utf32le_code_to_mbc(OnigCodePoint code, UChar *buf) argument
73 *p++ = (UChar ) (code & 0xff);
74 *p++ = (UChar )((code & 0xff00) >> 8);
75 *p++ = (UChar )((code & 0xff0000) >>16);
76 *p++ = (UChar )((code & 0xff000000) >>24);
/PHP_5_4/ext/mbstring/oniguruma/
H A Doniguruma.h13 * 1. Redistributions of source code must retain the above copyright
120 /* code range */
127 OnigCodePoint code[ONIGENC_MAX_COMP_AMBIG_CODE_LEN]; member in struct:__anon64
132 OnigCodePoint code; member in struct:__anon65
167 int (*code_to_mbclen)(OnigCodePoint code);
168 int (*code_to_mbc)(OnigCodePoint code, OnigUChar *buf);
173 int (*is_code_ctype)(OnigCodePoint code, unsigned int ctype);
275 #define ONIGENC_IS_CODE_ASCII(code) ((code) < 128)
276 #define ONIGENC_IS_CODE_SB_WORD(enc,code) \
[all...]
H A Dregenc.c11 * 1. Redistributions of source code must retain the above copyright
654 onigenc_single_byte_code_to_mbclen(OnigCodePoint code) argument
660 onigenc_single_byte_code_to_mbc_first(OnigCodePoint code) argument
662 return (code & 0xff);
666 onigenc_single_byte_code_to_mbc(OnigCodePoint code, UChar *buf) argument
668 *buf = (UChar )(code & 0xff);
759 onigenc_mb2_code_to_mbclen(OnigCodePoint code) argument
761 if ((code & 0xff00) != 0) return 2;
766 onigenc_mb4_code_to_mbclen(OnigCodePoint code) argument
768 if ((code
775 onigenc_mb2_code_to_mbc_first(OnigCodePoint code) argument
789 onigenc_mb4_code_to_mbc_first(OnigCodePoint code) argument
809 onigenc_mb2_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) argument
826 onigenc_mb4_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) argument
849 onigenc_mb2_is_code_ctype(OnigEncoding enc, OnigCodePoint code, unsigned int ctype) argument
865 onigenc_mb4_is_code_ctype(OnigEncoding enc, OnigCodePoint code, unsigned int ctype) argument
902 onigenc_is_code_ctype(OnigEncoding enc, OnigCodePoint code, int ctype) argument
959 onigenc_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf) argument
[all...]
H A Dregenc.h13 * 1. Redistributions of source code must retain the above copyright
86 ONIG_EXTERN int onigenc_single_byte_code_to_mbclen P_((OnigCodePoint code));
87 ONIG_EXTERN int onigenc_single_byte_code_to_mbc_first P_((OnigCodePoint code));
88 ONIG_EXTERN int onigenc_single_byte_code_to_mbc P_((OnigCodePoint code, UChar *buf));
97 ONIG_EXTERN int onigenc_mb2_code_to_mbclen P_((OnigCodePoint code));
98 ONIG_EXTERN int onigenc_mb2_code_to_mbc_first P_((OnigCodePoint code));
99 ONIG_EXTERN int onigenc_mb2_code_to_mbc P_((OnigEncoding enc, OnigCodePoint code, UChar *buf));
100 ONIG_EXTERN int onigenc_mb2_is_code_ctype P_((OnigEncoding enc, OnigCodePoint code, unsigned int ctype));
101 ONIG_EXTERN int onigenc_mb4_code_to_mbclen P_((OnigCodePoint code));
102 ONIG_EXTERN int onigenc_mb4_code_to_mbc_first P_((OnigCodePoint code));
[all...]
H A Dregerror.c11 * 1. Redistributions of source code must retain the above copyright
42 onig_error_code_to_format(int code) argument
46 if (code >= 0) return (UChar* )0;
48 switch (code) {
88 p = "illegal meta-code syntax"; break;
90 p = "illegal control-code syntax"; break;
126 p = "mismatch multibyte code length in char-class range"; break;
128 p = "too many multibyte code ranges are specified"; break;
130 p = "too short multibyte code string"; break;
179 p = "undefined error code"; brea
191 OnigCodePoint code; local
233 onig_error_code_to_str(UChar* s, int code, ...) argument
[all...]
/PHP_5_4/ext/standard/
H A Dhtml.c78 * code points above 0x10FFFF */
330 /* character encoded in 1 code unit */
491 * Convert back big endian int representation of sequence of one or two 8-bit code units. */
508 * Convert back big endian int representation of sequence of one to three 8-bit code units.
532 * Binary search of unicode code points in unicode <--> charset mapping.
533 * Returns the code point in the target charset (whose mapping table was given) or 0 if
534 * the unicode code point is not in the table.
563 static inline int map_from_unicode(unsigned code, enum entity_charset charset, unsigned *res) argument
571 /* identity mapping of code points to unicode */
572 if (code >
685 map_to_unicode(unsigned code, const enc_to_uni *table, unsigned *res) argument
864 write_octet_sequence(unsigned char *buf, enum entity_charset charset, unsigned code) argument
943 unsigned code, code2 = 0; local
1645 unsigned code; local
[all...]
H A Dsoundex.c32 int i, _small, str_len, code, last; local
77 code = toupper((int)(unsigned char)str[i]);
78 if (code >= 'A' && code <= 'Z') {
81 soundex[_small++] = code;
82 last = soundex_table[code - 'A'];
86 /* code in trail, and vowels unless they separate */
88 code = soundex_table[code - 'A'];
89 if (code !
[all...]
/PHP_5_4/ext/mbstring/
H A Dphp_unicode.c18 Based on code from ucdata-2.5, which has the following Copyright:
62 static int prop_lookup(unsigned long code, unsigned long n) argument
90 if (code > _ucprop_ranges[m + 1])
92 else if (code < _ucprop_ranges[m])
94 else if (code >= _ucprop_ranges[m] && code <= _ucprop_ranges[m + 1])
101 MBSTRING_API int php_unicode_is_prop(unsigned long code, unsigned long mask1, argument
110 if ((mask1 & masks32[i]) && prop_lookup(code, i))
115 if ((mask2 & masks32[i & 31]) && prop_lookup(code, i))
122 static unsigned long case_lookup(unsigned long code, lon argument
147 php_turkish_toupper(unsigned long code, long l, long r, int field) argument
155 php_turkish_tolower(unsigned long code, long l, long r, int field) argument
163 php_unicode_toupper(unsigned long code, enum mbfl_no_encoding enc TSRMLS_DC) argument
194 php_unicode_tolower(unsigned long code, enum mbfl_no_encoding enc TSRMLS_DC) argument
225 php_unicode_totitle(unsigned long code, enum mbfl_no_encoding enc TSRMLS_DC) argument
[all...]
/PHP_5_4/ext/readline/
H A Dreadline_cli.c104 write due to -1 return code */
185 char *code; local
188 code = estrndup(prompt_spec + 1, prompt_end - prompt_spec - 1);
192 zend_eval_stringl(code, prompt_end - prompt_spec - 1, NULL, "php prompt code" TSRMLS_CC);
195 efree(code);
207 static int cli_is_valid_code(char *code, int len, char **prompt TSRMLS_DC) /* {{{ */ argument
220 switch(code[i]) {
259 if (code[i+1] == '/') {
264 if (code[
590 char *code = emalloc(size); local
[all...]

Completed in 86 milliseconds

12345