Home
last modified time | relevance | path

Searched refs:buf (Results 226 – 250 of 337) sorted by last modified time

12345678910>>...14

/PHP-5.5/ext/mbstring/oniguruma/enc/
H A Deuc_jp.c107 code_to_mbc(OnigCodePoint code, UChar *buf) in code_to_mbc() argument
109 UChar *p = buf; in code_to_mbc()
116 if (enclen(ONIG_ENCODING_EUC_JP, buf) != (p - buf)) in code_to_mbc()
119 return p - buf; in code_to_mbc()
H A Deuc_kr.c64 euckr_code_to_mbc(OnigCodePoint code, UChar *buf) in euckr_code_to_mbc() argument
66 return onigenc_mb2_code_to_mbc(ONIG_ENCODING_EUC_KR, code, buf); in euckr_code_to_mbc()
H A Deuc_tw.c64 euctw_code_to_mbc(OnigCodePoint code, UChar *buf) in euctw_code_to_mbc() argument
66 return onigenc_mb4_code_to_mbc(ONIG_ENCODING_EUC_TW, code, buf); in euctw_code_to_mbc()
H A Dgb18030.c85 gb18030_code_to_mbc(OnigCodePoint code, UChar *buf) in gb18030_code_to_mbc() argument
87 return onigenc_mb4_code_to_mbc(ONIG_ENCODING_GB18030, code, buf); in gb18030_code_to_mbc()
/PHP-5.5/ext/mbstring/libmbfl/tests/conv_encoding.tests/
H A Dgen_exp.c120 buf[0] = k; in utf32_utf8()
123 buf[0] = 0xc0 | (k >> 6); in utf32_utf8()
124 buf[1] = 0x80 | (k & 0x3f); in utf32_utf8()
127 buf[0] = 0xe0 | (k >> 12); in utf32_utf8()
132 buf[0] = 0xf0 | (k >> 18); in utf32_utf8()
138 buf[0] = 0xf8 | (k >> 24); in utf32_utf8()
145 buf[0] = 0xfc | (k >> 30); in utf32_utf8()
153 buf[retval] = '\0'; in utf32_utf8()
382 char buf[1024]; in main() local
408 while (fgets(buf, sizeof(buf), fp)) { in main()
[all …]
/PHP-5.5/ext/libxml/
H A Dlibxml.c531 char *buf; in php_libxml_internal_error_handler() local
536 len = vspprintf(&buf, 0, *msg, ap); in php_libxml_internal_error_handler()
540 while (len_iter && buf[--len_iter] == '\n') { in php_libxml_internal_error_handler()
541 buf[len_iter] = '\0'; in php_libxml_internal_error_handler()
545 smart_str_appendl(&LIBXML(error_buffer), buf, len); in php_libxml_internal_error_handler()
547 efree(buf); in php_libxml_internal_error_handler()
/PHP-5.5/ext/json/
H A DJSON_parser.c303 buf->len--; in json_create_zval()
308 int cmp = strcmp(buf->c + (buf->c[0] == '-'), long_min_digits); in json_create_zval()
323 buf->len++; in json_create_zval()
341 ZVAL_STRINGL(*z, buf->c, buf->len, 1); in json_create_zval()
367 && ((unsigned char) buf->c[buf->len - 3]) == 0xed in utf16_to_utf8()
368 && ((unsigned char) buf->c[buf->len - 2] & 0xf0) == 0xa0 in utf16_to_utf8()
369 && ((unsigned char) buf->c[buf->len - 1] & 0xc0) == 0x80) in utf16_to_utf8()
374 utf32 = (((buf->c[buf->len - 2] & 0xf) << 16) in utf16_to_utf8()
375 | ((buf->c[buf->len - 1] & 0x3f) << 10) in utf16_to_utf8()
377 buf->len -= 3; in utf16_to_utf8()
[all …]
H A Djson.c212 smart_str_appendc(buf, c); in json_pretty_print_char()
251 smart_str_appendc(buf, '['); in json_encode_array()
253 smart_str_appendc(buf, '{'); in json_encode_array()
356 smart_str_appendc(buf, ']'); in json_encode_array()
358 smart_str_appendc(buf, '}'); in json_encode_array()
452 smart_str_alloc(buf, len+2, 0); in json_escape_string()
453 smart_str_appendc(buf, '"'); in json_escape_string()
547 smart_str_appendc(buf, '"'); in json_escape_string()
776 smart_str buf = {0}; in PHP_FUNCTION() local
793 ZVAL_STRINGL(return_value, buf.c, buf.len, 1); in PHP_FUNCTION()
[all …]
H A Dphp_json.h52 PHP_JSON_API void php_json_encode(smart_str *buf, zval *val, int options TSRMLS_DC);
/PHP-5.5/ext/intl/transliterator/
H A Dtransliterator_methods.c69 char *buf = NULL; in create_transliterator() local
71 spprintf( &buf, 0, "transliterator_create: unable to open ICU transliterator" in create_transliterator()
73 if( buf == NULL ) { in create_transliterator()
79 intl_error_set_custom_msg( NULL, buf, /* copy message */ 1 TSRMLS_CC ); in create_transliterator()
80 efree( buf ); in create_transliterator()
/PHP-5.5/ext/intl/
H A Dintl_error.c250 char *buf; in intl_parse_error_to_string() local
280 intl_convert_utf16_to_utf8( &buf, &u8len, pe->preContext, -1, &status ); in intl_parse_error_to_string()
286 smart_str_appendl( &ret, buf, u8len ); in intl_parse_error_to_string()
287 efree( buf ); in intl_parse_error_to_string()
299 intl_convert_utf16_to_utf8( &buf, &u8len, pe->postContext, -1, &status ); in intl_parse_error_to_string()
306 smart_str_appendl( &ret, buf, u8len ); in intl_parse_error_to_string()
307 efree( buf ); in intl_parse_error_to_string()
/PHP-5.5/ext/intl/collator/
H A Dcollator_is_numeric.c83 char buf[64], *numbuf, *bufpos; in collator_u_strtod() local
87 if (length < sizeof(buf)) { in collator_u_strtod()
88 numbuf = buf; in collator_u_strtod()
102 if (numbuf != buf) { in collator_u_strtod()
/PHP-5.5/ext/intl/breakiterator/
H A Dcodepointiterator_internal.cpp241 char *buf = (char*)stackBuffer; in createBufferClone() local
249 uint32_t offsetUp = (uint32_t)U_ALIGNMENT_OFFSET_UP(buf); in createBufferClone()
251 buf += offsetUp; in createBufferClone()
265 return new(buf) CodePointBreakIterator(*this); in createBufferClone()
/PHP-5.5/ext/interbase/
H A Dibase_query.c464 buf += slice_size; in _php_ibase_bind_array()
478 memset(buf, 0, buf_size); in _php_ibase_bind_array()
498 *(short*) buf = (short) l; in _php_ibase_bind_array()
557 *(long *) buf = Z_LVAL_P(val); in _php_ibase_bind_array()
565 *(ISC_INT64 *) buf = l; in _php_ibase_bind_array()
647 var->sqlind = &buf[i].sqlind; in _php_ibase_bind()
673 buf[i].sqlind = -1; in _php_ibase_bind()
682 buf[i].sqlind = 0; in _php_ibase_bind()
792 buf[i].val.qval = array_id; in _php_ibase_bind()
1529 snprintf(alias = buf, sizeof(buf), "%s_%02d", base, i++); in _php_ibase_fetch_hash()
[all …]
H A Dibase_service.c157 buf[0] = operation; in _php_ibase_user()
161 int chunk = slprintf(&buf[spb_len], sizeof(buf) - spb_len, "%c%c%c%s", in _php_ibase_user()
213 char buf[128], *host, *user, *pass, *loc; in PHP_FUNCTION() local
225 spb_len = slprintf(buf, sizeof(buf), "%c%c%c%c%s%c%c%s" "%s:service_mgr", in PHP_FUNCTION()
425 char *db, *bk, buf[200]; in _php_ibase_backup_restore() local
442 spb_len = slprintf(buf, sizeof(buf), "%c%c%c%c%s%c%c%c%s%c%c%c%c%c", in _php_ibase_backup_restore()
448 buf[spb_len++] = isc_spb_verbose; in _php_ibase_backup_restore()
451 if (spb_len > sizeof(buf) || spb_len <= 0) { in _php_ibase_backup_restore()
489 char buf[128], *db; in _php_ibase_service_action() local
544 spb_len = slprintf(buf, sizeof(buf), "%c%c%c%c%s%c%c%c%c%c", in _php_ibase_service_action()
[all …]
/PHP-5.5/ext/imap/
H A Dphp_imap.c349 ZEND_ARG_INFO(0, buf)
353 ZEND_ARG_INFO(0, buf)
4329 RFC822BUFFER buf; in _php_rfc822_write_address() local
4331 buf.beg = address; in _php_rfc822_write_address()
4332 buf.cur = buf.beg; in _php_rfc822_write_address()
4333 buf.end = buf.beg + sizeof(address) - 1; in _php_rfc822_write_address()
4334 buf.s = &ret; in _php_rfc822_write_address()
4696 char buf[25]; in build_thread_tree() local
4840 free(buf); in php_mail_gets()
4841 buf = NULL; in php_mail_gets()
[all …]
/PHP-5.5/ext/iconv/
H A Diconv.c251 snprintf(buf, sizeof(buf), "%d.%d", in PHP_INI_END()
253 version = buf; in PHP_INI_END()
708 out_p = buf; in _php_iconv_strlen()
829 out_p = buf; in _php_iconv_substr()
961 out_p = buf; in _php_iconv_strpos()
991 if (_php_iconv_memequal(buf, ndl_buf_p, sizeof(buf))) { in _php_iconv_strpos()
1019 if (_php_iconv_memequal(buf, &ndl_buf[i], sizeof(buf))) { in _php_iconv_strpos()
1032 if (_php_iconv_memequal(buf, ndl_buf_p, sizeof(buf))) { in _php_iconv_strpos()
1062 if (_php_iconv_memequal(buf, &ndl_buf[i], sizeof(buf))) { in _php_iconv_strpos()
1206 out_p = buf; in _php_iconv_mime_encode()
[all …]
/PHP-5.5/ext/hash/
H A Dphp_hash_fnv.h67 static php_hash_uint32 fnv_32_buf(void *buf, size_t len, php_hash_uint32 hval, int alternate);
68 static php_hash_uint64 fnv_64_buf(void *buf, size_t len, php_hash_uint64 hval, int alternate);
H A Dphp_hash_joaat.h32 static php_hash_uint32 joaat_buf(void *buf, size_t len, php_hash_uint32 hval);
H A Dhash.c160 char buf[1024]; in php_hash_do_hash() local
163 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in php_hash_do_hash()
164 ops->hash_update(context, (unsigned char *) buf, n); in php_hash_do_hash()
281 char buf[1024]; in php_hash_do_hash_hmac() local
285 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in php_hash_do_hash_hmac()
286 ops->hash_update(context, (unsigned char *) buf, n); in php_hash_do_hash_hmac()
439 char buf[1024]; in PHP_FUNCTION() local
446 if ((n = php_stream_read(stream, buf, toread)) <= 0) { in PHP_FUNCTION()
467 char *filename, buf[1024]; in PHP_FUNCTION() local
483 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_FUNCTION()
[all …]
H A Dhash_fnv.c151 fnv_32_buf(void *buf, size_t len, php_hash_uint32 hval, int alternate) in fnv_32_buf() argument
153 unsigned char *bp = (unsigned char *)buf; /* start of buffer */ in fnv_32_buf()
193 fnv_64_buf(void *buf, size_t len, php_hash_uint64 hval, int alternate) in fnv_64_buf() argument
195 unsigned char *bp = (unsigned char *)buf; /* start of buffer */ in fnv_64_buf()
H A Dhash_joaat.c74 joaat_buf(void *buf, size_t len, php_hash_uint32 hval) in joaat_buf() argument
77 unsigned char *input = (unsigned char *)buf; in joaat_buf()
H A Dhash_md.c141 unsigned char buf[1024]; in PHP_NAMED_FUNCTION() local
158 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_NAMED_FUNCTION()
159 PHP_MD5Update(&context, buf, n); in PHP_NAMED_FUNCTION()
657 PHP_HASH_API void PHP_MD2Update(PHP_MD2_CTX *context, const unsigned char *buf, unsigned int len) in PHP_MD2Update() argument
659 const unsigned char *p = buf, *e = buf + len; in PHP_MD2Update()
H A Dhash_sha.c125 unsigned char buf[1024]; in PHP_FUNCTION() local
142 while ((n = php_stream_read(stream, buf, sizeof(buf))) > 0) { in PHP_FUNCTION()
143 PHP_SHA1Update(&context, buf, n); in PHP_FUNCTION()
H A Dphp_hash.h34 typedef void (*php_hash_update_func_t)(void *context, const unsigned char *buf, unsigned int count);

Completed in 168 milliseconds

12345678910>>...14