| /PHP_TRUNK/ext/spl/examples/ |
| H A D | directorytree.php | 29 $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 D | base64.c | 25 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 D | base64.h | 15 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 D | fetch.php | 43 $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/intl/dateformat/ |
| H A D | dateformat_attr.c | 89 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 D | formatter_attr.c | 108 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 D | resourcebundle_iterator.h | 28 long length; member in struct:__anon203
|
| /PHP_TRUNK/ext/json/ |
| H A D | JSON_parser.h | 35 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);
|
| H A D | utf8_decode.c | 87 utf8_decode_init(json_utf8_decode *utf8, char p[], int length) argument 91 utf8->the_length = length;
|
| /PHP_TRUNK/ext/mbstring/libmbfl/mbfl/ |
| H A D | mbfl_memory_device.h | 41 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 D | strcut.c | 31 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/Zend/ |
| H A D | zend_language_scanner.h | 56 int length; member in struct:_zend_heredoc_label
|
| /PHP_TRUNK/ext/com_dotnet/ |
| H A D | com_olechar.c | 40 /* 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_TRUNK/ext/dom/ |
| H A D | characterdata.c | 135 /* {{{ 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 D | text.c | 155 int length; local 171 length = xmlUTF8Strlen(cur); 173 if (offset > length || offset < 0) { 179 second = xmlUTF8Strsub(cur, offset, length - offset);
|
| /PHP_TRUNK/ext/hash/ |
| H A D | php_hash_gost.h | 30 unsigned char length; member in struct:__anon82
|
| H A D | php_hash_snefru.h | 34 unsigned char length; member in struct:__anon97
|
| H A D | php_hash_tiger.h | 30 unsigned int length:7; member in struct:__anon98
|
| /PHP_TRUNK/ext/standard/ |
| H A D | base64.c | 56 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 D | cyr_convert.c | 190 /* {{{ 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_TRUNK/main/ |
| H A D | php_content_types.c | 41 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_TRUNK/main/streams/ |
| H A D | mmap.c | 25 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 D | php_stream_mmap.h | 49 /* requested offset and length. 50 * If length is 0, the whole file is mapped */ 52 size_t length; member in struct:__anon293 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/ext/pcre/pcrelib/ |
| H A D | pcre_valid_utf8.c | 99 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...] |
| /PHP_TRUNK/sapi/cli/ |
| H A D | php_cli_process_title.c | 55 int length = 0; local 63 rc = get_ps_title(&length, &title); 69 RETURN_STRINGL(title, length, 1);
|