Name : perl-Text-Scan
| |
Version : 0.31
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.1
| Date : 2018-08-28 14:04:27
|
Group : Development/Libraries/Perl
| Source RPM : perl-Text-Scan-0.31-1.1.src.rpm
|
Size : 0.10 MB
| |
Packager : (none)
| |
Summary : Fast search for very large numbers of keys in a body of text
|
Description :
This module provides facilities for fast searching on strings with very many search keys. The basic object behaves somewhat like a perl hash, except that you can retrieve based on a superstring of any keys stored. Simply scan a string as shown above and you will get back a perl hash (or list) of all keys found in the string (along with associated values and/or positions). All keys present in the text are returned.
There are several ways to influence the behavior of the match, chiefly by the use of several types of *global character classes*. These are different from regular expression char classes, in that they apply to the entire text and for all keys. These consist of the \"ignore\" class, the \"boundary\" class, the \"inclboundary\" class, and any user-defined classes.
Using \"ignore\" characters you can have the scan pretend a char in the text simply does not exist. This is useful if you want to avoid tokenizing your text. So for instance, if the period \'.\' is in your \"ignore\" class, the text will be treated exactly as if all periods had been deleted.
To define what characters may count as the delimiter of any match (single space by default) you can use the \"boundary\" class. For instance this way you can count punctuation as a boundary, and phrases bounded at the end by punctuation will match.
Any user-defined character classes can be used to count different chars as the same. For instance this is used internally to implement case-insensitive matching.
About unicode/utf8 strings. Text::Scan acts at the octet level so it\'s not aware of anything about unicode/utf8 encoded strings. If you deal with such strings, it\'s recommended to give octets strings to Text::Scan using Encode::encode_utf8(). Text::Scan will then give you back octets strings , utf8 encoded found keys.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-T/openSUSE_Tumbleweed/x86_64 |