1 RCS

Class Ax.rcs.RCS


Utils for diffing and patching strings.

Constructor Summary

Method
Description
JSRCS()

Method Summary

Modifier and Type
Method
Description
diff(Ax.text.String s1, Ax.text.String s2)
compute the difference between an original and a revision.
Ax.text.String 
patch(Ax.text.String original,Ax.text.String rcs_changes)
Constructs a revision from a RCS string

Constructor Detail

Ax.rcs.RCS.JSRCS

Ax.rcs.RCS.JSRCS()

Method Detail

Ax.rcs.RCS.diff

object Ax.rcs.RCS.diff(
	string s1,
	string s2
)
Info:
compute the difference between an original and a revision.
Parameters:
s1 - the original
s2 - the revision to compare with the original.
Returns:
object

Ax.rcs.RCS.patch

string Ax.rcs.RCS.patch(
	string original,
	string rcs_changes
)
Info:
Constructs a revision from a RCS string
Parameters:
original - the text to patch, which the method doesn't change.
rcs_changes - The string containing the changes in RCS format
Returns:
string