<?xml version="1.0" encoding="UTF-8"?> <!-- $Revision$ --> <!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. --> <refentry xml:id="function.xdiff-string-rabdiff" xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink"> <refnamediv> <refname>xdiff_string_rabdiff</refname> <refpurpose>Make binary diff of two strings using the Rabin's polynomial fingerprinting algorithm</refpurpose> </refnamediv> <refsect1 role="description"> &reftitle.description; <methodsynopsis> <type>string</type><methodname>xdiff_string_bdiff</methodname> <methodparam><type>string</type><parameter>old_data</parameter></methodparam> <methodparam><type>string</type><parameter>new_data</parameter></methodparam> </methodsynopsis> <para> Makes a binary diff of two strings and returns the result. The difference between this function and <function>xdiff_string_bdiff</function> is different algorithm used which should result in faster execution and smaller diff produced. This function works with both text and binary data. Resulting patch can be later applied using <function>xdiff_string_bpatch</function>/<function>xdiff_file_bpatch</function>. </para> <para> For more details about differences between algorithm used please check <link xlink:href="&url.xdiff;">libxdiff</link> website. </para> </refsect1> <refsect1 role="parameters"> &reftitle.parameters; <para> <variablelist> <varlistentry> <term><parameter>old_data</parameter></term> <listitem> <para> First string with binary data. It acts as "old" data. </para> </listitem> </varlistentry> <varlistentry> <term><parameter>new_data</parameter></term> <listitem> <para> Second string with binary data. It acts as "new" data. </para> </listitem> </varlistentry> </variablelist> </para> </refsect1> <refsect1 role="returnvalues"> &reftitle.returnvalues; <para> Returns string with binary diff containing differences between "old" and "new" data or &false; if an internal error occurred. </para> </refsect1> <refsect1 role="seealso"> &reftitle.seealso; <para> <simplelist> <member><function>xdiff_string_bpatch</function></member> </simplelist> </para> </refsect1> </refentry> <!-- Keep this comment at the end of the file Local variables: mode: sgml sgml-omittag:t sgml-shorttag:t sgml-minimize-attributes:nil sgml-always-quote-attributes:t sgml-indent-step:1 sgml-indent-data:t indent-tabs-mode:nil sgml-parent-document:nil sgml-default-dtd-file:"~/.phpdoc/manual.ced" sgml-exposed-tags:nil sgml-local-catalogs:nil sgml-local-ecat-files:nil End: vim600: syn=xml fen fdm=syntax fdl=2 si vim: et tw=78 syn=sgml vi: ts=1 sw=1 -->