perl-unicode

Unicode-Collate-0.08

2001-08-21 03:57:43

Hello, everyone. 

Now Unicode::Collate 0.08 is available from CPAN.

http://search.cpan.org/search?dist=Unicode-Collate-0.08

new method: index()

 $position           = $UCA->index($string, $substring);
($position, $length) = $UCA->index($string, $substring);

-- see 6.8 Searching, UTR #10. 

If $substring matches a part of $string, 
it returns the position of the first occurrence
of the matching part in scalar context;
in list context, returns a two-element list 
of the position and the length of the matching part. 

If $substring does not match any part of $string,
returns -1 in scalar context and an empty list in list context. 

please see its pod for the detail.

Regareds, SADAHIRO Tomoyuki

<Prev in Thread] Current Thread [Next in Thread>
  • Unicode-Collate-0.08, SADAHIRO Tomoyuki <=