Home
last modified time | relevance | path

Searched refs:ustr_len (Results 1 – 4 of 4) sorted by relevance

/PHP-8.1/ext/intl/transliterator/
H A Dtransliterator_methods.c271 int32_t ustr_len = 0, in PHP_FUNCTION() local
339 intl_convert_utf8_to_utf16(&ustr, &ustr_len, str, str_len, TRANSLITERATOR_ERROR_CODE_P(to)); in PHP_FUNCTION()
344 if( ( start > ustr_len ) || (( limit != -1 ) && (limit > ustr_len ) ) ) in PHP_FUNCTION()
350 "(in this case, %d)", (int) ustr_len ); in PHP_FUNCTION()
360 uresult = safe_emalloc( ustr_len, sizeof( UChar ), 1 * sizeof( UChar ) ); in PHP_FUNCTION()
361 capacity = ustr_len + 1; in PHP_FUNCTION()
365 int32_t temp_limit = ( limit == -1 ? ustr_len : (int32_t) limit ); in PHP_FUNCTION()
366 memcpy( uresult, ustr, ustr_len * sizeof( UChar ) ); in PHP_FUNCTION()
367 uresult_len = ustr_len; in PHP_FUNCTION()
/PHP-8.1/ext/intl/collator/
H A Dcollator_convert.c180 int32_t ustr_len = 0; in collator_convert_zstr_utf8_to_utf16() local
185 &ustr, &ustr_len, in collator_convert_zstr_utf8_to_utf16()
194 zend_string *zstr = zend_string_init((char *) ustr, UBYTES(ustr_len), 0); in collator_convert_zstr_utf8_to_utf16()
207 int32_t ustr_len = 0; in collator_convert_object_to_string() local
233 &ustr, &ustr_len, in collator_convert_object_to_string()
244 ZVAL_STRINGL( zstr, (char*)ustr, UBYTES(ustr_len)); in collator_convert_object_to_string()
H A Dcollator_sort.c504 int32_t ustr_len = 0; in PHP_FUNCTION() local
535 &ustr, &ustr_len, str, str_len, COLLATOR_ERROR_CODE_P( co ) ); in PHP_FUNCTION()
550 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, NULL, 0); in PHP_FUNCTION()
556 key_len = ucol_getSortKey(co->ucoll, ustr, ustr_len, (uint8_t*)ZSTR_VAL(key_str), key_len); in PHP_FUNCTION()
/PHP-8.1/ext/intl/grapheme/
H A Dgrapheme_string.c337 int32_t ustr_len; in PHP_FUNCTION() local
384 ustr_len = 0; in PHP_FUNCTION()
386 intl_convert_utf8_to_utf16(&ustr, &ustr_len, str, str_len, &status); in PHP_FUNCTION()
406 ubrk_setText(bi, ustr, ustr_len, &status); in PHP_FUNCTION()
449 …u8_sub_str = intl_convert_utf16_to_utf8(ustr + sub_str_start_pos, ustr_len - sub_str_start_pos, &s… in PHP_FUNCTION()
511 sub_str_end_pos = ustr_len; in PHP_FUNCTION()

Completed in 17 milliseconds