PHP Class phprs\util\NestedStringCut

Author: caoym
Mostra file Open project: caoym/phprs-restful Class Usage Examples

Public Methods

Method Description
__construct ( $str )
getSnippets ( )
getText ( )
mapPos ( integer $pos ) 将剪切后的字符串位置转换成原始字符串位置

Private Methods

Method Description
stateESC ( $str, $pos, &$next ) 进入转义状态
stateNormal ( $str, $pos, &$next ) 普通状态
stateQ ( $str, $pos, &$next ) 进入引号状态

Method Details

__construct() public method

public __construct ( $str )

getSnippets() public method

public getSnippets ( )

getText() public method

public getText ( )

mapPos() public method

将剪切后的字符串位置转换成原始字符串位置
public mapPos ( integer $pos )
$pos integer