Text::Diff3::Factory - factory for component used by Text::Diff3 modules.
0.08
use Text::Diff3; my $f = Text::Diff3::Factory->new; my $p = $f->create_diff3; my $mytext = $f->create_text([ map{chomp;$_} <F0> ]);
This is the factory for the Text::Diff3 modules. It provides you to make data and processing instances, such as text, diff3, and diff. If you need to use some data or processor class, you replace this as your like.
Text::Diff3::Factory->new
Returns a factory instance.
$factory->create_text($array or $string)
Creates a text buffer object from parameters.
$factory->create_diff3
Creates a diff3 processor.
$factory->create_diff
Creates a two-way diff processor.
$factory->create_list3
Creates a list of range3 instances for internal use.
$factory->create_range3
Creates a range container of diff3 for internal use.
$factory->create_null_range3
Creates a null range container of diff3 for internal use.
$factory->create_list2
Creates a list of range2 instances for internal use.
$factory->create_range2
Creates a range container of diff for internal use.
$f->create_test
Creates a container for test suits.
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 <tociyuki@gmail.com>.
<tociyuki@gmail.com>
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.
To install Text::Diff3, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Diff3
CPAN shell
perl -MCPAN -e shell install Text::Diff3
For more information on module installation, please visit the detailed CPAN module installation guide.