Searched refs:length (Results 1 - 25 of 179) sorted by relevance

12345678

/PHP_TRUNK/ext/dom/examples/
H A Ddom1.inc27 $child_count = $node->childNodes->length;
/PHP_TRUNK/ext/dom/tests/
H A Ddom_test.inc28 $child_count = $node->childNodes->length;
/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/intl/collator/
H A Dcollator_is_numeric.h24 zend_uchar collator_is_numeric( UChar *str, int32_t length, zend_long *lval, double *dval, int allow_errors );
/PHP_TRUNK/ext/bcmath/libbcmath/src/
H A Dinit.c48 _bc_new_num_ex (length, scale, persistent)
49 int length, scale, persistent;
54 temp = (bc_num) safe_pemalloc (1, sizeof(bc_struct)+length, scale, persistent);
65 temp->n_len = length;
69 temp->n_ptr = (char *) safe_pemalloc (1, length, scale, persistent);
72 memset (temp->n_ptr, 0, length+scale);
/PHP_TRUNK/ext/mbstring/libmbfl/mbfl/
H A Dmbfl_memory_device.c50 device->length = 0;
55 device->length = initsz;
73 if (initsz > device->length) {
77 device->length = initsz;
96 device->length = 0;
125 device->length = 0;
143 if (device->pos >= device->length) {
148 newlen = device->length + device->allocsz;
153 device->length = newlen;
166 if ((device->pos + 2) >= device->length) {
[all...]
/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/dom/
H A Dcharacterdata.c119 /* {{{ length long
128 long length = 0; local
138 length = xmlUTF8Strlen(content);
142 ZVAL_LONG(retval, length);
160 int length; local
174 length = xmlUTF8Strlen(cur);
176 if (offset < 0 || count < 0 || offset > length) {
182 if ((offset + count) > length) {
183 count = length - offset;
243 int length; local
291 int length; local
347 int length; local
[all...]
/PHP_TRUNK/ext/hash/
H A Dphp_hash_snefru.h34 unsigned char length; member in struct:__anon97
/PHP_TRUNK/ext/standard/
H A Dbase64.c56 PHPAPI zend_string *php_base64_encode(const unsigned char *str, size_t length) /* {{{ */ argument
62 result = zend_string_alloc(((length + 2) / 3) * 4 * sizeof(char), 0);
65 while (length > 2) { /* keep going until we have less than 24 bits */
72 length -= 3; /* we just handle 3 octets of data */
76 if (length != 0) {
78 if (length > 1) {
130 PHPAPI zend_string *php_base64_decode(const unsigned char *str, size_t length) /* {{{ */ argument
132 return php_base64_decode_ex(str, length, 0);
136 PHPAPI zend_string *php_base64_decode_ex(const unsigned char *str, size_t length, zend_bool strict) /* {{{ */ argument
143 result = zend_string_alloc(length,
[all...]
H A Dquot_print.h24 PHPAPI zend_string *php_quot_print_decode(const unsigned char *str, size_t length, int replace_us_by_ws);
25 PHPAPI zend_string *php_quot_print_encode(const unsigned char *str, size_t length);
/PHP_TRUNK/main/
H A Dphp_memory_streams.h34 #define php_stream_memory_open(mode, buf, length) _php_stream_memory_open((mode), (buf), (length) STREAMS_CC)
35 #define php_stream_memory_get_buffer(stream, length) _php_stream_memory_get_buffer((stream), (length) STREAMS_CC)
41 #define php_stream_temp_open(mode, max_memory_usage, buf, length) _php_stream_temp_open((mode), (max_memory_usage), (buf), (length) STREAMS_CC)
45 PHPAPI php_stream *_php_stream_memory_open(int mode, char *buf, size_t length STREAMS_DC);
46 PHPAPI char *_php_stream_memory_get_buffer(php_stream *stream, size_t *length STREAMS_DC);
50 PHPAPI php_stream *_php_stream_temp_open(int mode, size_t max_memory_usage, char *buf, size_t length STREAMS_DC);
/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_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_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 24 milliseconds

12345678