Lambda-lib
[ class tree: Lambda-lib ] [ index: Lambda-lib ] [ all elements ]

Class: String

Source Location: /libs/String.php

Class Overview


String class


Author(s):

  • rooth

Version:

  • 0.0.1

    PHP version 5

Variables

Methods



Class Details

[line 13]
String class



Tags:

author:  rooth
version:  

0.0.1

PHP version 5



[ Top ]


Class Variables

static $charset =  'UTF-8'

[line 15]



Tags:

access:  protected

Type:   mixed


[ Top ]



Class Methods


static method base64_urldecode [line 129]

static void base64_urldecode( str $str)

base64_urldecode



Tags:

access:  public


Parameters:

str   $str   self::base64_urlencode encoded string

[ Top ]

static method base64_urlencode [line 119]

static void base64_urlencode( str $str)

base64_urlencode for uri safe encode



Tags:

access:  public


Parameters:

str   $str   plain text

[ Top ]

static method copyrightYear [line 218]

static void copyrightYear( int $year)

Copyright © yyyy - yyyy



Tags:

access:  public


Parameters:

int   $year   開始年

[ Top ]

static method explode [line 201]

static void explode( str $delim, str $str, int $limit, [str $fallback = ''])

explode のラッパー

limit を必須にすることで、返却要素数を保証する




Tags:

access:  public


Parameters:

str   $delim   区切り文字列
str   $str   入力文字列
int   $limit   返却する要素数
str   $fallback   存在しない時の代替

[ Top ]

static method mbChunk [line 162]

static void mbChunk( str $str, int $width, [str $suffix = '…'], [str $encoding = 'utf-8'])

mb_strimwidth のラッパー

文字数の扱い:文字コードにかかわらず、半角を1文字、全角を2文字、そしてトリムマーカーも含める




Tags:

access:  public


Parameters:

str   $str   対象文字列
int   $width   文字幅
str   $suffix   トリムマーカー
str   $encoding   文字エンコーディング

[ Top ]

static method mb_ltrim [line 57]

static void mb_ltrim( mixed $mixed)

mb_ltrim

文字コード「utf-8」のみ対応。




Tags:

access:  public


Parameters:

mixed   $mixed  

[ Top ]

static method mb_rtrim [line 75]

static void mb_rtrim( mixed $mixed)

mb_rtrim

文字コード「utf-8」のみ対応。




Tags:

access:  public


Parameters:

mixed   $mixed  

[ Top ]

static method mb_trim [line 39]

static void mb_trim( mixed $mixed)

mb_trim

文字コード「utf-8」のみ対応。




Tags:

access:  public


Parameters:

mixed   $mixed  

[ Top ]

static method md5_repeat [line 143]

static void md5_repeat( str $str, [int $salt = ''], [int $repeat = 1])

md5_repeat



Tags:

access:  public


Parameters:

str   $str   対象文字列
int   $salt   ソルト
int   $repeat   繰り返し回数

[ Top ]

static method ntrim [line 93]

static void ntrim( mixed $mixed)

ntrim

文字コード「utf-8」のみ対応。




Tags:

access:  public


Parameters:

mixed   $mixed  

[ Top ]

static method rh [line 21]

static void rh( mixed $mixed)

recursive htmlspecialchars



Tags:

access:  public


Parameters:

mixed   $mixed  

[ Top ]

static method splitFnameExt [line 178]

static array splitFnameExt( string $fname)

ファイル名を「拡張子を除く部分」と「拡張子」に分割する

5.2.0 以上は、以下のビルトイン関数を推奨

$fname = pathinfo($filename, PATHINFO_FILENAME); $ext = pathinfo($filename, PATHINFO_EXTENSION);




Tags:

return:  array('拡張子を除く部分', '拡張子')
access:  public


Parameters:

string   $fname   ファイル名

[ Top ]


Documentation generated on Sat, 21 May 2011 18:34:10 +0900 by phpDocumentor 1.4.1