Show
Ignore:
Timestamp:
07/04/08 10:01:54 (5 months ago)
Author:
tomi-ru
Message:

うーん。とりあえずテストは追加する

Location:
lang/perl/Catalyst-Controller-Mobile-JP/trunk
Files:
8 added
1 removed
2 modified

Legend:

Unmodified
Added
Removed
  • lang/perl/Catalyst-Controller-Mobile-JP/trunk

    • Property svn:ignore set to
      MANIFEST
  • lang/perl/Catalyst-Controller-Mobile-JP/trunk/lib/Catalyst/Controller/Mobile/JP.pm

    r14885 r15140  
    2424          
    2525        for my $v (ref($value) ? @$value : $value) { 
     26            next if Encode::is_utf8($v); 
    2627            $v = $self->encoding->decode($v); 
    2728        } 
     
    6465    } 
    6566} 
     67 
    66681; 
    6769__END__ 
     
    7173=head1 NAME 
    7274 
    73 Catalyst::Controller::Mobile::JP - 
     75Catalyst::Controller::Mobile::JP - decode/encode with Encode::JP::Mobile 
    7476 
    7577=head1 SYNOPSIS 
    7678 
    77   use Catalyst::Controller::Mobile::JP; 
    78  
    79 =head1 DESCRIPTION 
    80  
    81 Catalyst::Controller::Mobile::JP is 
    82  
    83 =head1 METHODS 
    84  
    85 =over 4 
    86  
    87 =item new 
    88  
    89 =item foo 
    90  
    91 =back 
     79  package MyApp; 
     80  use Catalyst qw/ MobileAgent /; 
     81   
     82  ... 
     83    
     84  package MyApp::Controller::Root; 
     85  use strict; 
     86  use base 'Catalyst::Controller::Mobile::JP'; 
     87   
     88  __PACKAGE__->config->{namespace} = ''; 
     89   
     90  sub foo :Local { 
     91      my ($self, $c) = @_; 
     92       
     93      $c->res->body( 
     94          $c->req->param('text') . "\x{E72A}" 
     95      ); 
     96  } 
    9297 
    9398=head1 AUTHOR