NAME
Sisimai::String - String related class
SYNOPSIS
use Sisimai::String;
my $s = 'envelope-sender@example.jp';
my $r = 'envelope-recipient@example.org';
print Sisimai::String->token( $s, $r ); # 2d635de42a44c54b291dda00a93ac27b
print Sisimai::String->is_8bit( \'猫'); # 1
DESCRIPTION
Sisimai::String provide utilities for dealing string
CLASS METHODS
token( sender, recipient )
token()
generates a token: Unique string generated by an envelope sender address and a envelope recipient address.
my $s = 'envelope-sender@example.jp';
my $r = 'envelope-recipient@example.org';
print Sisimai::String->token( $s, $r ); # 2d635de42a44c54b291dda00a93ac27b
is_8bit( Reference to String )
is_8bit()
checks the argument include any 8bit character or not.
print Sisimai::String->is_8bit( \'cat' ); # 0;
print Sisimai::String->is_8bit( \'ねこ' ); # 1;
AUTHOR
azumakuniyuki
COPYRIGHT
Copyright (C) 2014 azumakuniyuki <perl.org@azumakuniyuki.org>, All Rights Reserved.
LICENSE
This software is distributed under The BSD 2-Clause License.