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

123

/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/grapheme/
H A Dgrapheme_util.h27 void grapheme_substr_ascii(char *str, size_t str_len, int32_t f, int32_t l, char **sub_str, int32_t *sub_str_len);
H A Dgrapheme_util.c52 void grapheme_substr_ascii(char *str, size_t str_len, int32_t f, int32_t l, char **sub_str, int32_t *sub_str_len) argument
54 int32_t str_len2 = (int32_t)str_len; /* in order to avoid signed/unsigned problems */
57 if(str_len > INT32_MAX) {
102 l = str_len - f;
H A Dgrapheme_string.c375 size_t str_len; local
388 if (zend_parse_parameters(ZEND_NUM_ARGS(), "sl|l!", (char **)&str, &str_len, &lstart, &length, &no_length) == FAILURE) {
394 if ( OUTSIDE_STRING(lstart, str_len)) {
403 length = str_len;
414 if ( grapheme_ascii_check((unsigned char *)str, str_len) >= 0 ) {
416 grapheme_substr_ascii(str, str_len, start, (int32_t)length, &sub_str, &asub_str_len);
429 intl_convert_utf8_to_utf16(&ustr, &ustr_len, str, str_len, &status);
484 /* OK to convert here since if str_len were big, convert above would fail */
485 if (length >= (int32_t)str_len) {
689 grapheme_extract_charcount_iter(UBreakIterator *bi, int32_t csize, unsigned char *pstr, int32_t str_len) argument
726 grapheme_extract_bytecount_iter(UBreakIterator *bi, int32_t bsize, unsigned char *pstr, int32_t str_len) argument
760 grapheme_extract_count_iter(UBreakIterator *bi, int32_t size, unsigned char *pstr, int32_t str_len) argument
801 size_t str_len; local
[all...]
/PHP_TRUNK/ext/intl/
H A Dintl_convertcpp.h28 int intl_stringFromChar(UnicodeString &ret, char *str, size_t str_len, UErrorCode *status);
H A Dintl_convertcpp.cpp28 int intl_stringFromChar(UnicodeString &ret, char *str, size_t str_len, UErrorCode *status) argument
30 if(str_len > INT32_MAX) {
37 int32_t capacity = (int32_t)str_len + 1;
44 str, str_len, U_SENTINEL /* no substitution */, NULL,
/PHP_TRUNK/ext/intl/timezone/
H A Dtimezone_class.cpp90 size_t 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 size_t str_len; local
317 intl_convert_utf16_to_utf8(&str, &str_len,
322 ZVAL_STRINGL(&zv, str, str_len);
H A Dtimezone_methods.cpp309 size_t str_len; local
310 intl_convert_utf16_to_utf8(&str, &str_len, result.getBuffer(), result.length(), &status);
313 RETVAL_STRINGL(str, str_len);
397 size_t str_len; local
399 intl_convert_utf16_to_utf8(&str, &str_len, result.getBuffer(), result.length(), &status);
402 RETVAL_STRINGL(str, str_len);
573 size_t str_len; local
574 intl_convert_utf16_to_utf8(&str, &str_len, result.getBuffer(), result.length(), TIMEZONE_ERROR_CODE_P(to));
578 RETVAL_STRINGL(str, str_len);
/PHP_TRUNK/ext/standard/
H A Dbase64.c215 size_t str_len; local
218 if (zend_parse_parameters(ZEND_NUM_ARGS(), "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(), "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);
H A Dsoundex.c32 size_t i, _small, str_len, code, last; local
63 if (zend_parse_parameters(ZEND_NUM_ARGS(), "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(), "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/ext/filter/
H A Dlogical_filters.c84 static int _php_filter_validate_ipv6(char *str, size_t str_len);
86 static int php_filter_parse_int(const char *str, size_t str_len, zend_long *ret) { /* {{{ */ argument
89 const char *end = str + str_len;
138 static int php_filter_parse_octal(const char *str, size_t str_len, zend_long *ret) { /* {{{ */ argument
140 const char *end = str + str_len;
161 static int php_filter_parse_hex(const char *str, size_t str_len, zend_long *ret) { /* {{{ */ argument
163 const char *end = str + str_len;
632 static int _php_filter_validate_ipv4(char *str, size_t str_len, int *ip) /* {{{ */ argument
634 const char *end = str + str_len;
667 static int _php_filter_validate_ipv6(char *str, size_t str_len) /* {{{ */ argument
[all...]
/PHP_TRUNK/main/
H A Dphp_output.h162 #define PHPWRITE(str, str_len) php_output_write((str), (str_len))
163 #define PHPWRITE_H(str, str_len) php_output_write_unbuffered((str), (str_len))
/PHP_TRUNK/ext/json/
H A Djson.c190 PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, size_t str_len, zend_long options, zend_long depth) /* {{{ */ argument
194 php_json_parser_init(&parser, return_value, str, str_len, (int)options, (int)depth);
237 size_t str_len; local
242 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|bll", &str, &str_len, &assoc, &depth, &options) == FAILURE) {
248 if (!str_len) {
260 php_json_decode_ex(return_value, str, str_len, options, depth);
H A Dphp_json.h99 PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, size_t str_len, zend_long options, zend_long depth);
101 static inline void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, zend_long depth) argument
103 php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth);
H A Djson_scanner.re84 void php_json_scanner_init(php_json_scanner *s, char *str, size_t str_len, int options)
87 s->limit = (php_json_ctype *) str + str_len;
H A Dphp_json_parser.h32 void php_json_parser_init(php_json_parser *parser, zval *return_value, char *str, size_t str_len, int options, int max_depth);
H A Dphp_json_scanner.h43 void php_json_scanner_init(php_json_scanner *scanner, char *str, size_t str_len, int options);
/PHP_TRUNK/ext/recode/
H A Drecode.c149 size_t req_len, str_len; local
152 if (zend_parse_parameters(ZEND_NUM_ARGS(), "ss", &req, &req_len, &str, &str_len) == FAILURE) {
168 recode_buffer_to_buffer(request, str, str_len, &r, &r_len, &r_alen);
/PHP_TRUNK/Zend/
H A Dzend.h266 #define ZEND_WRITE(str, str_len) zend_write((str), (str_len))
267 #define ZEND_WRITE_EX(str, str_len) write_func((str), (str_len))
/PHP_TRUNK/ext/intl/dateformat/
H A Ddateformat_attrcpp.cpp48 size_t 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/transliterator/
H A Dtransliterator_methods.c306 size_t str_len; local
324 &arg1, &str, &str_len, &start, &limit ) == FAILURE )
360 &str, &str_len, &start, &limit ) == FAILURE )
387 intl_convert_utf8_to_utf16( &ustr, &ustr_len, str, str_len,
/PHP_TRUNK/ext/intl/breakiterator/
H A Drulebasedbreakiterator_methods.cpp118 size_t str_len; local
121 if (intl_charFromString(rules, &str, &str_len, BREAKITER_ERROR_CODE_P(bio)) == FAILURE)
128 RETVAL_STRINGL(str, str_len);

Completed in 86 milliseconds

123