Merge a set of patches onto the text. Return a patched text, as well
as an array of true/false values indicating which patches were applied.
@param patches Array of Patch objects
@param text Old text.
@return Two element Object array, containing the new text and an array of
bool values.
Merge a set of patches onto the text. Return a patched text, as well as an array of true/false values indicating which patches were applied. @param patches Array of Patch objects @param text Old text. @return Two element Object array, containing the new text and an array of bool values.