Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.984.484 Times

ShiftJIS::Regexp 1.00

  Date Added: May 24, 2010  |  Visits: 861


Report Broken Link
Printer Friendly Version

Product Homepage
Download (83 downloads)

ShiftJIS::Regexp contains regular expressions in Shift-JIS. SYNOPSIS use ShiftJIS::Regexp qw(:all); match($string, p{Hiragana}{2}p{Digit}{2}); match($string, pH{2}pD{2}); # these two are equivalent: This module provides some functions to use regular expressions in Shift-JIS on the byte-oriented perl. The legal Shift-JIS character in this module must match the following regular expression: [x00-x7FxA1-xDF]|[x81-x9FxE0-xFC][x40-x7Ex80-xFC] To avoid false matching in multibyte encoding, this module uses anchoring technique to ensure each matching position places at the character boundaries. cf. perlfaq6, "How can I match strings with multibyte characters?" Functions re(PATTERN) re(PATTERN, MODIFIER) Returns a regular expression parsable by the byte-oriented perl. PATTERN is specified as a string. MODIFIER is specified as a string. Modifiers in the following list are allowed. i case-insensitive pattern (only for ascii alphabets) I case-insensitive pattern (greek, cyrillic, fullwidth latin) j hiragana-katakana-insensitive pattern (but halfwidth katakana are not considered.) s treat string as single line m treat string as multiple lines x ignore whitespace (i.e. [x20nrtf]) unless backslashed or inside a character class; but comments are not recognized! o once parsed (not compiled!) and the result is cached internally. o modifier while ( ) { print replace($_, (perl), $1, igo); } is more efficient than while ( ) { print replace($_, (perl), $1, ig); } because in the latter case the pattern is parsed every time whenever the function is called. match(STRING, PATTERN) match(STRING, PATTERN, MODIFIER) An emulation of m// operator aware of Shift-JIS. But, to emulate @list = $string =~ m/PATTERN/g, the pattern should be parenthesized (capturing parentheses are not added automatically). @list = match($string, pH, g); # wrong; returns garbage! @list = match($string,(pH),g); # good PATTERN is specified as a string. MODIFIER is specified as a string. i,I,j,s,m,x,o please see re(). g match globally z tell the function the pattern matches an empty string (sorry, due to the poor auto-detection) replace(STRING or SCALAR REF, PATTERN, REPLACEMENT) replace(STRING or SCALAR REF, PATTERN, REPLACEMENT, MODIFIER) An emulation of s/// operator but aware of Shift-JIS. If a reference to a scalar is specified as the first argument, substitutes the referent scalar and returns the number of substitutions made. If a string (not a reference) is specified as the first argument, returns the substituted string and the specified string is unaffected. MODIFIER is specified as a string. i,I,j,s,m,x,o please see re(). g,z please see match(). jsplit(PATTERN or ARRAY REF of [PATTERN, MODIFIER], STRING) jsplit(PATTERN or ARRAY REF of [PATTERN, MODIFIER], STRING, LIMIT) An emulation of CORE::split but aware of Shift-JIS. In scalar/void context, it does not split into the @_ array; in scalar context, only returns the number of fields found. PATTERN is specified as a string. But as PATTERN has no special meaning; it splits the string on a single space similarly to CORE::split / /. When you want to split the string on whitespace, pass an undefined value as PATTERN or use the splitspace() function. jsplit(undef, " x81x40 This is x81x40 perl."); splitspace(" x81x40 This is x81x40 perl."); # (This, is, perl.) If you want to pass pattern with modifiers, specify an arrayref of [PATTERN, MODIFIER] as the first argument. You can also use "Embedded Modifiers"). MODIFIER is specified as a string. i,I,j,s,m,x,o please see re(). splitspace(STRING) splitspace(STRING, LIMIT) This function emulates CORE::split( , STRING, LIMIT). It returns a list given by split STRING on whitespace including "x81x40" (IDEOGRAPHIC SPACE). Leading whitespace characters do not produce any field. Note: splitspace(STRING, LIMIT) is equivalent to jsplit(undef, STRING, LIMIT). splitchar(STRING) splitchar(STRING, LIMIT) This function emulates CORE::split(//, STRING, LIMIT). It returns a list given by split of STRING into characters. Note: splitchar(STRING, LIMIT) is equivalent to jsplit(, STRING, LIMIT)..

Requirements: No special requirements
Platforms: Linux
Keyword: Core Jis Libraries Limit Match Modifier Pattern Ref Regular Regular Expressions Shiftjis Shiftjisregexp Specified String
Users rating: 0/10

License: Freeware Size: 35.84 KB
Libraries  -  GNU Classpath 0.95
GNU Classpath (essential libraries for Java) is a project to create free core class libraries for use with virtual machines and compilers for the Java programming language. GNU Classpath project includes all native methods and core classes...
6.5 MB  
Mind Games  -  Blinky Blink 1.3
Test your memory and your reflexes by clicking on the blinking lights. Match the pattern and you win! Great for learning how to use a mouse as well. Adjustable skill levels help give you a real workout.
338 KB  
File Management  -  Flexible directory walking 1.1
This function walks a directory tree starting at a specified root folder, and returns a list of all of the files (and optionally folders) that match our pattern(s).The standard match our tree function os.path.walk can be confusing, and is...
Games  -  Head Soccer Ball 1.0
Do You Love FUN Football Puzzle Games? Then this game is For You! Head the soccer ball to match the pattern. But Beware! Don't let all the balls fill up the screen or it iss GAME OVER! -You will love the ADDICTING...
73.9 MB  
Games  -  Memory Squared
Memory Squared is a game that will test your memory! The object of the game is to match the pattern you see. When the game begins, you'll see a countdown from 3. After that, one rectangle will light up. Then it's your turn to match the...
1024 KB  
Time & Clock Tools  -  Search & Replace Master 1.2
Search & replace the text in your files in seconds. A free software from KnowleSys. Search & Replace Master is an easy to use search and replace utility loved by webmasters, programmers, and novice computer users alike. Search & Replace...
486.91 KB  
Text Management  -  Replace occurrence of string in files 1.1
This script go thru directory tree and looks for files of specified pattern, and then replace in those files a string with new one, overwriting old file without backups.
Libraries  -  Array::PatternMatcher 0.04
Array::PatternMatcher is a pattern matching for arrays. SYNOPSIS This section inlines the entire test suite. Please excuse the ok()s. use Array::PatternMatcher; Matching logical variables to input stream # 1 - simple match of logical...
6.14 KB  
Libraries  -  PDL::IO::Misc 2.4.3
PDL::IO::Misc is a Perl module with misc IO routines for PDL. rcols() Read ASCII whitespaced cols from a file into piddles and perl arrays (also see "rgrep()"). There are two calling conventions - the old version, where a pattern can be...
2.1 MB  
Network & Internet  -  Studs MVC Framework+ 0.9.7
Studs MVC Framework+ contains a port of Apaches Jakarta Struts to PHP, though the libraries included in the rest of the project are much more vast. In order to implement the Struts port, it was necessary to build a core, object-oriented API in...
112.64 KB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB