Lines Matching refs:char_count
2869 size_t char_count; local
2875 char_count = count_chars(ZSTR_VAL(str), ZSTR_LEN(str), from);
2877 char_count = 0;
2882 char_count++;
2887 if (char_count == 0) {
2892 *replace_count += char_count;
2896 result = zend_string_safe_alloc(char_count, to_len - 1, ZSTR_LEN(str), 0);
2898 result = zend_string_alloc(ZSTR_LEN(str) - char_count, 0);
2912 if (--char_count == 0) break;
4284 zend_long max_chars=0, char_count; local
4382 char_count=0;
4383 while ((!max_chars || (max_chars > 0 && char_count < max_chars)) && begin > 0) {
4384 char_count++;
4389 char_count++;
4394 if (max_chars >= 0 && char_count == max_chars) { /* try to avoid breaking words */
4395 size_t new_char_count=char_count, new_begin=begin;