xdiff_string_patch Patch a string with an unified diff Description stringxdiff_string_patch stringstr stringpatch intflags stringerror xdiff_string_patch patches string str with unified patch in string patch. flags can be either XDIFF_PATCH_NORMAL (default mode, normal patch) or XDIFF_PATCH_REVERSE (reversed patch). If error is passed then rejected parts are stored inside this variable. <function>xdiff_string_patch</function> example The following code applies changes to some article. ]]> Returns a patched string. See also xdiff_file_patch.