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

1234567891011>>

/PHP_TRUNK/ext/mbstring/oniguruma/
H A Dregposerr.c77 size_t len; local
91 len = strlen(s) + 1; /* use strlen() because s is ascii encoding. */
97 return len;
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/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/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...]
H A Dphpdbg_io.h26 PHPDBG_API int phpdbg_consume_bytes(int sock, char *ptr, int len, int tmo);
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);
29 PHPDBG_API int phpdbg_mixed_write(int sock, const char *ptr, int len);
H A Dphpdbg_wait.h27 void phpdbg_webdata_decompress(char *msg, int len);
H A Dphpdbg_webdata_transfer.h25 PHPDBG_API void phpdbg_webdata_compress(char **msg, int *len);
/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/dba/libcdb/
H A Dcdb.c46 static int cdb_match(struct cdb *c, char *key, unsigned int len, uint32 pos) 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) argument
110 while (len > 0) {
113 r = php_stream_read(c->fp, buf, len);
129 cdb_findnext(struct cdb *c, char *key, unsigned int len) argument
182 cdb_find(struct cdb *c, char *key, unsigned int len) argument
[all...]
/PHP_TRUNK/ext/filter/
H A Dfilter_private.h106 #define PHP_FILTER_TRIM_DEFAULT(p, len) PHP_FILTER_TRIM_DEFAULT_EX(p, len, 1);
108 #define PHP_FILTER_TRIM_DEFAULT_EX(p, len, return_if_empty) { \
109 while ((len > 0) && (*p == ' ' || *p == '\t' || *p == '\r' || *p == '\v' || *p == '\n')) { \
111 len--; \
113 if (len < 1 && return_if_empty) { \
116 if (len > 0) { \
117 while (p[len-1] == ' ' || p[len-1] == '\t' || p[len
[all...]
/PHP_TRUNK/ext/standard/
H A Dphp_smart_string_public.h29 size_t len; member in struct:__anon299
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);
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...]
/PHP_TRUNK/ext/intl/
H A Dintl_common.h29 # define UBYTES(len) ((len) * sizeof(UChar))
41 #define UCHARS(len) ((len) / sizeof(UChar))
/PHP_TRUNK/ext/zip/lib/
H A Dzip_file_get_comment.c43 zip_uint32_t len; local
49 if ((str=_zip_string_get(de->comment, &len, flags, &za->error)) == NULL)
53 *lenp = len;
H A Dzip_filerange_crc.c43 _zip_filerange_crc(zip_source_t *src, zip_uint64_t start, zip_uint64_t len, uLong *crcp, zip_error_t *error) argument
60 while (len > 0) {
61 n = (zip_int64_t)(len > BUFSIZE ? BUFSIZE : len);
73 len -= (zip_uint64_t)n;
H A Dzip_get_archive_comment.c44 zip_uint32_t len; local
52 if ((str=_zip_string_get(comment, &len, flags, &za->error)) == NULL)
56 *lenp = (int)len;
H A Dzip_get_file_comment.c42 zip_uint32_t len; local
45 if ((s=zip_file_get_comment(za, idx, &len, (zip_flags_t)flags)) != NULL) {
47 *lenp = (int)len;
H A Dzip_memdup.c2 zip_memdup.c -- internal zip function, "strdup" with len
41 _zip_memdup(const void *mem, size_t len, zip_error_t *error) argument
45 if (len == 0)
48 ret = malloc(len);
54 memcpy(ret, mem, len);
H A Dzip_set_file_comment.c42 zip_set_file_comment(zip_t *za, zip_uint64_t idx, const char *comment, int len) argument
44 if (len < 0 || len > ZIP_UINT16_MAX) {
48 return zip_file_set_comment(za, idx, comment, (zip_uint16_t)len, 0);
H A Dzip_source_read.c39 zip_source_read(zip_source_t *src, void *data, zip_uint64_t len) argument
44 if (!ZIP_SOURCE_IS_OPEN_READING(src) || len > ZIP_INT64_MAX || (len > 0 && data == NULL)) {
49 return _zip_source_call(src, data, len, ZIP_SOURCE_READ);
H A Dzip_source_zip.c43 zip_flags_t flags, zip_uint64_t start, zip_int64_t len)
45 if (len < -1) {
50 if (len == -1)
51 len = 0;
53 if (start == 0 && len == 0)
58 return _zip_source_zip_new(za, srcza, srcidx, flags, start, (zip_uint64_t)len, NULL);
42 zip_source_zip(zip_t *za, zip_t *srcza, zip_uint64_t srcidx, zip_flags_t flags, zip_uint64_t start, zip_int64_t len) argument
/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;
106 size_t len local
[all...]
/PHP_TRUNK/Zend/
H A Dzend_smart_str.c32 #define SMART_STR_NEW_SIZE(len) \
33 (((len + SMART_STR_OVERHEAD + SMART_STR_PAGE) & ~(SMART_STR_PAGE - 1)) - SMART_STR_OVERHEAD - 1)
35 ZEND_API void ZEND_FASTCALL smart_str_erealloc(smart_str *str, size_t len) argument
38 str->a = len < SMART_STR_START_SIZE
40 : SMART_STR_NEW_SIZE(len);
44 str->a = SMART_STR_NEW_SIZE(len);
49 ZEND_API void ZEND_FASTCALL smart_str_realloc(smart_str *str, size_t len) argument
52 str->a = len < SMART_STR_START_SIZE
54 : SMART_STR_NEW_SIZE(len);
58 str->a = SMART_STR_NEW_SIZE(len);
[all...]

Completed in 82 milliseconds

1234567891011>>