Linux SoftwareProgrammingLibrariesMath::String::Charset 1.27

# Math::String::Charset 1.27

Math::String::Charset is a simple charset for Math::String objects. SYNOPSIS use Math::String::Charset; \$a = new Mat
 Developer: Tels      more software by author → Price: 0.00 License: GPL (GNU General Public License) File size: 60K Language: OS: Rating: 0 /5 (0 votes) Your vote: enlarge screenshot

Math::String::Charset is a simple charset for Math::String objects.

SYNOPSIS

use Math::String::Charset;

\$a = new Math::String::Charset; # default a-z
\$b = new Math::String::Charset ['a'..'z']; # same
\$c = new Math::String::Charset
{ start => ['a'..'z'], sep => ' ' }; # with ' ' between chars

print \$b->length(); # a-z => 26

# construct a charset from bigram table, and an initial set (containing
# valid start-characters)
# Note: After an 'a', either an 'b', 'c' or 'a' can follow, in this order
# After an 'd' only an 'a' can follow
\$bi = new Math::String::Charset ( {
start => 'a'..'d',
bi => {
'a' => [ 'b', 'c', 'a' ],
'b' => [ 'c', 'b' ],
'c' => [ 'a', 'c' ],
'd' => [ 'a', ],
'q' => [ ], # 'q' will be automatically in end
}
end => [ 'a', 'b', ],
} );
print \$bi->length(); # 'a','b' => 2 (cross of end and start)
print scalar \$bi->class(2); # count of combinations with 2 letters
# will be 3+2+2+1 => 8

\$d = new Math::String::Charset ( { start => ['a'..'z'],
minlen => 2, maxlen => 4, } );

print \$d->first(0),"n"; # undef, too short
print \$d->first(1),"n"; # undef, to short
print \$d->first(2),"n"; # 'aa'

\$d = new Math::String::Charset ( { start => ['a'..'z'] } );

print \$d->first(0),"n"; # ''
print \$d->first(1),"n"; # 'a'
print \$d->last(1),"n"; # 'z'
print \$d->first(2),"n"; # 'aa'

This module lets you create an charset object, which is used to contruct Math::String objects. This object knows how to handle simple charsets as well as complex onex consisting of bi-grams (later tri and more).

In case of more complex charsets, a reference to a Math::String::Charset::Nested or Math::String::Charset::grouped will be returned.

The default charset is the set containing "abcdefghijklmnopqrstuvwxyz" (thus producing always lower case output).

Requirements:
• perl5.005
• Exporter
• Math::BigInt
tags

http://mirrors.evolva.ro/CPAN/authors/id/T/TE/TELS/math/Math-String-1.27.tar.gz

###### Authors software
 Math::String::Charset 1.27 (by Tels) Math::String::Charset is a simple charset for Math::String objects. SYNOPSIS use Math::String::Charset; \$a = new Mat
 Convert::Wiki 0.05 (by Tels) Convert::Wiki is a Perl module that can convert HTML/POD/txt from/to Wiki code. SYNOPSIS use Convert::Wiki;

###### Similar software
 Math::String::Charset 1.27 (by Tels) Math::String::Charset is a simple charset for Math::String objects. SYNOPSIS use Math::String::Charset; \$a = new Mat
 Math::XOR 0.02 (by Tyler MacDonald) Math::XOR is a package to handle XOR encryption of string buffers. SYNOPSIS use XOR; print xor_buf("hello", "w
 combina 0.4.1 (by Danilo Cicerone) combina is a password generator that uses three different algorithms based on combinatorial analysis. It implements the permutatio
 Math::Pari 2.010706 (by Ilya Zakharevich) Math::Pari is a Perl interface to PARI. SYNOPSIS use Math::Pari; \$a = PARI 2; print \$a**10000; or use Math::Pari qw
 MARC::Charset 0.95 (by Ed Summers) MARC::Charset is a Perl module to convert MARC-8 encoded strings to UTF-8. SYNOPSIS # import the marc8_to_utf8 function
 Template::Tutorial 2.15 (by Andy Wardley) Template::Tutorial are template toolkit tutorials. This section includes tutorials on using the Template Toolkit
 Math::Calc::Euro 0.02 (by Juerd) Math::Calc::Euro is a Perl module to convert between EUR and the old currencies. SYNOPSIS my \$guildercalc = Math::Calc::Eur
 MathTables 0.3.4 (by Pedro I Sanchez) MathTables is a program that helps parents teach their children how to use the four basic math operations, multiplication, substracti
 Math::BaseCnv 1.2.59M7mRX (by Pip Stuart) Math::BaseCnv is a fast functions to convert between number bases. SYNOPSIS use Math::BaseCnv; # Convert 63 from base-10

###### Other software in this category
 zlib 1.2.3 (by Jean-loup Gailly) zlib is designed to be a free, general-purpose, legally unencumbered, lossless data-compression library for use on virtually any comp
 libjpeg v6b (by Independent JPEG Group) libjpeg is a library for handling the JPEG (JFIF) image format
 OpenSSL 0.9.7c (by The OpenSSL Project Team) The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implement
 libxml2 2.6.27 (by DV) Libxml2 is the XML C parser and toolkit developed for the Gnome project (but usable outside of the Gnome platform), libxml2 library i
 GNU C library 2.4 (by Andreas Jaeger) GNU C library (glibc) is one of the most important components of GNU Hurd and most modern Linux distributions. GNU C library is us
•     search

### Featured Software

jEdit 4.3 pre8
jEdit is an Open Source text editor written in Java

Opera 9.02
Surf the Internet in a safer, faster, and easier way with Opera browser

GNU Aspell 0.60.4
GNU Aspell is a Free and Open Source spell checker designed to eventually replace Ispell

### Top tags