Searched defs:str_len (Results 1 - 25 of 58) sorted by relevance

123

/PHP_5_5/ext/intl/collator/
H A Dcollator_convert.c194 int str_len = 0; local
198 intl_convert_utf16_to_utf8( &str, &str_len,
204 ZVAL_STRINGL( utf8_zval, str, str_len, FALSE );
H A Dcollator_sort.c549 int str_len = 0; local
559 &object, Collator_ce_ptr, &str, &str_len ) == FAILURE )
585 &ustr, &ustr_len, str, str_len, COLLATOR_ERROR_CODE_P( co ) );
/PHP_5_5/ext/intl/formatter/
H A Dformatter_parse.c43 int str_len; local
54 &object, NumberFormatter_ce_ptr, &str, &str_len, &type, &zposition ) == FAILURE )
66 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo));
131 int str_len; local
139 &object, NumberFormatter_ce_ptr, &str, &str_len, &zcurrency, &zposition ) == FAILURE )
151 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo));
/PHP_5_5/ext/intl/grapheme/
H A Dgrapheme_string.c403 int str_len, sub_str_len, ustr_len; local
413 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|l", (char **)&str, &str_len, &lstart, &length) == FAILURE) {
421 if ( OUTSIDE_STRING(lstart, str_len) ) {
433 if ( grapheme_ascii_check(str, str_len) >= 0 ) {
434 grapheme_substr_ascii((char *)str, str_len, start, length, ZEND_NUM_ARGS(), (char **) &sub_str, &sub_str_len);
446 intl_convert_utf8_to_utf16(&ustr, &ustr_len, (char *)str, str_len, &status);
685 grapheme_extract_charcount_iter(UBreakIterator *bi, int32_t csize, unsigned char *pstr, int32_t str_len) argument
706 U8_FWD_N(pstr, ret_pos, str_len, pos - prev_pos);
722 grapheme_extract_bytecount_iter(UBreakIterator *bi, int32_t bsize, unsigned char *pstr, int32_t str_len) argument
735 U8_FWD_N(pstr, ret_pos, str_len, po
756 grapheme_extract_count_iter(UBreakIterator *bi, int32_t size, unsigned char *pstr, int32_t str_len) argument
797 int str_len, ustr_len; local
[all...]
H A Dgrapheme_util.c52 grapheme_intl_case_fold(UChar** ptr_to_free, UChar **str, int32_t *str_len, UErrorCode *pstatus ) argument
58 dest_len = (*str_len) + ( *str_len / 10 );
62 size_required = u_strFoldCase(dest, dest_len, *str, *str_len, U_FOLD_CASE_DEFAULT, pstatus);
71 size_required = u_strFoldCase(dest, dest_len, *str, *str_len, U_FOLD_CASE_DEFAULT, pstatus);
84 *str_len = dest_len;
92 grapheme_substr_ascii(char *str, int str_len, int f, int l, int argc, char **sub_str, int *sub_str_len) argument
97 if ((l < 0 && -l > str_len)) {
99 } else if (l > str_len) {
100 l = str_len;
[all...]
/PHP_5_5/ext/intl/
H A Dintl_convertcpp.cpp28 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status) argument
32 int32_t capacity = str_len + 1;
39 str, str_len, U_SENTINEL /* no substitution */, NULL,
/PHP_5_5/ext/intl/msgformat/
H A Dmsgformat_helpers.cpp391 uint str_len; local
397 args, &str_index, &str_len, &num_index, 0, &pos),
422 intl_stringFromChar(key, str_index, str_len-1, &err.code);
/PHP_5_5/ext/intl/timezone/
H A Dtimezone_class.cpp291 int str_len; local
309 intl_convert_utf16_to_utf8(&str, &str_len,
314 add_assoc_stringl_ex(&zv, "id", sizeof("id"), str, str_len, 0);
/PHP_5_5/ext/intl/transliterator/
H A Dtransliterator_methods.c304 int str_len; local
321 &arg1, &str, &str_len, &start, &limit ) == FAILURE )
357 &str, &str_len, &start, &limit ) == FAILURE )
384 intl_convert_utf8_to_utf16( &ustr, &ustr_len, str, str_len,
/PHP_5_5/ext/ereg/
H A Dereg.c635 int spliton_len, str_len; local
638 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", &spliton, &spliton_len, &str, &str_len, &count) == FAILURE) {
647 endp = strp + str_len;
/PHP_5_5/ext/json/
H A Djson.c664 PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, int str_len, int options, long depth TSRMLS_DC) /* {{{ */ argument
671 utf16 = (unsigned short *) safe_emalloc((str_len+1), sizeof(unsigned short), 1);
673 utf16_len = json_utf8_to_utf16(utf16, str, str_len);
700 if (str_len == 4) {
708 } else if (str_len == 5 && !strcasecmp(str, "false")) {
712 if ((type = is_numeric_string_ex(str, str_len, &p, &d, 0, &overflow_info)) != 0) {
725 for (i = (str[0] == '-' ? 1 : 0); i < str_len; i++) {
737 RETVAL_STRINGL(str, str_len, 1);
793 int str_len; local
798 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|bll", &str, &str_len,
[all...]
H A Dphp_json.h53 PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, int str_len, int options, long depth TSRMLS_DC);
77 static inline void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, long depth TSRMLS_DC) argument
79 php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth TSRMLS_CC);
/PHP_5_5/ext/recode/
H A Drecode.c149 int req_len, str_len; local
152 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss", &req, &req_len, &str, &str_len) == FAILURE) {
168 recode_buffer_to_buffer(request, str, str_len, &r, &r_len, &r_alen);
/PHP_5_5/ext/standard/
H A Dbase64.c224 int str_len, ret_length; local
226 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
229 result = php_base64_encode((unsigned char*)str, str_len, &ret_length);
245 int str_len, ret_length; local
247 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &str, &str_len, &strict) == FAILURE) {
250 result = php_base64_decode_ex((unsigned char*)str, str_len, &ret_length, strict);
H A Dcrypt.c262 int str_len, salt_in_len = 0; local
269 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &str, &str_len, &salt_in, &salt_in_len) == FAILURE) {
294 if (php_crypt(str, str_len, salt, salt_in_len, &result) == FAILURE) {
H A Ddir.c295 int ret, str_len; local
297 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
326 int ret, str_len; local
328 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &str, &str_len) == FAILURE) {
H A Diptc.c303 int str_len; local
306 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) != SUCCESS) {
312 while (inx < str_len) { /* find 1st tag */
320 while (inx < str_len) {
325 if ((inx + 4) >= str_len)
340 if ((len < 0) || (len > str_len) || (inx + len) > str_len) {
H A Dmetaphone.c36 int str_len; local
39 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len,
44 if (metaphone((unsigned char *)str, str_len, phones, &result, 1) == 0) {
H A Dpassword.c82 static zend_bool php_password_salt_to64(const char *str, const size_t str_len, const size_t out_len, char *ret) /* {{{ */ argument
87 if ((int) str_len < 0) {
90 buffer = php_base64_encode((unsigned char*) str, (int) str_len, (int*) &ret_len);
H A Dquot_print.c266 int str_len; local
269 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) != SUCCESS) {
273 if (!str_len) {
277 new_str = (char *)php_quot_print_encode((unsigned char *)str, (size_t)str_len, &new_str_len);
H A Dsoundex.c32 int i, _small, str_len, code, last; local
63 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
66 if (str_len == 0) {
72 for (i = 0, _small = 0; i < str_len && _small < 4; i++) {
H A Durl.c378 int str_len; local
382 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, &key) == FAILURE) {
386 resource = php_url_parse_ex(str, str_len);
H A Dmail.c83 int j, str_len; local
85 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
89 for (j = 0; j < str_len; j++) {
/PHP_5_5/sapi/apache2filter/
H A Dapache_config.c127 uint str_len; local
135 zend_hash_get_current_key_ex(&d->config, &str, &str_len,
140 if (zend_hash_find(&n->config, str, str_len, (void **) &pe) == SUCCESS) {
143 zend_hash_update(&n->config, str, str_len, data, sizeof(*data), NULL);
166 uint str_len; local
170 zend_hash_get_current_key_ex(&d->config, &str, &str_len, NULL, 0,
175 if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, data->status, data->htaccess?PHP_INI_STAGE_HTACCESS:PHP_INI_STAGE_ACTIVATE) == FAILURE) {
/PHP_5_5/sapi/apache2handler/
H A Dapache_config.c145 uint str_len; local
157 zend_hash_get_current_key_ex(&d->config, &str, &str_len,
162 if (zend_hash_find(&n->config, str, str_len, (void **) &pe) == SUCCESS) {
166 zend_hash_update(&n->config, str, str_len, data, sizeof(*data), NULL);
188 uint str_len; local
192 zend_hash_get_current_key_ex(&d->config, &str, &str_len, NULL, 0,
197 if (zend_alter_ini_entry(str, str_len, data->value, data->value_len, data->status, data->htaccess?PHP_INI_STAGE_HTACCESS:PHP_INI_STAGE_ACTIVATE) == FAILURE) {

Completed in 25 milliseconds

123