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

12

/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.c376 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 ) {
417 grapheme_substr_ascii(str, str_len, start, (int32_t)length, &sub_str, &asub_str_len);
430 intl_convert_utf8_to_utf16(&ustr, &ustr_len, str, str_len, &status);
485 /* OK to convert here since if str_len were big, convert above would fail */
486 if (length >= (int32_t)str_len) {
675 grapheme_extract_charcount_iter(UBreakIterator *bi, int32_t csize, unsigned char *pstr, int32_t str_len) argument
712 grapheme_extract_bytecount_iter(UBreakIterator *bi, int32_t bsize, unsigned char *pstr, int32_t str_len) argument
746 grapheme_extract_count_iter(UBreakIterator *bi, int32_t size, unsigned char *pstr, int32_t str_len) argument
787 size_t str_len; local
[all...]
/PHP_TRUNK/ext/standard/
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 Ddir.c301 size_t str_len; local
303 if (zend_parse_parameters(ZEND_NUM_ARGS(), "p", &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 Dcrypt.c285 size_t str_len, salt_in_len = 0; local
294 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|s", &str, &str_len, &salt_in, &salt_in_len) == FAILURE) {
321 if ((result = php_crypt(str, (int)str_len, salt, (int)salt_in_len, 0)) == NULL) {
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 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 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);
H A Diptc.c307 size_t str_len; local
310 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s", &str, &str_len) != SUCCESS) {
316 while (inx < str_len) { /* find 1st tag */
324 while (inx < str_len) {
329 if ((inx + 4) >= str_len)
336 if((inx+6) >= str_len) {
347 if ((len < 0) || (len > str_len) || (inx + len) > str_len) {
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++) {
/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/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/ext/intl/converter/
H A Dconverter.c750 size_t str_len; local
755 &str, &str_len, &reverse) == FAILURE) {
764 str, str_len,
784 size_t str_len, src_len, dest_len; local
789 &str, &str_len, &dest, &dest_len, &src, &src_len, &options) == FAILURE) {
819 (ret = php_converter_do_convert(dest_cnv, src_cnv, str, str_len, NULL)) != NULL) {
/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));
134 size_t 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));
/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/transliterator/
H A Dtransliterator_methods.c300 size_t str_len; local
318 &arg1, &str, &str_len, &start, &limit ) == FAILURE )
354 &str, &str_len, &start, &limit ) == FAILURE )
381 intl_convert_utf8_to_utf16( &ustr, &ustr_len, str, str_len,
/PHP_TRUNK/ext/intl/collator/
H A Dcollator_sort.c547 size_t str_len = 0; local
557 &object, Collator_ce_ptr, &str, &str_len ) == FAILURE )
583 &ustr, &ustr_len, str, str_len, COLLATOR_ERROR_CODE_P( co ) );
/PHP_TRUNK/ext/json/
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;
H A Djson.c192 PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, size_t str_len, zend_long options, zend_long depth) /* {{{ */ argument
196 php_json_parser_init(&parser, return_value, str, str_len, (int)options, (int)depth);
239 size_t str_len; local
244 if (zend_parse_parameters(ZEND_NUM_ARGS(), "s|bll", &str, &str_len, &assoc, &depth, &options) == FAILURE) {
250 if (!str_len) {
262 php_json_decode_ex(return_value, str, str_len, options, depth);
H A Dphp_json.h96 PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, size_t str_len, zend_long options, zend_long depth);
98 static inline void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, zend_long depth) argument
100 php_json_decode_ex(return_value, str, str_len, assoc ? PHP_JSON_OBJECT_AS_ARRAY : 0, depth);
/PHP_TRUNK/main/
H A Dphp_variables.c46 PHPAPI void php_register_variable_safe(char *var, char *strval, size_t str_len, zval *track_vars_array) argument
52 ZVAL_NEW_STR(&new_entry, zend_string_init(strval, str_len, 0));
/PHP_TRUNK/main/streams/
H A Dxp_socket.c558 static inline char *parse_ip_address_ex(const char *str, size_t str_len, int *portno, int get_err, zend_string **err) argument
566 if (*(str) == '[' && str_len > 1) {
568 p = memchr(str + 1, ']', str_len - 2);
579 if (str_len) {
580 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/pdo/
H A Dpdo_dbh.c1134 size_t str_len; local
1139 if (FAILURE == zend_parse_parameters(ZEND_NUM_ARGS(), "s|l", &str, &str_len, &paramtype)) {
1150 if (dbh->methods->quoter(dbh, str, str_len, &qstr, &qlen, paramtype)) {
/PHP_TRUNK/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((char*)value, str_len, "'%s'", string);
125 value = (xmlChar*) safe_emalloc (str_len, sizeof(xmlChar), 0);
126 snprintf((char *)value, str_len, "\"%s\"", string);

Completed in 38 milliseconds

12