Lines Matching refs:newtext
853 zend_string *newtext; in PHP_FUNCTION() local
880 newtext = zend_string_init(ZSTR_VAL(text), ZSTR_LEN(text), 0); in PHP_FUNCTION()
888 ZSTR_VAL(newtext)[current] = breakchar[0]; in PHP_FUNCTION() local
893 ZSTR_VAL(newtext)[lastspace] = breakchar[0]; in PHP_FUNCTION() local
898 RETURN_NEW_STR(newtext); in PHP_FUNCTION()
903 newtext = zend_string_safe_alloc(chk, breakchar_len, ZSTR_LEN(text), 0); in PHP_FUNCTION()
908 newtext = zend_string_safe_alloc(ZSTR_LEN(text), breakchar_len + 1, 0, 0); in PHP_FUNCTION()
918 newtext = zend_string_extend(newtext, alloced, 0); in PHP_FUNCTION()
926 …memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart + breakchar… in PHP_FUNCTION()
936 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart); in PHP_FUNCTION()
938 memcpy(ZSTR_VAL(newtext) + newtextlen, breakchar, breakchar_len); in PHP_FUNCTION()
950 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart); in PHP_FUNCTION()
952 memcpy(ZSTR_VAL(newtext) + newtextlen, breakchar, breakchar_len); in PHP_FUNCTION()
962 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, lastspace - laststart); in PHP_FUNCTION()
964 memcpy(ZSTR_VAL(newtext) + newtextlen, breakchar, breakchar_len); in PHP_FUNCTION()
973 memcpy(ZSTR_VAL(newtext) + newtextlen, ZSTR_VAL(text) + laststart, current - laststart); in PHP_FUNCTION()
977 ZSTR_VAL(newtext)[newtextlen] = '\0'; in PHP_FUNCTION() local
979 newtext = zend_string_truncate(newtext, newtextlen, 0); in PHP_FUNCTION()
981 RETURN_NEW_STR(newtext); in PHP_FUNCTION()