Lines Matching refs:char_count
3099 size_t char_count; local
3105 char_count = count_chars(ZSTR_VAL(str), ZSTR_LEN(str), from);
3107 char_count = 0;
3112 char_count++;
3117 if (char_count == 0) {
3122 *replace_count += char_count;
3126 result = zend_string_safe_alloc(char_count, to_len - 1, ZSTR_LEN(str), 0);
3128 result = zend_string_alloc(ZSTR_LEN(str) - char_count, 0);
3140 if (--char_count == 0) break;
4577 zend_long max_chars=0, char_count; local
4675 char_count=0;
4676 while ((!max_chars || (max_chars > 0 && char_count < max_chars)) && begin > 0) {
4677 char_count++;
4682 char_count++;
4687 if (max_chars >= 0 && char_count == max_chars) { /* try to avoid breaking words */
4688 size_t new_char_count=char_count, new_begin=begin;