Lines Matching refs:newtext
711 zend_string *newtext; in PHP_FUNCTION() local
738 newtext = zend_string_init(ZSTR_VAL(text), ZSTR_LEN(text), 0); in PHP_FUNCTION()
746 ZSTR_VAL(newtext)[current] = breakchar[0]; in PHP_FUNCTION() local
751 ZSTR_VAL(newtext)[lastspace] = breakchar[0]; in PHP_FUNCTION() local
756 RETURN_NEW_STR(newtext); in PHP_FUNCTION()
761 newtext = zend_string_safe_alloc(chk, breakchar_len, ZSTR_LEN(text), 0); in PHP_FUNCTION()
766 newtext = zend_string_safe_alloc(ZSTR_LEN(text), breakchar_len + 1, 0, 0); in PHP_FUNCTION()
776 newtext = zend_string_extend(newtext, alloced, 0); in PHP_FUNCTION()
784 …memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart + breakchar… in PHP_FUNCTION()
794 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart); in PHP_FUNCTION()
796 memcpy(ZSTR_VAL(newtext) + newtextlen, breakchar, breakchar_len); in PHP_FUNCTION()
808 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart); in PHP_FUNCTION()
810 memcpy(ZSTR_VAL(newtext) + newtextlen, breakchar, breakchar_len); in PHP_FUNCTION()
820 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, lastspace - laststart); in PHP_FUNCTION()
822 memcpy(ZSTR_VAL(newtext) + newtextlen, breakchar, breakchar_len); in PHP_FUNCTION()
831 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart); in PHP_FUNCTION()
835 ZSTR_VAL(newtext)[newtextlen] = '\0'; in PHP_FUNCTION() local
837 newtext = zend_string_truncate(newtext, newtextlen, 0); in PHP_FUNCTION()
839 RETURN_NEW_STR(newtext); in PHP_FUNCTION()