Searched defs:len (Results 1 - 25 of 289) 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;
/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_string.h45 unsigned int len; member in struct:_mbfl_string
/PHP_TRUNK/ext/intl/formatter/
H A Dformatter_attr.c214 size_t len; local
219 &object, NumberFormatter_ce_ptr, &attribute, &value, &len ) == FAILURE)
231 intl_convert_utf8_to_utf16(&svalue, &slength, value, len, &INTL_DATA_ERROR_CODE(nfo));
/PHP_TRUNK/ext/mbstring/libmbfl/filters/
H A Dmbfilter_base64.c118 int status, cache, len; local
122 len = (filter->status & 0xff00) >> 8;
128 if (len > 72){
/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dsimplestring.h53 int len; /* length of string/buf */ member in struct:_simplestring
/PHP_TRUNK/ext/zip/lib/
H A Dzip_error_to_str.c46 zip_error_to_str(char *buf, zip_uint64_t len, int ze, int se) argument
51 return snprintf(buf, len, "Unknown error %d", ze);
68 return snprintf(buf, len, "%s%s%s",
H A Dzip_file_get_comment.c45 zip_uint32_t len; local
51 if ((str=_zip_string_get(de->comment, &len, flags, &za->error)) == NULL)
55 *lenp = len;
H A Dzip_file_set_comment.c44 const char *comment, zip_uint16_t len, zip_flags_t flags)
58 if (len > 0 && comment == NULL) {
63 if (len > 0) {
64 if ((cstr=_zip_string_new((const zip_uint8_t *)comment, len, flags, &za->error)) == NULL)
43 zip_file_set_comment(struct zip *za, zip_uint64_t idx, const char *comment, zip_uint16_t len, zip_flags_t flags) argument
H A Dzip_get_archive_comment.c46 zip_uint32_t len; local
54 if ((str=_zip_string_get(comment, &len, flags, &za->error)) == NULL)
58 *lenp = (int)len;
H A Dzip_get_file_comment.c44 zip_uint32_t len; local
47 if ((s=zip_file_get_comment(za, idx, &len, (zip_flags_t)flags)) != NULL) {
49 *lenp = (int)len;
H A Dzip_memdup.c2 zip_memdup.c -- internal zip function, "strdup" with len
42 _zip_memdup(const void *mem, size_t len, struct zip_error *error) argument
46 if (len == 0)
49 ret = malloc(len);
55 memcpy(ret, mem, len);
H A Dzip_set_file_comment.c44 zip_set_file_comment(struct zip *za, zip_uint64_t idx, const char *comment, int len) argument
46 if (len < 0 || len > ZIP_UINT16_MAX) {
50 return zip_file_set_comment(za, idx, comment, (zip_uint16_t)len, 0);
H A Dzip_source_file.c45 zip_int64_t len)
50 if (fname == NULL || len < -1) {
55 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.c41 zip_source_read(struct zip_source *src, void *data, zip_uint64_t len) argument
45 if (!src->is_open || len > ZIP_INT64_MAX || (len > 0 && data == NULL)) {
51 return src->cb.f(src->ud, data, len, ZIP_SOURCE_READ);
53 ret = src->cb.l(src->src, src->ud, data, len, ZIP_SOURCE_READ);
H A Dzip_source_zip.c45 zip_flags_t flags, zip_uint64_t start, zip_int64_t len)
47 if (len < -1) {
52 if (len == -1)
53 len = 0;
55 if (start == 0 && len == 0)
60 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_source_zip_new.c44 zip_uint64_t start, zip_uint64_t len, const char *password)
74 if ((start > 0 || len > 0) && (flags & ZIP_FL_COMPRESSED)) {
80 if ((start > 0 || len > 0) && (start+len < start || start+len > st.size)) {
115 if (start+len > 0 && enc_impl == NULL && comp_impl == NULL) {
118 st2.size = len ? len : st.size-start;
151 && (len == 0 || len
43 _zip_source_zip_new(struct zip *za, struct zip *srcza, zip_uint64_t srcidx, zip_flags_t flags, zip_uint64_t start, zip_uint64_t len, const char *password) argument
[all...]
H A Dzip_dir_add.c48 size_t len; local
64 len = strlen(name);
66 if (name[len-1] != '/') {
67 if ((s=(char *)malloc(len+2)) == NULL) {
72 s[len] = '/';
73 s[len+1] = '\0';
H A Dzip_filerange_crc.c45 _zip_filerange_crc(FILE *fp, off_t start, off_t len, uLong *crcp, argument
58 while (len > 0) {
59 n = len > BUFSIZE ? BUFSIZE : (size_t)len;
67 len-= n;
H A Dzip_set_archive_comment.c43 zip_set_archive_comment(struct zip *za, const char *comment, zip_uint16_t len) argument
52 if (len > 0 && comment == NULL) {
57 if (len > 0) {
58 if ((cstr=_zip_string_new((const zip_uint8_t *)comment, len, ZIP_FL_ENC_GUESS, &za->error)) == NULL)
/PHP_TRUNK/ext/phar/
H A Dphar_path_check.c25 phar_path_check_result phar_path_check(char **s, int *len, const char **error) argument
30 if (*len == 1 && *p == '.') {
33 } else if (*len == 2 && p[0] == '.' && p[1] == '.') {
40 #define YYLIMIT p+*len
138 *len = (p - (const unsigned char*)*s) -1;
205 (*len)--;
207 if ((p - (const unsigned char*)*s) - 1 != *len)
H A Dstub.h21 static inline void phar_get_stub(const char *index_php, const char *web, size_t *len, char **stub, const int name_len, const int web_len) argument
28 static const char newstub3_1[] = "ART;\n}\n}\n\nstatic function tmpdir()\n{\nif (strpos(PHP_OS, 'WIN') !== false) {\nif ($var = getenv('TMP') ? getenv('TMP') : getenv('TEMP')) {\nreturn $var;\n}\nif (is_dir('/temp') || mkdir('/temp')) {\nreturn realpath('/temp');\n}\nreturn false;\n}\nif ($var = getenv('TMPDIR')) {\nreturn $var;\n}\nreturn realpath('/tmp');\n}\n\nstatic function _unpack($m)\n{\n$info = unpack('V', substr($m, 0, 4));\n $l = unpack('V', substr($m, 10, 4));\n$m = substr($m, 14 + $l[1]);\n$s = unpack('V', substr($m, 0, 4));\n$o = 0;\n$start = 4 + $s[1];\n$ret['c'] = 0;\n\nfor ($i = 0; $i < $info[1]; $i++) {\n $len = unpack('V', substr($m, $start, 4));\n$start += 4;\n $savepath = substr($m, $start, $len[1]);\n$start += $len[1];\n $ret['m'][$savepath] = array_values(unpack('Va/Vb/Vc/Vd/Ve/Vf', substr($m, $start, 24)));\n$ret['m'][$savepath][3] = sprintf('%u', $ret['m'][$savepath][3]\n& 0xffffffff);\n$ret['m'][$savepath][7] = $o;\n$o += $ret['m'][$savepath][2];\n$start += 24 + $ret['m'][$savepath][5];\n$ret['c'] |= $ret['m'][$savepath][4] & self::MASK;\n}\nreturn $ret;\n}\n\nstatic function extractFile($path, $entry, $fp)\n{\n$data = '';\n$c = $entry[2];\n\nwhile ($c) {\nif ($c < 8192) {\n$data .= @fread($fp, $c);\n$c = 0;\n} else {\n$c -= 8192;\n$data .= @fread($fp, 8192);\n}\n}\n\nif ($entry[4] & self::GZ) {\n$data = gzinflate($data);\n} elseif ($entry[4] & self::BZ2) {\n$data = bzdecompress($data);\n}\n\nif (strlen($data) != $entry[0]) {\ndie(\"Invalid internal .phar file (size error \" . strlen($data) . \" != \" .\n$stat[7] . \")\");\n}\n\nif ($entry[3] != sprintf(\"%u\", crc32((binary)$data) & 0xffffffff)) {\ndie(\"Invalid internal .phar file (checksum error)\");\n}\n\nreturn $data;\n}\n\nstatic function _removeTmpFiles($temp, $origdir)\n{\nchdir($temp);\n\nforeach (glob('*') as $f) {\nif (file_exists($f)) {\nis_dir($f) ? @rmdir($f) : @unlink($f);\nif (file_exists($f) && is_dir($f)) {\nself::_removeTmpFiles($f, getcwd());\n}\n}\n}\n\n@rmdir($temp);\nclearstatcache();\nchdir($origdir);\n}\n}\n\nExtract_Phar::go();\n__HALT_COMPIL";
33 *len = spprintf(stub, name_len + web_len + newstub_len, "%s%s%s%s%s%s%d%s%s%s", newstub0, web, newstub1_0, newstub1_1, index_php, newstub2, name_len + web_len + newstub_len, newstub3_0, newstub3_1, newstub3_2);
/PHP_TRUNK/ext/hash/
H A Dhash_adler32.c30 PHP_HASH_API void PHP_ADLER32Update(PHP_ADLER32_CTX *context, const unsigned char *input, size_t len) argument
36 for (i = 0; i < len; ++i) {
H A Dhash_crc32.c31 PHP_HASH_API void PHP_CRC32Update(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) argument
35 for (i = 0; i < len; ++i) {
40 PHP_HASH_API void PHP_CRC32BUpdate(PHP_CRC32_CTX *context, const unsigned char *input, size_t len) argument
44 for (i = 0; i < len; ++i) {
/PHP_TRUNK/ext/standard/
H A Dphp_smart_string_public.h29 size_t len; member in struct:__anon299
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_lexer.h27 unsigned int len; member in struct:__anon15

Completed in 26 milliseconds

1234567891011>>