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

123

/PHP_TRUNK/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_TRUNK/ext/intl/grapheme/
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...]
H A Dgrapheme_string.c403 size_t str_len; local
415 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|l", (char **)&str, &str_len, &lstart, &length) == FAILURE) {
423 if ( OUTSIDE_STRING(lstart, str_len) ) {
435 if ( grapheme_ascii_check(str, str_len) >= 0 ) {
436 grapheme_substr_ascii((char *)str, str_len, start, length, ZEND_NUM_ARGS(), (char **) &sub_str, &sub_str_len);
449 intl_convert_utf8_to_utf16(&ustr, &ustr_len, (char *)str, str_len, &status);
708 grapheme_extract_charcount_iter(UBreakIterator *bi, int32_t csize, unsigned char *pstr, int32_t str_len) argument
729 U8_FWD_N(pstr, ret_pos, str_len, pos - prev_pos);
745 grapheme_extract_bytecount_iter(UBreakIterator *bi, int32_t bsize, unsigned char *pstr, int32_t str_len) argument
758 U8_FWD_N(pstr, ret_pos, str_len, po
779 grapheme_extract_count_iter(UBreakIterator *bi, int32_t size, unsigned char *pstr, int32_t str_len) argument
820 size_t str_len; local
[all...]
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_watch.h70 size_t str_len; member in struct:_phpdbg_watchpoint_t
H A Dphpdbg_watch.c108 zend_hash_add(&PHPDBG_G(watchpoints), watch->str, watch->str_len, &watch, sizeof(phpdbg_watchpoint_t *), NULL);
193 new_watch->str_len = asprintf(&new_watch->str, "%.*s%s%s%s", (int)watch->str_len, watch->str, Z_TYPE_P(watch->addr.zv) == IS_ARRAY?"[":"->", phpdbg_get_property_key(new_watch->name_in_parent), Z_TYPE_P(watch->addr.zv) == IS_ARRAY?"]":"");
208 new_watch->str_len = asprintf(&new_watch->str, "%.*s[]", (int)watch->str_len, watch->str);
228 int str_len; local
239 str_len = asprintf(&str, "%.*s%s%s%s", (int)watch->parent->str_len, watch->parent->str, Z_TYPE_P(watch->parent->addr.zv) == IS_ARRAY?"[":"->", phpdbg_get_property_key(Z_STRVAL(key)), Z_TYPE_P(watch->parent->addr.zv) == IS_ARRAY?"]":"");
241 str_len = asprintf(&str, "%.*s%s%li%s", (int)watch->parent->str_len, watc
[all...]
/PHP_TRUNK/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 ((pe = zend_hash_find(&n->config, str, str_len) != NULL) != NULL) {
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_TRUNK/sapi/apache2handler/
H A Dapache_config.c146 uint str_len; local
160 zend_hash_get_current_key_ex(&d->config, &str, &str_len,
165 if (zend_hash_find(&n->config, str, str_len, (void **) &pe) == SUCCESS) {
169 zend_hash_update(&n->config, str, str_len, data, sizeof(*data), NULL);
/PHP_TRUNK/ext/filter/
H A Dlogical_filters.c83 static int php_filter_parse_int(const char *str, unsigned int str_len, zend_long *ret TSRMLS_DC) { /* {{{ */ argument
86 const char *end = str + str_len;
135 static int php_filter_parse_octal(const char *str, unsigned int str_len, zend_long *ret TSRMLS_DC) { /* {{{ */ argument
137 const char *end = str + str_len;
158 static int php_filter_parse_hex(const char *str, unsigned int str_len, zend_long *ret TSRMLS_DC) { /* {{{ */ argument
160 const char *end = str + str_len;
567 static int _php_filter_validate_ipv4(char *str, int str_len, int *ip) /* {{{ */ argument
569 const char *end = str + str_len;
602 static int _php_filter_validate_ipv6(char *str, int str_len TSRMLS_DC) /* {{{ */
612 if (!memchr(str, ':', str_len)) {
[all...]
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_convert.c174 int str_len = 0; local
178 intl_convert_utf16_to_utf8( &str, &str_len,
184 ZVAL_STRINGL( utf8_zval, str, str_len);
/PHP_TRUNK/ext/intl/dateformat/
H A Ddateformat_attrcpp.cpp48 int str_len; local
62 intl_charFromString(res, &str, &str_len, &INTL_DATA_ERROR_CODE(dfo));
65 RETVAL_STRINGL(str, str_len);
/PHP_TRUNK/ext/intl/timezone/
H A Dtimezone_class.cpp90 int str_len; local
92 if (intl_charFromString(id, &str, &str_len, &INTL_ERROR_CODE(*outside_error)) == FAILURE) {
98 ZVAL_STRINGL(&arg, str, str_len);
295 int str_len; local
317 intl_convert_utf16_to_utf8(&str, &str_len,
322 ZVAL_STRINGL(&zv, str, str_len);
H A Dtimezone_methods.cpp319 int str_len; local
320 intl_convert_utf16_to_utf8(&str, &str_len, result.getBuffer(), result.length(), &status);
323 RETVAL_STRINGL(str, str_len);
407 int str_len; local
409 intl_convert_utf16_to_utf8(&str, &str_len, result.getBuffer(), result.length(), &status);
412 RETVAL_STRINGL(str, str_len);
583 int str_len; local
584 intl_convert_utf16_to_utf8(&str, &str_len, result.getBuffer(), result.length(), TIMEZONE_ERROR_CODE_P(to));
588 RETVAL_STRINGL(str, str_len);
/PHP_TRUNK/main/streams/
H A Dxp_socket.c541 static inline char *parse_ip_address_ex(const char *str, size_t str_len, int *portno, int get_err, zend_string **err TSRMLS_DC) argument
549 if (*(str) == '[' && str_len > 1) {
551 p = memchr(str + 1, ']', str_len - 2);
562 if (str_len) {
563 colon = memchr(str, ':', str_len - 1);
/PHP_TRUNK/ext/intl/breakiterator/
H A Drulebasedbreakiterator_methods.cpp126 int str_len; local
129 if (intl_charFromString(rules, &str, &str_len, BREAKITER_ERROR_CODE_P(bio)) == FAILURE)
136 RETVAL_STRINGL(str, str_len);
/PHP_TRUNK/ext/intl/formatter/
H A Dformatter_parse.c43 size_t 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));
135 size_t str_len; local
143 &object, NumberFormatter_ce_ptr, &str, &str_len, &zcurrency, &zposition ) == FAILURE )
155 intl_convert_utf8_to_utf16(&sstr, &sstr_len, str, str_len, &INTL_DATA_ERROR_CODE(nfo));
/PHP_TRUNK/ext/intl/transliterator/
H A Dtransliterator_methods.c306 size_t str_len; local
324 &arg1, &str, &str_len, &start, &limit ) == FAILURE )
359 &str, &str_len, &start, &limit ) == FAILURE )
386 intl_convert_utf8_to_utf16( &ustr, &ustr_len, str, str_len,
/PHP_TRUNK/ext/json/
H A Dphp_json.h53 PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, size_t str_len, zend_long options, zend_long depth TSRMLS_DC);
77 static inline void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, zend_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_TRUNK/ext/recode/
H A Drecode.c149 size_t 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_TRUNK/ext/standard/
H A Dbase64.c219 size_t str_len; local
222 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
225 result = php_base64_encode((unsigned char*)str, str_len);
240 size_t str_len; local
243 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &str, &str_len, &strict) == FAILURE) {
246 result = php_base64_decode_ex((unsigned char*)str, str_len, strict);
H A Dcrypt.c262 size_t str_len, salt_in_len = 0; local
271 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &str, &str_len, &salt_in, &salt_in_len) == FAILURE) {
298 if ((result = php_crypt(str, str_len, salt, salt_in_len)) == NULL) {
H A Ddir.c296 size_t str_len; local
298 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
328 size_t str_len; local
330 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &str, &str_len) == FAILURE) {
H A Dpassword.c82 static int php_password_salt_to64(const char *str, const size_t str_len, const size_t out_len, char *ret) /* {{{ */ argument
86 if ((int) str_len < 0) {
89 buffer = php_base64_encode((unsigned char*) str, (int) str_len);
H A Dsoundex.c32 size_t 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 size_t 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 size_t 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++) {

Completed in 21 milliseconds

123