Searched refs:str_len (Results 1 - 25 of 67) sorted by relevance

123

/PHP_TRUNK/ext/intl/grapheme/
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...]
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_util.h26 void grapheme_substr_ascii(char *str, int32_t str_len, int32_t f, int32_t l, int argc, char **sub_str, int *sub_str_len);
/PHP_TRUNK/Zend/
H A Dzend_ini_parser.y52 int str_len;
85 str_len = zend_sprintf(str_result, "%d", i_result);
86 ZVAL_PSTRINGL(result, str_result, str_len);
H A Dzend.h250 #define ZEND_WRITE(str, str_len) zend_write((str), (str_len))
251 #define ZEND_WRITE_EX(str, str_len) write_func((str), (str_len))
/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/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/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/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/
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,
H A Dintl_convertcpp.h28 int intl_stringFromChar(UnicodeString &ret, char *str, int32_t str_len, UErrorCode *status);
/PHP_TRUNK/ext/intl/timezone/
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/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.c215 size_t str_len; local
218 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
221 result = php_base64_encode((unsigned char*)str, str_len);
236 size_t str_len; local
239 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &str, &str_len, &strict) == FAILURE) {
242 result = php_base64_decode_ex((unsigned char*)str, str_len, strict);
H A Dhtml.h60 PHPAPI unsigned int php_next_utf8_char(const unsigned char *str, size_t str_len, size_t *cursor, int *status);
H A Dinfo.h67 PHPAPI void php_info_html_esc_write(char *string, int str_len TSRMLS_DC);
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 Diptc.c305 size_t str_len; local
308 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) != SUCCESS) {
314 while (inx < str_len) { /* find 1st tag */
322 while (inx < str_len) {
327 if ((inx + 4) >= str_len)
334 if((inx+6) >= str_len) {
345 if ((len < 0) || (len > str_len) || (inx + len) > str_len) {
/PHP_TRUNK/main/
H A Dphp_output.h162 #define PHPWRITE(str, str_len) php_output_write((str), (str_len) TSRMLS_CC)
163 #define PHPWRITE_H(str, str_len) php_output_write_unbuffered((str), (str_len) TSRMLS_CC)
/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/phpdbg/
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...]
H A Dphpdbg_watch.h70 size_t str_len; member in struct:_phpdbg_watchpoint_t
/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);
H A Djson.c667 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) /* {{{ */ argument
673 utf16 = (unsigned short *) safe_emalloc((str_len+1), sizeof(unsigned short), 1);
675 utf16_len = json_utf8_to_utf16(utf16, str, str_len);
696 int trim_len = str_len;
802 size_t str_len; local
807 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|bll", &str, &str_len, &assoc, &depth, &options) == FAILURE) {
813 if (!str_len) {
824 php_json_decode_ex(return_value, str, str_len, options, depth TSRMLS_CC);
/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...]

Completed in 37 milliseconds

123