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

12345678

/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/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/scripts/apache/
H A Dconffix.awk15 print "php_admin_value " phpcommand " " substr($0,index($0,$1)+length($1)+1)
H A Dhtaccessfix.awk15 print "php_value " phpcommand " " substr($0,index($0,$1)+length($1)+1)
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_is_numeric.h24 zend_uchar collator_is_numeric( UChar *str, int length, long *lval, double *dval, int allow_errors );
/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 long length; member in struct:__anon203
/PHP_TRUNK/ext/json/
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);
H A Dutf8_decode.h17 extern void utf8_decode_init(json_utf8_decode *utf8, char p[], int length);
/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/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/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_TRUNK/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...]
/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 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 Dquot_print.h24 PHPAPI unsigned char *php_quot_print_decode(const unsigned char *str, size_t length, size_t *ret_length, int replace_us_by_ws);
25 PHPAPI unsigned char *php_quot_print_encode(const unsigned char *str, size_t length, size_t *ret_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 TSRMLS_CC)
35 #define php_stream_memory_get_buffer(stream, length) _php_stream_memory_get_buffer((stream), (length) STREAMS_CC TSRMLS_CC)
40 #define php_stream_temp_open(mode, max_memory_usage, buf, length) _php_stream_temp_open((mode), (max_memory_usage), (buf), (length) STREAMS_CC TSRMLS_CC)
44 PHPAPI php_stream *_php_stream_memory_open(int mode, char *buf, size_t length STREAMS_DC TSRMLS_DC);
45 PHPAPI char *_php_stream_memory_get_buffer(php_stream *stream, size_t *length STREAMS_DC TSRMLS_DC);
48 PHPAPI php_stream *_php_stream_temp_open(int mode, size_t max_memory_usage, char *buf, size_t length STREAMS_DC TSRMLS_DC);
/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;
/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, 1);
/PHP_TRUNK/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++)
138 if (length < ab)
141 return ab - length; /* Codes ERR1 to ERR5 */
143 length -= ab; /* Length remaining */
153 /* For each length, chec
[all...]

Completed in 9 milliseconds

12345678