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

1234567891011>>

/PHP_5_4/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_4/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_4/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_4/ext/intl/
H A Dintl_common.h27 # define UBYTES(len) ((len) * sizeof(UChar))
39 #define UCHARS(len) ((len) / sizeof(UChar))
/PHP_5_4/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_string.c52 string->len = 0;
63 string->len = 0;
75 string->len = 0;
/PHP_5_4/ext/zip/lib/
H A Dzip_add_dir.c50 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 Dzip_error_to_str.c48 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 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 : 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_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 ret = malloc(len);
53 memcpy(ret, mem, len);
42 _zip_memdup(const void *mem, size_t len, struct zip_error *error) argument
H A Dzip_set_archive_comment.c45 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 Dzip_set_file_comment.c46 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 Dzip_set_file_extra.c44 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 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);
H A Dzip_source_zip.c46 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_5_4/ext/mbstring/oniguruma/enc/
H A Dsjis.c98 int c, i, len; local
101 len = enc_len(ONIG_ENCODING_SJIS, p);
104 if (len == 1) return n;
106 for (i = 1; i < len; i++) {
147 int len = enc_len(ONIG_ENCODING_SJIS, p); local
151 for (i = 0; i < len; i++) {
155 (*pp) += len;
156 return len; /* return byte length of converted char to lower */
186 int len; local
199 len
[all...]
/PHP_5_4/ext/mbstring/oniguruma/
H A Dregerror.c189 int len; local
195 len = 0;
199 if (len + 5 <= buf_size) {
200 sprintf((char* )(&(buf[len])), "\\%03o",
202 len += 5;
209 buf[len++] = (UChar )code;
213 if (len >= buf_size) break;
219 len = MIN((end - s), buf_size);
220 xmemcpy(buf, s, (size_t )len);
224 return len;
243 int len, is_over; local
314 int n, need, len; local
[all...]
H A Dregposerr.c70 size_t len; local
83 len = strlen(s) + 1; /* use strlen() because s is ascii encoding. */
89 return len;
/PHP_5_4/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:__anon258
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_4/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_4/ext/filter/
H A Dfilter_private.h102 #define PHP_FILTER_TRIM_DEFAULT(p, len) PHP_FILTER_TRIM_DEFAULT_EX(p, len, 1);
104 #define PHP_FILTER_TRIM_DEFAULT_EX(p, len, return_if_empty) { \
105 while ((len > 0) && (*p == ' ' || *p == '\t' || *p == '\r' || *p == '\v' || *p == '\n')) { \
107 len--; \
109 if (len < 1 && return_if_empty) { \
112 if (len > 0) { \
113 while (p[len-1] == ' ' || p[len-1] == '\t' || p[len
[all...]
/PHP_5_4/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)

Completed in 14 milliseconds

1234567891011>>