Skip to content

Conversation

@lacatoire
Copy link

This PR fixes the xdiff_string_rabdiff() documentation, which incorrectly displayed the function name and description for xdiff_string_bdiff().

Changes:

  • Corrected to use xdiff_string_rabdiff.
  • Updated description to reflect the Rabin’s polynomial fingerprinting algorithm.
  • Added example and “See also” links for related functions.

Issue here #4987

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- Generated by xml_proto.php v2.0. Found in /scripts directory of phpdoc. -->
<!-- Corrected function signature and description for xdiff_string_rabdiff -->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This comments should be deleted.

<refnamediv>
<refname>xdiff_string_rabdiff</refname>
<refpurpose>Make binary diff of two strings using the Rabin's polynomial fingerprinting algorithm</refpurpose>
<refpurpose>Make a binary diff of two strings using the Rabin's polynomial fingerprinting algorithm</refpurpose>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<refpurpose>Make a binary diff of two strings using the Rabin's polynomial fingerprinting algorithm</refpurpose>
<refpurpose>
Make a binary diff of two strings using the Rabin's polynomial fingerprinting algorithm
</refpurpose>

<function>xdiff_file_bpatch</function> for applying patches.
</para>
<para>
This function can be used with both text and binary data. The resulting diff data can later be applied to recreate
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The projects recommends sticking to 80 character line limit. Could you please split up the long lines?

Comment on lines +61 to +62
Returns a binary diff string containing the differences between the old and new data, or
<constant>false</constant> if an internal error occurred.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Returns a binary diff string containing the differences between the old and new data, or
<constant>false</constant> if an internal error occurred.
Returns a binary diff string containing the differences between the old and new data,&return.falseforfailure;.

Comment on lines +70 to +73
<title><function>xdiff_string_rabdiff</function> example</title>
<para>
The following example creates a binary diff between two strings and stores it for later patching.
</para>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please merge them together and keep the sentence a bit shorter? E.g. <title>Creation of a binary diff between two strings</title>

Comment on lines +102 to +121
<!-- 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
-->
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why did you add spaces here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants