Searched defs:length (Results 1 - 25 of 100) sorted by relevance

1234

/PHP_TRUNK/ext/spl/examples/
H A Ddirectorytree.php29 $length = $argc > 3 ? $argv[3] : -1; variable
32 foreach(new LimitIterator(new DirectoryTreeIterator($argv[1]), @$argv[2], $length) as $key=>$file) {
/PHP_TRUNK/ext/xmlrpc/libxmlrpc/
H A Dbase64.h15 int length; member in struct:buffer_st
24 void base64_encode_xmlrpc(struct buffer_st *b, const char *source, int length);
25 void base64_decode_xmlrpc(struct buffer_st *b, const char *source, int length);
/PHP_TRUNK/pear/
H A Dfetch.php43 $length = (int)(($bytes_transferred/$filesize)*100); variable
44 printf("\r[%-100s] %d%% (%2d/%2d kb)", str_repeat("=", $length). ">", $length, ($bytes_transferred/1024), $filesize/1024);
/PHP_TRUNK/ext/mbstring/libmbfl/tests/
H A Dstrcut.c31 int offset, length; local
36 fprintf(stderr, "Usage: %s lang encoding offset length\n", argv[0]);
59 length = strtol(argv[4], NULL, 10);
61 printf("Invalid length: %s\n", argv[4]);
89 if (dev.pos >= dev.length) {
90 if (dev.length + dev.allocsz < dev.length) {
95 mbfl_memory_device_realloc(&dev, dev.length + dev.allocsz,
103 if (mbfl_strcut(&string, &result, offset, length)) {
/PHP_TRUNK/ext/pcre/pcrelib/
H A Dpcre_valid_utf8.c97 length length of string, or -1 if the string is zero-terminated
105 PRIV(valid_utf)(PCRE_PUCHAR string, int length, int *erroroffset) argument
110 if (length < 0)
113 length = (int)(p - string);
116 for (p = string; length-- > 0; p++)
136 if (length < ab)
139 return ab - length; /* Codes ERR1 to ERR5 */
141 length -= ab; /* Length remaining */
151 /* For each length, chec
[all...]
/PHP_TRUNK/ext/intl/resourcebundle/
H A Dresourcebundle_iterator.h28 zend_long length; member in struct:__anon4
/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.h41 int length; member in struct:_mbfl_memory_device
48 int length; member in struct:_mbfl_wchar_device
/PHP_TRUNK/ext/intl/dateformat/
H A Ddateformat_attr.c89 int length = USIZE( value_buf ); local
106 length = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ERROR_CODE(dfo));
107 if(INTL_DATA_ERROR_CODE(dfo) == U_BUFFER_OVERFLOW_ERROR && length >= USIZE( value_buf )) {
108 ++length; /* to avoid U_STRING_NOT_TERMINATED_WARNING */
110 value = eumalloc(length);
111 length = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ERROR_CODE(dfo) );
119 INTL_METHOD_RETVAL_UTF8( dfo, value, length, ( value != value_buf ) );
/PHP_TRUNK/ext/intl/formatter/
H A Dformatter_attr.c108 int32_t length = 0; local
124 length = unum_getTextAttribute( FORMATTER_OBJECT(nfo), attribute, value, value_buf_size, &INTL_DATA_ERROR_CODE(nfo) );
125 if(INTL_DATA_ERROR_CODE(nfo) == U_BUFFER_OVERFLOW_ERROR && length >= value_buf_size) {
126 ++length; /* to avoid U_STRING_NOT_TERMINATED_WARNING */
128 value = eumalloc(length);
129 length = unum_getTextAttribute( FORMATTER_OBJECT(nfo), attribute, value, length, &INTL_DATA_ERROR_CODE(nfo) );
137 INTL_METHOD_RETVAL_UTF8( nfo, value, length, ( value != value_buf ) );
255 int32_t length = USIZE(value_buf); local
276 length
348 int32_t length = USIZE( value_buf ); local
[all...]
/PHP_TRUNK/ext/com_dotnet/
H A Dcom_olechar.c40 /* determine required length for the buffer (includes NUL terminator) */
77 uint length = 0; local
80 length = WideCharToMultiByte(codepage, 0, olestring, -1, NULL, 0, NULL, NULL);
82 if (length) {
83 string = (char*)safe_emalloc(length, sizeof(char), 0);
84 length = WideCharToMultiByte(codepage, 0, olestring, -1, string, length, NULL, NULL);
85 ok = length > 0;
90 length = 0;
103 *string_len = length
[all...]
/PHP_TRUNK/ext/hash/
H A Dphp_hash_gost.h30 unsigned char length; member in struct:__anon82
H A Dphp_hash_snefru.h34 unsigned char length; member in struct:__anon97
H A Dphp_hash_tiger.h30 unsigned int length:7; member in struct:__anon98
/PHP_TRUNK/sapi/cli/
H A Dphp_cli_process_title.c55 int length = 0; local
63 rc = get_ps_title(&length, &title);
69 RETURN_STRINGL(title, length);
/PHP_TRUNK/main/streams/
H A Dmmap.c25 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len) argument
30 range.length = length;
36 if (length > 4 * 1024 * 1024) {
42 *mapped_len = range.length;
H A Dphp_stream_mmap.h49 /* requested offset and length.
50 * If length is 0, the whole file is mapped */
52 size_t length; member in struct:__anon3
70 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_access_t mode, size_t *mapped_len);
71 #define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (offset), (length), (mode), (mapped_len))
/PHP_TRUNK/ext/zip/lib/
H A Dzip_io_util.c41 _zip_read(zip_source_t *src, zip_uint8_t *b, zip_uint64_t length, zip_error_t *error) argument
45 if (length > ZIP_INT64_MAX) {
50 if ((n = zip_source_read(src, b, length)) < 0) {
55 if (n < (zip_int64_t)length) {
65 _zip_read_data(zip_buffer_t *buffer, zip_source_t *src, size_t length, bool nulp, zip_error_t *error) argument
69 if (length == 0 && !nulp) {
73 r = (zip_uint8_t *)malloc(length + (nulp ? 1 : 0));
80 zip_uint8_t *data = _zip_buffer_get(buffer, length);
87 memcpy(r, data, length);
90 if (_zip_read(src, r, length, erro
125 _zip_write(zip_t *za, const void *data, zip_uint64_t length) argument
[all...]
H A Dzip_source_call.c39 _zip_source_call(zip_source_t *src, void *data, zip_uint64_t length, zip_source_cmd_t command) argument
49 ret = src->cb.f(src->ud, data, length, command);
52 ret = src->cb.l(src->src, src->ud, data, length, command);
H A Dzip_source_file.c52 zip_source_file_create(const char *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *error) argument
54 if (fname == NULL || length < -1) {
59 return _zip_source_file_or_p(fname, NULL, start, length, NULL, error);
H A Dzip_source_seek.c59 zip_source_seek_compute_offset(zip_uint64_t offset, zip_uint64_t length, void *data, zip_uint64_t data_length, zip_error_t *error) argument
74 new_offset = (zip_int64_t)length + args->offset;
86 if (new_offset < 0 || (zip_uint64_t)new_offset > length) {
H A Dzip_source_win32a.c66 zip_source_win32a_create(const char *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *error) argument
68 if (fname == NULL || length < -1) {
73 return _zip_source_win32_handle_or_name(fname, INVALID_HANDLE_VALUE, start, length, 1, NULL, &win32_ops_a, error);
H A Dzip_source_win32utf8.c53 zip_source_file_create(const char *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *error) argument
59 if (fname == NULL || length < -1) {
76 source = zip_source_win32w_create(wfname, start, length, error);
H A Dzip_source_win32w.c66 zip_source_win32w_create(const wchar_t *fname, zip_uint64_t start, zip_int64_t length, zip_error_t *error) argument
68 if (fname == NULL || length < -1) {
73 return _zip_source_win32_handle_or_name(fname, INVALID_HANDLE_VALUE, start, length, 1, NULL, &win32_ops_w, error);
H A Dzip_source_write.c39 zip_source_write(zip_source_t *src, const void *data, zip_uint64_t length) argument
41 if (!ZIP_SOURCE_IS_OPEN_WRITING(src) || length > ZIP_INT64_MAX) {
46 return _zip_source_call(src, (void *)data, length, ZIP_SOURCE_WRITE);
H A Dzip_string.c49 crc = (zip_uint32_t)crc32(crc, s->raw, s->length);
61 if (a->length != b->length)
66 return (memcmp(a->raw, b->raw, a->length) == 0);
102 if ((string->converted=_zip_cp437_to_utf8(string->raw, string->length,
113 *lenp = string->length;
124 return s->length;
129 _zip_string_new(const zip_uint8_t *raw, zip_uint16_t length, zip_flags_t flags, zip_error_t *error) argument
134 if (length == 0)
157 if ((s->raw=(zip_uint8_t *)malloc((size_t)(length
[all...]

Completed in 10 milliseconds

1234