包 | XS.tokenizer |
---|---|
继承关系 | class XSTokenizerSplit |
实现接口 | XSTokenizer |
版本 | 1.0.0 |
源代码 | sdk/php/lib/XSTokenizer.class.php |
public void __construct($arg=NULL)
| ||
$arg |
public function __construct($arg = null)
{
if ($arg !== null && $arg !== '') {
$this->arg = $arg;
}
}
public void getTokens($value, $doc=NULL)
| ||
$value | ||
$doc |
public function getTokens($value, XSDocument $doc = null)
{
if (strlen($this->arg) > 2 && substr($this->arg, 0, 1) == '/' && substr($this->arg, -1, 1) == '/') {
return preg_split($this->arg, $value);
}
return explode($this->arg, $value);
}
包 | XS.tokenizer |
---|---|
继承关系 | class XSTokenizerSplit |
实现接口 | XSTokenizer |
版本 | 1.0.0 |
源代码 | sdk/php/lib/XSTokenizer.class.php |
public void __construct($arg=NULL)
| ||
$arg |
public function __construct($arg = null)
{
if ($arg !== null && $arg !== '') {
$this->arg = $arg;
}
}
public void getTokens($value, $doc=NULL)
| ||
$value | ||
$doc |
public function getTokens($value, XSDocument $doc = null)
{
if (strlen($this->arg) > 2 && substr($this->arg, 0, 1) == '/' && substr($this->arg, -1, 1) == '/') {
return preg_split($this->arg, $value);
}
return explode($this->arg, $value);
}
留下一条评论吧!
请到论坛 登录 后刷新本页面!