Lines Matching refs:breakchar_len

939 	size_t newtextlen, chk, breakchar_len = 1;  in PHP_FUNCTION()  local
946 …if (zend_parse_parameters(ZEND_NUM_ARGS(), "S|lsb", &text, &linelength, &breakchar, &breakchar_len in PHP_FUNCTION()
954 if (breakchar_len == 0) { in PHP_FUNCTION()
966 if (breakchar_len == 1 && !docut) { in PHP_FUNCTION()
990 newtext = zend_string_safe_alloc(chk, breakchar_len, ZSTR_LEN(text), 0); in PHP_FUNCTION()
991 alloced = ZSTR_LEN(text) + chk * breakchar_len + 1; in PHP_FUNCTION()
994 alloced = ZSTR_LEN(text) * (breakchar_len + 1) + 1; in PHP_FUNCTION()
995 newtext = zend_string_safe_alloc(ZSTR_LEN(text), breakchar_len + 1, 0, 0); in PHP_FUNCTION()
1004 alloced += (size_t) (((ZSTR_LEN(text) - current + 1)/linelength + 1) * breakchar_len) + 1; in PHP_FUNCTION()
1011 && current + breakchar_len < ZSTR_LEN(text) in PHP_FUNCTION()
1012 && !strncmp(ZSTR_VAL(text) + current, breakchar, breakchar_len)) { in PHP_FUNCTION()
1013 …y(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart + breakchar_len); in PHP_FUNCTION()
1014 newtextlen += current - laststart + breakchar_len; in PHP_FUNCTION()
1015 current += breakchar_len - 1; in PHP_FUNCTION()
1025 memcpy(ZSTR_VAL(newtext) + newtextlen, breakchar, breakchar_len); in PHP_FUNCTION()
1026 newtextlen += breakchar_len; in PHP_FUNCTION()
1039 memcpy(ZSTR_VAL(newtext) + newtextlen, breakchar, breakchar_len); in PHP_FUNCTION()
1040 newtextlen += breakchar_len; in PHP_FUNCTION()
1051 memcpy(ZSTR_VAL(newtext) + newtextlen, breakchar, breakchar_len); in PHP_FUNCTION()
1052 newtextlen += breakchar_len; in PHP_FUNCTION()