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

123

/PHP_5_4/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);
447 intl_convert_utf8_to_utf16(&ustr, &ustr_len, (char *)str, str_len, &status);
701 grapheme_extract_charcount_iter(UBreakIterator *bi, int32_t csize, unsigned char *pstr, int32_t str_len) argument
722 U8_FWD_N(pstr, ret_pos, str_len, pos - prev_pos);
738 grapheme_extract_bytecount_iter(UBreakIterator *bi, int32_t bsize, unsigned char *pstr, int32_t str_len) argument
751 U8_FWD_N(pstr, ret_pos, str_len, po
772 grapheme_extract_count_iter(UBreakIterator *bi, int32_t size, unsigned char *pstr, int32_t str_len) argument
813 int str_len, ustr_len; local
[all...]
H A Dgrapheme_util.c52 void grapheme_substr_ascii(char *str, int str_len, int f, int l, int argc, char **sub_str, int *sub_str_len) argument
57 if ((l < 0 && -l > str_len)) {
59 } else if (l > str_len) {
60 l = str_len;
63 l = str_len;
66 if (f > str_len || (f < 0 && -f > str_len)) {
70 if (l < 0 && (l + str_len - f) < 0) {
78 f = str_len + f;
89 l = (str_len
[all...]
/PHP_5_4/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_4/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_4/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_4/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 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 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 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 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)
332 if((inx+6) >= str_len) {
343 if ((len < 0) || (len > str_len) || (inx + len) > str_len) {
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 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);
/PHP_5_4/ext/xsl/
H A Dxsltprocessor.c113 int str_len; local
115 str_len = xmlStrlen(string) + 3;
122 value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0);
123 snprintf(value, str_len, "'%s'", string);
125 value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0);
126 snprintf(value, str_len, "\"%s\"", string);
/PHP_5_4/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_4/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.c519 uint str_len; local
523 zend_hash_get_current_key_ex(&c->config, &str, &str_len, NULL, 0, NULL) == HASH_KEY_IS_STRING;
526 zend_restore_ini_entry(str, str_len, ZEND_INI_STAGE_SHUTDOWN);
/PHP_5_4/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_4/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;
121 static int php_filter_parse_octal(const char *str, unsigned int str_len, long *ret TSRMLS_DC) { /* {{{ */ argument
123 const char *end = str + str_len;
144 static int php_filter_parse_hex(const char *str, unsigned int str_len, long *ret TSRMLS_DC) { /* {{{ */ argument
146 const char *end = str + str_len;
557 static int _php_filter_validate_ipv4(char *str, int str_len, int *ip) /* {{{ */ argument
559 const char *end = str + str_len;
592 static int _php_filter_validate_ipv6(char *str, int str_len TSRMLS_DC) /* {{{ */
602 if (!memchr(str, ':', str_len)) {
[all...]
/PHP_5_4/ext/json/
H A Dphp_json.h52 PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, int str_len, int options, long depth TSRMLS_DC);
75 static inline void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, long depth TSRMLS_DC) argument
77 php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth TSRMLS_CC);
H A Djson.c655 PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, int str_len, int options, long depth TSRMLS_DC) /* {{{ */ argument
662 utf16 = (unsigned short *) safe_emalloc((str_len+1), sizeof(unsigned short), 1);
664 utf16_len = json_utf8_to_utf16(utf16, str, str_len);
690 int trim_len = str_len;
791 int str_len; local
796 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|bll", &str, &str_len, &assoc, &depth, &options) == FAILURE) {
802 if (!str_len) {
813 php_json_decode_ex(return_value, str, str_len, options, depth TSRMLS_CC);
/PHP_5_4/main/streams/
H A Dxp_socket.c524 static inline char *parse_ip_address_ex(const char *str, int str_len, int *portno, int get_err, char **err TSRMLS_DC) argument
532 if (*(str) == '[' && str_len > 1) {
534 p = memchr(str + 1, ']', str_len - 2);
545 if (str_len) {
546 colon = memchr(str, ':', str_len - 1);
/PHP_5_4/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));
134 int str_len; local
142 &object, NumberFormatter_ce_ptr, &str, &str_len, &zcurrency, &zposition ) == FAILURE )
154 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo));

Completed in 49 milliseconds

123