:%s/.*/\=some_function(submatch(0))/
see
:help sub-replace-special
:help submatch()
Note that since the * operator is greedy, .* matches the whole line,
therefore the g flag doesn't change anything (there is only one whole
line on each line).
Best regards,
Tony.
--
Overdrawn? But I still have checks left!