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

12

/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/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/collator/
H A Dcollator_convert.c174 size_t str_len = 0; local
178 intl_convert_utf16_to_utf8( &str, &str_len,
184 ZVAL_STRINGL( utf8_zval, str, str_len);
H A Dcollator_sort.c549 size_t str_len = 0; local
559 &object, Collator_ce_ptr, &str, &str_len ) == FAILURE )
585 &ustr, &ustr_len, str, str_len, COLLATOR_ERROR_CODE_P( co ) );
/PHP_TRUNK/ext/intl/grapheme/
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.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/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/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 Dmail.c83 size_t j, str_len; local
85 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &str, &str_len) == FAILURE) {
89 for (j = 0; j < str_len; j++) {
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, 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) {
H A Dcrypt.c280 size_t str_len, salt_in_len = 0; local
289 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|s", &str, &str_len, &salt_in, &salt_in_len) == FAILURE) {
316 if ((result = php_crypt(str, (int)str_len, salt, (int)salt_in_len)) == NULL) {
H A Ddir.c301 size_t str_len; local
303 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &str, &str_len) == FAILURE) {
333 size_t str_len; local
335 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &str, &str_len) == FAILURE) {
H A Durl.c377 size_t str_len; local
381 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &str, &str_len, &key) == FAILURE) {
385 resource = php_url_parse_ex(str, str_len);
/PHP_TRUNK/main/streams/
H A Dxp_socket.c546 static inline char *parse_ip_address_ex(const char *str, size_t str_len, int *portno, int get_err, zend_string **err) argument
554 if (*(str) == '[' && str_len > 1) {
556 p = memchr(str + 1, ']', str_len - 2);
567 if (str_len) {
568 colon = memchr(str, ':', str_len - 1);
/PHP_TRUNK/Zend/
H A Dzend_ini_scanner.c154 static inline int convert_to_number(zval *retval, const char *str, const int str_len) argument
161 if ((type = is_numeric_string_ex(str, str_len, &lval, &dval, 0, &overflow)) != 0) {
/PHP_TRUNK/ext/intl/breakiterator/
H A Drulebasedbreakiterator_methods.cpp125 size_t str_len; local
128 if (intl_charFromString(rules, &str, &str_len, BREAKITER_ERROR_CODE_P(bio)) == FAILURE)
135 RETVAL_STRINGL(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.c85 void php_json_scanner_init(php_json_scanner *s, char *str, size_t str_len, int options) argument
88 s->limit = (php_json_ctype *) 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(), "ss", &req, &req_len, &str, &str_len) == FAILURE) {
168 recode_buffer_to_buffer(request, str, str_len, &r, &r_len, &r_alen);

Completed in 27 milliseconds

12