view release on metacpan or search on metacpan
lib/Alvis/AinoDump.pm view on Meta::CPAN
#
##############################################################################
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_init(@_);
$self->_set_err_state($ERR_OK);
return $self;
}
sub _init
lib/Alvis/Canonical.pm view on Meta::CPAN
#
##############################################################################
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_init(@_);
$self->_set_err_state($ERR_OK);
# Removes uninteresting HTML tags, fixes the interesting tags and
# converts natural language relevant <=#255 character entities to
# characters and UTF-8 numerical entities to characters if wanted
$self->{htmlConverter}=
lib/Alvis/Convert.pm view on Meta::CPAN
#
############################################################################
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_set_err_state($ERR_OK);
$self->_init(@_);
if (defined($self->{urlBase}))
{
if ($self->{urlBase}!~/\/$/)
{
$self->{urlBase}.='/';
lib/Alvis/Document.pm view on Meta::CPAN
$ERR_LINKS_TXT=>"Assembling links text failed."
);
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_set_err_state($ERR_OK);
$self->_init(@_);
return $self;
}
sub _init
{
lib/Alvis/Document/Encoding.pm view on Meta::CPAN
#
##############################################################################
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_init(@_);
$self->_set_err_state($ERR_OK);
$self->{docTypeWizard}=
Alvis::Document::Type->new(defaultType=>
$self->{defaultDocType},
defaultSubType=>
$self->{defaultDocSubType});
lib/Alvis/Document/Links.pm view on Meta::CPAN
$ERR_NO_TYPE=>"No type given."
);
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_set_err_state($ERR_OK);
$self->_init(@_);
return $self;
}
sub _init
{
lib/Alvis/Document/Meta.pm view on Meta::CPAN
$ERR_PARSE=>"Parsing the meta text failed."
);
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_set_err_state($ERR_OK);
$self->_init(@_);
if (defined($self->{text}))
{
if (!$self->parse($self->{text}))
{
$self->_set_err_state($ERR_PARSE,
lib/Alvis/Document/Type.pm view on Meta::CPAN
#
##############################################################################
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_init(@_);
$self->_set_err_state($ERR_OK);
$self->{fileType}=File::Type->new();
if (!defined($self->{fileType}))
{
$self->_set_err_state($ERR_FILE_TYPE);
return undef;
lib/Alvis/HTML.pm view on Meta::CPAN
$self->{errstr}="";
}
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_init(@_);
$self->{encodingWiz}=Alvis::Document::Encoding->new();
if (!defined($self->{encodingWiz}))
{
$self->_set_err_state($ERR_ENC);
return undef;
}
lib/Alvis/Wikipedia/CatGraph.pm view on Meta::CPAN
#
##############################################################################
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_init(@_);
$self->_set_err_state($ERR_OK);
return $self;
}
sub _init
lib/Alvis/Wikipedia/Templates.pm view on Meta::CPAN
#
#######################################################################
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_init(@_);
$self->{parser}=Alvis::Wikipedia::WikitextParser->new();
if (!defined($self->{parser}))
{
$self->_set_err_state($ERR_PARSER);
return undef;
}
lib/Alvis/Wikipedia/Variables.pm view on Meta::CPAN
#
##########################################################################
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_set_err_state($ERR_OK);
$self->_init(@_);
$self->{parser}=Alvis::Wikipedia::WikitextParser->new();
if (!defined($self->{parser}))
{
$self->_set_err_state($ERR_PARSER);
return undef;
lib/Alvis/Wikipedia/WikitextParser.pm view on Meta::CPAN
#
####################################################################
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_init(@_);
return $self;
}
sub _init
{
my $self=shift;
lib/Alvis/Wikipedia/XMLDump.pm view on Meta::CPAN
#
##########################################################################
sub new
{
my $proto=shift;
my $class=ref($proto)||$proto;
my $parent=ref($proto)&&$proto;
my $self={};
bless($self,$class);
$self->_set_err_state($ERR_OK);
$self->_init(@_);
$self->{variables}=Alvis::Wikipedia::Variables->new();
if (!defined($self->{variables}))
{
$self->_set_err_state($ERR_VAR);
return undef;