Searched defs:length (Results 1 - 25 of 90) 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.c25 b->length = 512;
26 b->data = malloc(sizeof(char)*(b->length));
36 if (b->offset == b->length) {
37 b->length += 512;
38 b->data = realloc(b->data, b->length);
46 b->length = 0;
52 void base64_encode_xmlrpc(struct buffer_st *b, const char *source, int length) argument
82 if (offset > length) {
117 void base64_decode_xmlrpc(struct buffer_st *bfr, const char *source, int length) argument
153 if (offset > length) endoffil
[all...]
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/json/
H A Dutf8_decode.c87 utf8_decode_init(json_utf8_decode *utf8, char p[], int length) argument
91 utf8->the_length = length;
H A DJSON_parser.h35 extern int parse_JSON_ex(JSON_parser jp, zval *z, unsigned short utf16_json[], int length, int options TSRMLS_DC);
38 static inline int parse_JSON(JSON_parser jp, zval *z, unsigned short utf16_json[], int length, int assoc TSRMLS_DC) argument
40 return parse_JSON_ex(jp, z, utf16_json, length, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0 TSRMLS_CC);
/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/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/zip/lib/
H A Dzip_string.c53 crc = (zip_uint32_t)crc32(crc, s->raw, s->length);
67 if (a->length != b->length)
72 return (memcmp(a->raw, b->raw, a->length) == 0);
112 if ((string->converted=_zip_cp437_to_utf8(string->raw, string->length,
123 *lenp = string->length;
136 return s->length; argument
143 _zip_string_new(const zip_uint8_t *raw, zip_uint16_t length, zip_flags_t flags, struct zip_error *error)
148 if (length == 0)
171 if ((s->raw=(zip_uint8_t *)malloc(length
[all...]
/PHP_TRUNK/Zend/
H A Dzend_language_scanner.h56 int length; member in struct:_zend_heredoc_label
/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/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...]
H A Dtext.c153 int length; local
169 length = xmlUTF8Strlen(cur);
171 if (offset > length || offset < 0) {
177 second = xmlUTF8Strsub(cur, offset, length - offset);
/PHP_TRUNK/ext/hash/
H A Dphp_hash_gost.h30 unsigned char length; member in struct:__anon62
H A Dphp_hash_snefru.h34 unsigned char length; member in struct:__anon77
H A Dphp_hash_tiger.h30 unsigned int length:7; member in struct:__anon78
/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 int 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 int length = USIZE(value_buf); local
276 length
348 int length = USIZE( value_buf ); local
[all...]
/PHP_TRUNK/ext/intl/resourcebundle/
H A Dresourcebundle_iterator.h28 zend_long length; member in struct:__anon114
/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 Dcyr_convert.c190 /* {{{ static char * php_convert_cyr_string(unsigned char *str, int length, char from, char to TSRMLS_DC)
204 static char * php_convert_cyr_string(unsigned char *str, size_t length, char from, char to TSRMLS_DC) argument
261 for (i = 0; i < length; i++) {
/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_operation_t mode, size_t *mapped_len TSRMLS_DC) 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:__anon305
70 PHPAPI char *_php_stream_mmap_range(php_stream *stream, size_t offset, size_t length, php_stream_mmap_operation_t mode, size_t *mapped_len TSRMLS_DC);
71 #define php_stream_mmap_range(stream, offset, length, mode, mapped_len) _php_stream_mmap_range((stream), (offset), (length), (mode), (mapped_len) TSRMLS_CC)
/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/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...]

Completed in 11 milliseconds

1234