|
Zhamao Framework
3.0.0-beta1
A high-performance chatbot + web framework
|
静态 Public 成员函数 | |
| static | fromSegment (mixed $message_segment) |
| static | encode (\Stringable|int|string $msg, bool $is_content=false) |
| static | decode (\Stringable|int|string $msg, bool $is_content=false) |
|
static |
反转义字符串中的CatCode敏感符号
| int | string | \Stringable | $msg | 字符串 |
| bool | $is_content | 如果是解码CatCode本体内容,则为false(默认),如果是参数内的字符串,则为true |
|
static |
转义CatCode的特殊字符
| int | string | \Stringable | $msg | 字符串 |
| bool | $is_content | 如果是转义CatCode本体内容,则为false(默认),如果是参数内的字符串,则为true |
|
static |
从 MessageSegment 转换为 CatCode 字符串