NAME

IOas::CP932IBM - provides CP932IBM I/O subroutines for UTF-8 script

SYNOPSIS

use IOas::CP932IBM;

  # Octet Length as I/O Encoding
  $result = IOas::CP932IBM::length($utf8str);
  $result = IOas::CP932IBM::sprintf($utf8format, @utf8list);
  $result = IOas::CP932IBM::substr($utf8expr, $offset_as_cp932ibm, $length_as_cp932ibm, $utf8replacement);
  $result = IOas::CP932IBM::substr($utf8expr, $offset_as_cp932ibm, $length_as_cp932ibm);
  $result = IOas::CP932IBM::substr($utf8expr, $offset_as_cp932ibm);

  # String Comparison as I/O Encoding
  $result = IOas::CP932IBM::cmp($utf8str_a, $utf8str_b);
  $result = IOas::CP932IBM::eq($utf8str_a, $utf8str_b);
  $result = IOas::CP932IBM::ne($utf8str_a, $utf8str_b);
  $result = IOas::CP932IBM::ge($utf8str_a, $utf8str_b);
  $result = IOas::CP932IBM::gt($utf8str_a, $utf8str_b);
  $result = IOas::CP932IBM::le($utf8str_a, $utf8str_b);
  $result = IOas::CP932IBM::lt($utf8str_a, $utf8str_b);
  @result = IOas::CP932IBM::sort(@utf8str);

  # Encoding Convert on I/O Operations
  $result = IOas::CP932IBM::getc(FILEHANDLE);
  $scalar = IOas::CP932IBM::readline(FILEHANDLE);
  @list   = IOas::CP932IBM::readline(FILEHANDLE);
  $result = IOas::CP932IBM::print(FILEHANDLE, @utf8str);
  $result = IOas::CP932IBM::printf(FILEHANDLE, $utf8format, @utf8list);

Count Length by

--------------------------------------------------------
count by    count by              count by octet
octet       UTF-8 codepoint       in I/O encoding
(useful)    (not so useful)       (useful)
--------------------------------------------------------
length      UTF8::R2::length      IOas::CP932IBM::length
sprintf                           IOas::CP932IBM::sprintf
substr      UTF8::R2::substr      IOas::CP932IBM::substr
--------------------------------------------------------

Compare String by

--------------------------------------------------------
compare by                        compare by
script encoding                   I/O encoding
--------------------------------------------------------
cmp                               IOas::CP932IBM::cmp
eq                                IOas::CP932IBM::eq
ne                                IOas::CP932IBM::ne
ge                                IOas::CP932IBM::ge
gt                                IOas::CP932IBM::gt
le                                IOas::CP932IBM::le
lt                                IOas::CP932IBM::lt
sort                              IOas::CP932IBM::sort
--------------------------------------------------------

I/O Operations

--------------------------------------------------------
raw I/O       I/O operations      I/O operations
operations    in UTF-8 encoding   with encoding convert
--------------------------------------------------------
getc          UTF8::R2::getc      IOas::CP932IBM::getc
<FILEHANDLE>                      IOas::CP932IBM::readline
print                             IOas::CP932IBM::print
printf                            IOas::CP932IBM::printf
--------------------------------------------------------

AUTHOR

INABA Hitoshi <ina@cpan.org>

This project was originated by INABA Hitoshi.

LICENSE AND COPYRIGHT

This software is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.

This software is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.