Searched refs:len (Results 1 - 25 of 400) sorted by relevance

1234567891011>>

/PHP_5_6/ext/bcmath/libbcmath/src/
H A Ddebug.c60 pv (name, num, len)
63 int len;
67 for (i=0; i<len; i++) printf ("%c",BCD_CHAR(num[i]));
/PHP_5_6/ext/xmlrpc/libxmlrpc/
H A Dencodings.h43 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 Dsimplestring.c117 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_5_6/ext/zip/lib/
H A Dzip_file_get_comment.c47 zip_uint32_t len;
53 if ((str=_zip_string_get(de->comment, &len, flags, &za->error)) == NULL)
57 *lenp = len;
45 zip_uint32_t len; local
H A Dzip_get_archive_comment.c48 zip_uint32_t len;
56 if ((str=_zip_string_get(comment, &len, flags, &za->error)) == NULL)
60 *lenp = (int)len;
46 zip_uint32_t len; local
H A Dzip_get_file_comment.c46 zip_uint32_t len;
49 if ((s=zip_file_get_comment(za, idx, &len, (zip_flags_t)flags)) != NULL) {
51 *lenp = (int)len;
44 zip_uint32_t len; local
H A Dzip_memdup.c2 zip_memdup.c -- internal zip function, "strdup" with len
43 _zip_memdup(const void *mem, size_t len, struct zip_error *error)
47 if (len == 0)
50 ret = malloc(len);
56 memcpy(ret, mem, len);
42 _zip_memdup(const void *mem, size_t len, struct zip_error *error) argument
H A Dzip_set_file_comment.c46 zip_set_file_comment(struct zip *za, zip_uint64_t idx, const char *comment, int len)
48 if (len < 0 || len > ZIP_UINT16_MAX) {
52 return zip_file_set_comment(za, idx, comment, (zip_uint16_t)len, 0);
44 zip_set_file_comment(struct zip *za, zip_uint64_t idx, const char *comment, int len) argument
H A Dzip_source_file.c47 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 Dzip_source_read.c43 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);
41 zip_source_read(struct zip_source *src, void *data, zip_uint64_t len) argument
H A Dzip_source_zip.c47 zip_flags_t flags, zip_uint64_t start, zip_int64_t len)
49 if (len < -1) {
54 if (len == -1)
55 len = 0;
57 if (start == 0 && len == 0)
62 return _zip_source_zip_new(za, srcza, srcidx, flags, start, (zip_uint64_t)len, NULL);
44 zip_source_zip(struct zip *za, struct zip *srcza, zip_uint64_t srcidx, zip_flags_t flags, zip_uint64_t start, zip_int64_t len) argument
H A Dzip_filerange_crc.c47 _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp,
60 while (len > 0) {
61 n = len > BUFSIZE ? BUFSIZE : (size_t)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 Dzip_source_window.c44 zip_uint64_t len;
56 zip_source_window(struct zip *za, struct zip_source *src, zip_uint64_t start, zip_uint64_t len)
71 ctx->len = len;
72 ctx->left = len;
82 zip_uint64_t len, enum zip_source_cmd cmd)
106 if (len > ctx->left)
107 len = ctx->left;
109 if (len == 0)
112 if ((ret=zip_source_read(src, data, len)) <
43 zip_uint64_t len; member in struct:window
54 zip_source_window(struct zip *za, struct zip_source *src, zip_uint64_t start, zip_uint64_t len) argument
78 window_read(struct zip_source *src, void *_ctx, void *data, zip_uint64_t len, enum zip_source_cmd cmd) argument
[all...]
/PHP_5_6/sapi/fpm/fpm/
H A Dzlog.c70 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_5_6/ext/mbstring/oniguruma/
H A Dregerror.c198 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...]
/PHP_5_6/ext/intl/
H A Dintl_common.h27 # define UBYTES(len) ((len) * sizeof(UChar))
39 #define UCHARS(len) ((len) / sizeof(UChar))
/PHP_5_6/Zend/
H A Dzend_string.h27 ZEND_API extern const char *(*zend_new_interned_string)(const char *str, int len, int free_src TSRMLS_DC);
82 #define str_estrndup(str, len) \
83 (IS_INTERNED(str) ? (str) : estrndup((str), (len)))
85 #define str_strndup(str, len) \
86 (IS_INTERNED(str) ? (str) : zend_strndup((str), (len)));
88 #define str_hash(str, len) \
89 (IS_INTERNED(str) ? INTERNED_HASH(str) : zend_hash_func((str), (len)+1))
/PHP_5_6/ext/dba/libcdb/
H A Dcdb.c46 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_5_6/ext/filter/
H A Dfilter_private.h103 #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...]
/PHP_5_6/ext/mysqlnd/
H A Dmysqlnd_bt.c30 *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_5_6/ext/standard/
H A Dcrc32.c30 int len, nr; local
39 for (len =+nr; nr--; ++p) {
H A Dphp_smart_str_public.h28 size_t len; member in struct:__anon261
H A Duuencode.c70 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_5_6/ext/phar/
H A Dphar_path_check.re23 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
84 *len = (p - (const unsigned char*)*s) -1;
94 (*len)--;
96 if ((p - (const unsigned char*)*s) - 1 != *len)
/PHP_5_6/sapi/phpdbg/
H A Dphpdbg_parser.y89 $$.file.name = malloc($1.len + $2.len + 1);
91 memcpy(&$$.file.name[0], $1.str, $1.len);
92 memcpy(&$$.file.name[$1.len], $2.str, $2.len);
93 $$.file.name[$1.len + $2.len] = '\0';
99 $$.file.name = malloc($1.len + $2.len + 1);
101 memcpy(&$$.file.name[0], $1.str, $1.len);
[all...]

Completed in 90 milliseconds

1234567891011>>