is_period 函数
检验重复指定模式能否恰好重构目标文本。
语法
IsPeriod(pattern, text)is_period(pattern, text)
参数与选项
pattern | 候选重复块。 |
|---|---|
text | 目标文本。 |
示例
- 周期检验
IsPeriod('ab', 'ababab')返回 true。
检验重复指定模式能否恰好重构目标文本。
IsPeriod(pattern, text)is_period(pattern, text)pattern | 候选重复块。 |
|---|---|
text | 目标文本。 |
IsPeriod('ab', 'ababab')返回 true。