Author recommends you to create an instance of text by using with
a factory as follows.
Text::Diff3::Factory is a class to packaging several classes for the build-in diff processor.
When pass a string, it is split by /\n/ before store the line buffers. When pass an array reference, it simply assigned text properties without duplication. In the later case, the side effects will happen if you use same reference at another place.
|$obj->text||Returns the line buffer attribute. It is an array reference.|
|$obj->list||Same as the text property, which is an interface property for ListMixin.|
|$obj->first_index||Returns first-index accessible by the at method.|
|$obj->last_index||Returns last-index accessible by the at method.|
|$obj->range||Returns a range between fist-index and last-index.|
|$obj->at||Returns a line specified by a line number. If line number is out of range, it returns undef.|
|$obj->as_string_at($x)||This is short cut for line accessing through at. If line number is out of range, it returns , in otherwise returns line.\n.|
|$obj->as_string_range(@range)||Contatinents lines in the given line number array.|
|$obj->eq_at($x, $other)||This is short cut for comparison line and other string.|
|$obj->initialize||Makes initial state.|
Use new function style interfaces introduced from version 0.08. This module remained for backward compatibility before version 0.07. This module is no longer maintenance after version 0.08.
MIZUTANI Tociyuki <firstname.lastname@example.org>.
Copyright (C) 2010 MIZUTANI Tociyuki
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version.
|perl v5.20.3||TEXT::DIFF3::TEXT (3)||2010-02-19|