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

1234567891011>>

/PHP_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/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_TRUNK/ext/intl/
H A Dintl_common.h27 # define UBYTES(len) ((len) * sizeof(UChar))
39 #define UCHARS(len) ((len) / sizeof(UChar))
/PHP_TRUNK/ext/standard/
H A Dphp_smart_string_public.h29 size_t len; member in struct:__anon257
H A Duuencode.c70 size_t len = 45; local
81 ee = s + len;
84 len = ee - s;
85 if (len % 3) {
86 ee = s + (int) (floor((double)len / 3) * 3);
89 *p++ = PHP_UU_ENC(len);
100 if (len == 45) {
106 if (len == 45) {
108 len = 0;
117 if (len < 4
132 size_t len, total_len=0; local
[all...]
H A Durl.h37 PHPAPI size_t php_url_decode(char *str, size_t len); /* return value: length of decoded string */
38 PHPAPI size_t php_raw_url_decode(char *str, size_t len); /* return value: length of decoded string */
39 PHPAPI zend_string *php_url_encode(char const *s, size_t len);
40 PHPAPI zend_string *php_raw_url_encode(char const *s, size_t len);
41 PHPAPI char *php_replace_controlchars_ex(char *str, size_t len);
/PHP_TRUNK/Zend/
H A Dzend_string.h32 ZEND_API zend_ulong zend_hash_func(const char *str, size_t len);
48 (str)->len = (_len); \
50 #define STR_ALLOCA_INIT(str, s, len, use_heap) do { \
51 STR_ALLOCA_ALLOC(str, len, use_heap); \
52 memcpy((str)->val, (s), (len)); \
53 (str)->val[(len)] = '\0'; \
61 s->h = zend_hash_func(s->val, s->len);
95 static zend_always_inline zend_string *zend_string_alloc(size_t len, int persistent) argument
97 zend_string *ret = (zend_string *)pemalloc(ZEND_MM_ALIGNED_SIZE(_STR_HEADER_SIZE + len + 1), persistent);
109 ret->len
131 zend_string_init(const char *str, size_t len, int persistent) argument
157 zend_string_realloc(zend_string *s, size_t len, int persistent) argument
256 zend_inline_hash_func(const char *str, size_t len) argument
[all...]
/PHP_TRUNK/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_TRUNK/sapi/phpdbg/
H A Dphpdbg_parser.y91 $$.file.name = malloc($1.len + $2.len + 1);
93 memcpy(&$$.file.name[0], $1.str, $1.len);
94 memcpy(&$$.file.name[$1.len], $2.str, $2.len);
95 $$.file.name[$1.len + $2.len] = '\0';
101 $$.file.name = malloc($1.len + $2.len + 1);
103 memcpy(&$$.file.name[0], $1.str, $1.len);
[all...]
H A Dphpdbg_wait.h27 void phpdbg_webdata_decompress(char *msg, int len TSRMLS_DC);
H A Dphpdbg_webdata_transfer.h25 PHPDBG_API void phpdbg_webdata_compress(char **msg, int *len TSRMLS_DC);
H A Dphpdbg_io.h26 PHPDBG_API int phpdbg_consume_bytes(int sock, char *ptr, int len, int tmo TSRMLS_DC);
27 PHPDBG_API int phpdbg_send_bytes(int sock, const char *ptr, int len);
28 PHPDBG_API int phpdbg_mixed_read(int sock, char *ptr, int len, int tmo TSRMLS_DC);
29 PHPDBG_API int phpdbg_mixed_write(int sock, const char *ptr, int len TSRMLS_DC);

Completed in 43 milliseconds

1234567891011>>