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

12

/PHP_5_3/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.c548 int str_len = 0; local
558 &object, Collator_ce_ptr, &str, &str_len ) == FAILURE )
584 &ustr, &ustr_len, str, str_len, COLLATOR_ERROR_CODE_P( co ) );
/PHP_5_3/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_3/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);
681 grapheme_extract_charcount_iter(UBreakIterator *bi, int32_t csize, unsigned char *pstr, int32_t str_len) argument
702 U8_FWD_N(pstr, ret_pos, str_len, pos - prev_pos);
718 grapheme_extract_bytecount_iter(UBreakIterator *bi, int32_t bsize, unsigned char *pstr, int32_t str_len) argument
731 U8_FWD_N(pstr, ret_pos, str_len, po
752 grapheme_extract_count_iter(UBreakIterator *bi, int32_t size, unsigned char *pstr, int32_t str_len) argument
793 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_3/ext/curl/
H A Dphp_curl.h123 size_t str_len; member in struct:_php_curl_send_headers
/PHP_5_3/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_3/ext/filter/
H A Dlogical_filters.c69 static int php_filter_parse_int(const char *str, unsigned int str_len, long *ret TSRMLS_DC) { /* {{{ */ argument
72 const char *end = str + str_len;
116 static int php_filter_parse_octal(const char *str, unsigned int str_len, long *ret TSRMLS_DC) { /* {{{ */ argument
118 const char *end = str + str_len;
139 static int php_filter_parse_hex(const char *str, unsigned int str_len, long *ret TSRMLS_DC) { /* {{{ */ argument
141 const char *end = str + str_len;
553 static int _php_filter_validate_ipv4(char *str, int str_len, int *ip) /* {{{ */ argument
555 const char *end = str + str_len;
588 static int _php_filter_validate_ipv6(char *str, int str_len TSRMLS_DC) /* {{{ */
598 if (!memchr(str, ':', str_len)) {
[all...]
/PHP_5_3/ext/hash/
H A Dhash.c573 uint str_len; local
579 (type = zend_hash_get_current_key_ex(&php_hash_hashtable, &str, &str_len, &idx, 0, &pos)) != HASH_KEY_NON_EXISTANT;
581 add_next_index_stringl(return_value, str, str_len-1, 1);
/PHP_5_3/ext/json/
H A Djson.c489 PHP_JSON_API void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, long depth TSRMLS_DC) /* {{{ */ argument
496 utf16 = (unsigned short *) safe_emalloc((str_len+1), sizeof(unsigned short), 1);
498 utf16_len = utf8_to_utf16(utf16, str, str_len);
525 if (str_len == 4) {
533 } else if (str_len == 5 && !strcasecmp(str, "false")) {
537 if ((type = is_numeric_string(str, str_len, &p, &d, 0)) != 0) {
585 int str_len; local
589 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|bl", &str, &str_len, &assoc, &depth) == FAILURE) {
595 if (!str_len) {
599 php_json_decode(return_value, str, str_len, asso
[all...]
/PHP_5_3/ext/pdo/
H A Dpdo_dbh.c1158 int str_len; local
1163 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, &paramtype)) {
1174 if (dbh->methods->quoter(dbh, str, str_len, &qstr, &qlen, paramtype TSRMLS_CC)) {
/PHP_5_3/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_3/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.c154 int str_len, salt_in_len = 0; local
162 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &str, &str_len, &salt_in, &salt_in_len) == FAILURE) {
H A Ddir.c291 int ret, str_len; local
293 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
322 int ret, str_len; local
324 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
328 if (strlen(str) != str_len) {
H A Dmail.c81 int j, str_len; local
83 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
87 for (j = 0; j < str_len; j++) {
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 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.c374 int str_len; local
378 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len, &key) == FAILURE) {
382 resource = php_url_parse_ex(str, str_len);
H A Dquot_print.c263 int str_len; local
266 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) != SUCCESS) {
270 if (!str_len) {
274 new_str = (char *)php_quot_print_encode((unsigned char *)str, (size_t)str_len, &new_str_len);
H A Diptc.c309 int str_len; local
312 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) != SUCCESS) {
318 while (inx < str_len) { /* find 1st tag */
326 while (inx < str_len) {
331 if ((inx + 4) >= str_len)
338 if((inx+6) >= str_len) {
349 if ((len < 0) || (len > str_len) || (inx + len) > str_len) {
/PHP_5_3/main/streams/
H A Dxp_socket.c528 static inline char *parse_ip_address_ex(const char *str, int str_len, int *portno, int get_err, char **err TSRMLS_DC) argument
536 if (*(str) == '[' && str_len > 1) {
538 p = memchr(str + 1, ']', str_len - 2);
549 if (str_len) {
550 colon = memchr(str, ':', str_len - 1);
/PHP_5_3/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_3/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) {
H A Dsapi_apache2.c521 uint str_len; local
525 zend_hash_get_current_key_ex(&c->config, &str, &str_len, NULL, 0, NULL) == HASH_KEY_IS_STRING;
528 zend_restore_ini_entry(str, str_len, ZEND_INI_STAGE_SHUTDOWN);

Completed in 72 milliseconds

12