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

123

/PHP_TRUNK/ext/intl/collator/
H A Dcollator_sort.c549 int 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 ) );
H A Dcollator_convert.c194 int str_len = 0; local
198 intl_convert_utf16_to_utf8( &str, &str_len,
204 ZVAL_STRINGL( utf8_zval, str, str_len, FALSE );
/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/timezone/
H A Dtimezone_class.cpp291 int str_len; local
309 intl_convert_utf16_to_utf8(&str, &str_len,
314 add_assoc_stringl_ex(&zv, "id", sizeof("id"), str, str_len, 0);
/PHP_TRUNK/ext/intl/transliterator/
H A Dtransliterator_methods.c304 int str_len; local
321 &arg1, &str, &str_len, &start, &limit ) == FAILURE )
357 &str, &str_len, &start, &limit ) == FAILURE )
384 intl_convert_utf8_to_utf16( &ustr, &ustr_len, str, str_len,
/PHP_TRUNK/ext/intl/grapheme/
H A Dgrapheme_string.c403 int str_len, sub_str_len, ustr_len; local
413 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "sl|l", (char **)&str, &str_len, &lstart, &length) == FAILURE) {
421 if ( OUTSIDE_STRING(lstart, str_len) ) {
433 if ( grapheme_ascii_check(str, str_len) >= 0 ) {
434 grapheme_substr_ascii((char *)str, str_len, start, length, ZEND_NUM_ARGS(), (char **) &sub_str, &sub_str_len);
447 intl_convert_utf8_to_utf16(&ustr, &ustr_len, (char *)str, str_len, &status);
701 grapheme_extract_charcount_iter(UBreakIterator *bi, int32_t csize, unsigned char *pstr, int32_t str_len) argument
722 U8_FWD_N(pstr, ret_pos, str_len, pos - prev_pos);
738 grapheme_extract_bytecount_iter(UBreakIterator *bi, int32_t bsize, unsigned char *pstr, int32_t str_len) argument
751 U8_FWD_N(pstr, ret_pos, str_len, po
772 grapheme_extract_count_iter(UBreakIterator *bi, int32_t size, unsigned char *pstr, int32_t str_len) argument
813 int str_len, ustr_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...]
/PHP_TRUNK/ext/intl/msgformat/
H A Dmsgformat_helpers.cpp394 uint str_len; local
400 args, &str_index, &str_len, &num_index, 0, &pos),
425 intl_stringFromChar(key, str_index, str_len-1, &err.code);
/PHP_TRUNK/ext/ereg/
H A Dereg.c635 int spliton_len, str_len; local
638 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "ss|l", &spliton, &spliton_len, &str, &str_len, &count) == FAILURE) {
647 endp = strp + str_len;
/PHP_TRUNK/ext/recode/
H A Drecode.c149 int 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.c224 int str_len, ret_length; local
226 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
229 result = php_base64_encode((unsigned char*)str, str_len, &ret_length);
245 int str_len, ret_length; local
247 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|b", &str, &str_len, &strict) == FAILURE) {
250 result = php_base64_decode_ex((unsigned char*)str, str_len, &ret_length, strict);
H A Dcrypt.c262 int str_len, salt_in_len = 0; local
269 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|s", &str, &str_len, &salt_in, &salt_in_len) == FAILURE) {
296 if (php_crypt(str, str_len, salt, salt_in_len, &result) == FAILURE) {
H A Ddir.c295 int ret, str_len; local
297 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) == FAILURE) {
326 int ret, str_len; local
328 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "p", &str, &str_len) == FAILURE) {
H A Dmetaphone.c36 int str_len; local
39 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|l", &str, &str_len,
44 if (metaphone((unsigned char *)str, str_len, phones, &result, 1) == 0) {
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
87 if ((int) str_len < 0) {
90 buffer = php_base64_encode((unsigned char*) str, (int) str_len, (int*) &ret_len);
H A Dquot_print.c266 int str_len; local
269 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s", &str, &str_len) != SUCCESS) {
273 if (!str_len) {
277 new_str = (char *)php_quot_print_encode((unsigned char *)str, (size_t)str_len, &new_str_len);
H A Dsoundex.c32 int 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 Dmail.c83 int 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++) {
H A Durl.c378 int 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);
/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 (zend_hash_find(&n->config, str, str_len, (void **) &pe) == SUCCESS) {
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.c145 uint str_len; local
157 zend_hash_get_current_key_ex(&d->config, &str, &str_len,
162 if (zend_hash_find(&n->config, str, str_len, (void **) &pe) == SUCCESS) {
166 zend_hash_update(&n->config, str, str_len, data, sizeof(*data), NULL);
188 uint str_len; local
192 zend_hash_get_current_key_ex(&d->config, &str, &str_len, NULL, 0,
197 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/ext/json/
H A Dphp_json.h53 PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, int str_len, int options, long depth TSRMLS_DC);
77 static inline void php_json_decode(zval *return_value, char *str, int str_len, zend_bool assoc, 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.c666 PHP_JSON_API void php_json_decode_ex(zval *return_value, char *str, int str_len, int options, 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);
701 int trim_len = str_len;
809 int str_len; local
814 if (zend_parse_parameters(ZEND_NUM_ARGS() TSRMLS_CC, "s|bll", &str, &str_len, &assoc, &depth, &options) == FAILURE) {
820 if (!str_len) {
831 php_json_decode_ex(return_value, str, str_len, options, depth TSRMLS_CC);
/PHP_TRUNK/sapi/phpdbg/
H A Dphpdbg_watch.h70 size_t str_len; member in struct:_phpdbg_watchpoint_t
/PHP_TRUNK/ext/intl/formatter/
H A Dformatter_parse.c43 int 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 int 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));

Completed in 62 milliseconds

123