| /PHP_TRUNK/ext/bcmath/libbcmath/src/ |
| H A D | debug.c | 60 pv (name, num, len) 63 int len; 67 for (i=0; i<len; i++) printf ("%c",BCD_CHAR(num[i]));
|
| /PHP_TRUNK/ext/xmlrpc/libxmlrpc/ |
| H A D | encodings.h | 43 char* utf8_encode(const char *s, int len, int *newlen, ENCODING_ID encoding); 44 char* utf8_decode(const char *s, int len, int *newlen, ENCODING_ID encoding);
|
| H A D | simplestring.c | 117 string->len = 0; 146 string->len = 0; 170 string->len = 0; 198 if(target->len + add_len + 1 > target->size) { 200 int newsize = target->len + add_len + 1; 212 memcpy(target->str + target->len, source, add_len); 214 target->len += add_len; 215 target->str[target->len] = 0; /* null terminate */
|
| /PHP_TRUNK/ext/zip/lib/ |
| H A D | zip_add_dir.c | 50 int len; 66 len = strlen(name); 68 if (name[len-1] != '/') { 69 if ((s=(char *)malloc(len+2)) == NULL) { 74 s[len] = '/'; 75 s[len+1] = '\0'; 48 int len; local
|
| H A D | zip_error_to_str.c | 48 zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se) 53 return snprintf(buf, len, "Unknown error %d", ze); 70 return snprintf(buf, len, "%s%s%s", 46 zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se) argument
|
| H A D | zip_filerange_crc.c | 47 _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp, 60 while (len > 0) { 61 n = len > BUFSIZE ? BUFSIZE : len; 69 len-= n; 45 _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp, struct zip_error *errp) argument
|
| H A D | zip_memdup.c | 2 zip_memdup.c -- internal zip function, "strdup" with len 43 _zip_memdup(const void *mem, size_t len, struct zip_error *error) 47 ret = malloc(len); 53 memcpy(ret, mem, len); 42 _zip_memdup(const void *mem, size_t len, struct zip_error *error) argument
|
| H A D | zip_set_archive_comment.c | 45 zip_set_archive_comment(struct zip *za, const char *comment, int len) 49 if (len < 0 || len > MAXCOMLEN 50 || (len > 0 && comment == NULL)) { 60 if (len > 0) { 61 if ((tmpcom=(char *)_zip_memdup(comment, len, &za->error)) == NULL) 69 za->ch_comment_len = len; 43 zip_set_archive_comment(struct zip *za, const char *comment, int len) argument
|
| H A D | zip_set_file_comment.c | 46 const char *comment, int len) 51 || len < 0 || len > MAXCOMLEN 52 || (len > 0 && comment == NULL)) { 62 if (len > 0) { 63 if ((tmpcom=(char *)_zip_memdup(comment, len, &za->error)) == NULL) 71 za->entry[idx].ch_comment_len = len; 43 zip_set_file_comment(struct zip *za, zip_uint64_t idx, const char *comment, int len) argument
|
| H A D | zip_set_file_extra.c | 44 const char *extra, int len) 49 || len < 0 || len > MAXEXTLEN 50 || (len > 0 && extra == NULL)) { 60 if (len > 0) { 61 if ((tmpext=(char *)_zip_memdup(extra, len, &za->error)) == NULL) 69 za->entry[idx].ch_extra_len = len; 43 zip_set_file_extra(struct zip *za, zip_uint64_t idx, const char *extra, int len) argument
|
| H A D | zip_source_file.c | 47 zip_int64_t len) 52 if (fname == NULL || len < -1) { 57 return _zip_source_file_or_p(za, fname, NULL, start, len, 1, NULL); 44 zip_source_file(struct zip *za, const char *fname, zip_uint64_t start, zip_int64_t len) argument
|
| H A D | zip_source_read.c | 43 zip_source_read(struct zip_source *src, void *data, zip_uint64_t len) 47 if (!src->is_open || len > ZIP_INT64_MAX || (len > 0 && data == NULL)) { 53 return src->cb.f(src->ud, data, len, ZIP_SOURCE_READ); 55 ret = src->cb.l(src->src, src->ud, data, len, ZIP_SOURCE_READ);
|
| H A D | zip_source_zip.c | 46 zip_int64_t len; 49 static zip_int64_t read_zip(void *st, void *data, zip_uint64_t len, 57 int flags, zip_uint64_t start, zip_int64_t len) 68 if (srcza == NULL || len < -1 || srcidx < 0 || srcidx >= srcza->nentry) { 79 if (len == 0) 80 len = -1; 82 if (start == 0 && len == -1 && (flags & ZIP_FL_RECOMPRESS) == 0) 103 p->len = len; 106 p->st.size = p->st.comp_size = len; 45 zip_int64_t len; member in struct:read_zip 54 zip_source_zip(struct zip *za, struct zip *srcza, zip_uint64_t srcidx, int flags, zip_uint64_t start, zip_int64_t len) argument 120 read_zip(void *state, void *data, zip_uint64_t len, enum zip_source_cmd cmd) argument [all...] |
| /PHP_TRUNK/sapi/fpm/fpm/ |
| H A D | zlog.c | 70 size_t len; local 72 len = strftime(timebuf, timebuf_len, "[%d-%b-%Y %H:%M:%S", localtime_r((const time_t *) &tv->tv_sec, &t)); 74 len += snprintf(timebuf + len, timebuf_len - len, ".%06d", (int) tv->tv_usec); 76 len += snprintf(timebuf + len, timebuf_len - len, "] "); 77 return len; 107 size_t len local [all...] |
| /PHP_TRUNK/ext/intl/ |
| H A D | intl_common.h | 27 # define UBYTES(len) ((len) * sizeof(UChar)) 39 #define UCHARS(len) ((len) / sizeof(UChar))
|
| /PHP_TRUNK/ext/mbstring/libmbfl/mbfl/ |
| H A D | mbfl_string.c | 52 string->len = 0; 63 string->len = 0; 75 string->len = 0;
|
| /PHP_TRUNK/ext/mbstring/oniguruma/ |
| H A D | regerror.c | 198 int len; local 204 len = 0; 208 if (code > 0xffff && len + 10 <= buf_size) { 209 sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 24)); 210 sprint_byte((char*)(&(buf[len+4])), (unsigned int)(code >> 16)); 211 sprint_byte((char*)(&(buf[len+6])), (unsigned int)(code >> 8)); 212 sprint_byte((char*)(&(buf[len+8])), (unsigned int)code); 213 len += 10; 215 else if (len + 6 <= buf_size) { 216 sprint_byte_with_x((char*)(&(buf[len])), (unsigne 259 int len, is_over; local 330 int n, need, len; local [all...] |
| H A D | regposerr.c | 77 size_t len; local 91 len = strlen(s) + 1; /* use strlen() because s is ascii encoding. */ 97 return len;
|
| /PHP_TRUNK/ext/dba/libcdb/ |
| H A D | cdb.c | 46 static int cdb_match(struct cdb *c, char *key, unsigned int len, uint32 pos TSRMLS_DC) argument 51 while (len > 0) { 53 if (n > len) 54 n = len; 61 len -= n; 68 uint32 cdb_hash(char *buf, unsigned int len) argument 74 while (len--) { 104 int cdb_read(struct cdb *c, char *buf, unsigned int len, uint32 pos TSRMLS_DC) argument 110 while (len > 0) { 113 r = php_stream_read(c->fp, buf, len); [all...] |
| /PHP_TRUNK/ext/standard/ |
| H A D | crc32.c | 30 int len, nr; local 39 for (len =+nr; nr--; ++p) {
|
| H A D | php_smart_str_public.h | 28 size_t len; member in struct:__anon246
|
| H A D | uuencode.c | 70 int len = 45; local 79 ee = s + len; 82 len = ee - s; 83 if (len % 3) { 84 ee = s + (int) (floor(len / 3) * 3); 87 *p++ = PHP_UU_ENC(len); 98 if (len == 45) { 104 if (len == 45) { 106 len = 0; 115 if (len < 4 129 int len, total_len=0; local [all...] |
| /PHP_TRUNK/ext/mysqlnd/ |
| H A D | mysqlnd_bt.c | 30 *str = (char*)erealloc(*str, *len + 1 + 1); \ 31 (*str)[(*len)++] = chr 36 *str = (char*)erealloc(*str, *len + l + 1); \ 37 memcpy((*str) + *len, val, l); \ 38 *len += l; \ 56 int *len; local 59 len = va_arg(args, int*); 85 if ((*str)[*len - l_added] < 32) { 86 (*str)[*len - l_added] = '?'; 153 int *len, *nu local 208 int res_len = 0, *len = &res_len, num = 0; local [all...] |
| /PHP_TRUNK/ext/phar/ |
| H A D | phar_path_check.re | 23 phar_path_check_result phar_path_check(char **s, int *len, const char **error) 28 if (*len == 1 && *p == '.') { 31 } else if (*len == 2 && p[0] == '.' && p[1] == '.') { 38 #define YYLIMIT p+*len 72 *len = (p - (const unsigned char*)*s) -1; 83 (*len)--; 85 if ((p - (const unsigned char*)*s) - 1 != *len)
|
| /PHP_TRUNK/ext/filter/ |
| H A D | filter_private.h | 103 #define PHP_FILTER_TRIM_DEFAULT(p, len) PHP_FILTER_TRIM_DEFAULT_EX(p, len, 1); 105 #define PHP_FILTER_TRIM_DEFAULT_EX(p, len, return_if_empty) { \ 106 while ((len > 0) && (*p == ' ' || *p == '\t' || *p == '\r' || *p == '\v' || *p == '\n')) { \ 108 len--; \ 110 if (len < 1 && return_if_empty) { \ 113 if (len > 0) { \ 114 while (p[len-1] == ' ' || p[len-1] == '\t' || p[len [all...] |