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

1234

/PHP_5_3/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_5_3/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_5_3/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_5_3/ext/intl/dateformat/
H A Ddateformat_attr.c213 int length = USIZE( value_buf ); local
230 length = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ERROR_CODE(dfo));
231 if(INTL_DATA_ERROR_CODE(dfo) == U_BUFFER_OVERFLOW_ERROR && length >= USIZE( value_buf )) {
232 ++length; /* to avoid U_STRING_NOT_TERMINATED_WARNING */
234 value = eumalloc(length);
235 length = udat_toPattern(DATE_FORMAT_OBJECT(dfo), is_pattern_localized, value, length, &INTL_DATA_ERROR_CODE(dfo) );
243 INTL_METHOD_RETVAL_UTF8( dfo, value, length, ( value != value_buf ) );
/PHP_5_3/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_5_3/ext/intl/resourcebundle/
H A Dresourcebundle_iterator.h28 long length; member in struct:__anon185
/PHP_5_3/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 Dutf8_to_utf16.c33 utf8_to_utf16(unsigned short w[], char p[], int length) argument
39 utf8_decode_init(&utf8, p, length);
/PHP_5_3/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_5_3/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_5_3/ext/com_dotnet/
H A Dcom_olechar.c40 /* determine required length for the buffer (includes NUL terminator) */
71 uint length = 0; local
74 length = WideCharToMultiByte(codepage, 0, olestring, -1, NULL, 0, NULL, NULL);
76 if (length) {
77 string = (char*)safe_emalloc(length, sizeof(char), 0);
78 length = WideCharToMultiByte(codepage, 0, olestring, -1, string, length, NULL, NULL);
79 ok = length > 0;
84 length = 0;
97 *string_len = length
[all...]
/PHP_5_3/ext/dom/
H A Dcharacterdata.c135 /* {{{ length long
144 long length = 0; local
158 length = xmlUTF8Strlen(content);
162 ZVAL_LONG(*retval, length);
180 int length; local
194 length = xmlUTF8Strlen(cur);
196 if (offset < 0 || count < 0 || offset > length) {
202 if ((offset + count) > length) {
203 count = length - offset;
263 int length, arg_le local
310 int length; local
366 int length, arg_len; local
[all...]
H A Dtext.c155 int length; local
171 length = xmlUTF8Strlen(cur);
173 if (offset > length || offset < 0) {
179 second = xmlUTF8Strsub(cur, offset, length - offset);
/PHP_5_3/ext/hash/
H A Dphp_hash_gost.h30 unsigned char length; member in struct:__anon60
H A Dphp_hash_salsa.h30 unsigned char length:7; member in struct:__anon69
H A Dphp_hash_snefru.h34 unsigned char length; member in struct:__anon75
H A Dphp_hash_tiger.h30 unsigned int length:7; member in struct:__anon76
/PHP_5_3/ext/standard/
H A Dbase64.c56 PHPAPI unsigned char *php_base64_encode(const unsigned char *str, int length, int *ret_length) /* {{{ */ argument
62 if (length < 0) {
69 result = (unsigned char *) safe_emalloc((length + 2) / 3, 4 * sizeof(char), 1);
72 while (length > 2) { /* keep going until we have less than 24 bits */
79 length -= 3; /* we just handle 3 octets of data */
83 if (length != 0) {
85 if (length > 1) {
137 PHPAPI unsigned char *php_base64_decode(const unsigned char *str, int length, int *ret_length) /* {{{ */ argument
139 return php_base64_decode_ex(str, length, ret_length, 0);
143 PHPAPI unsigned char *php_base64_decode_ex(const unsigned char *str, int length, in argument
[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, int length, char from, char to TSRMLS_DC) argument
261 for( i = 0; i<length; i++)
/PHP_5_3/main/
H A Dphp_content_types.c41 int length; local
53 length = SG(request_info).post_data_length;
54 data = estrndup(SG(request_info).post_data, length);
55 SET_VAR_STRINGL("HTTP_RAW_POST_DATA", data, length);
/PHP_5_3/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:__anon264
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_5_3/ext/mysqlnd/
H A Dmysqlnd_result_meta.c55 mysqlnd_is_key_numeric(const char * key, size_t length, long *idx) argument
64 const char *end=key+length-1;
66 if (*tmp++=='0' && length>2) { /* don't accept numbers with leading zeros */
98 mysqlnd_unicode_is_key_numeric(UChar *key, size_t length, long *idx) argument
107 UChar *end=key+length-1;
109 if (*tmp++==0x30 && length>2) { /* don't accept numbers with leading zeros */
198 /* .length is in bits */
199 field_len = meta->fields[i].length / 8;
204 if (meta->fields[i].length % 8) {
/PHP_5_3/ext/pcre/pcrelib/
H A Dpcre_valid_utf8.c99 length length of string, or -1 if the string is zero-terminated
107 PRIV(valid_utf)(PCRE_PUCHAR string, int length, int *erroroffset) argument
112 if (length < 0)
115 length = (int)(p - string);
118 for (p = string; length-- > 0; p++)
139 if (length < ab)
142 return ab - length; /* Codes ERR1 to ERR5 */
144 length -= ab; /* Length remaining */
154 /* For each length, chec
[all...]

Completed in 108 milliseconds

1234