与字符串相关的一些典型的检查,会验证空字符串的长度是否为 0,访问范围超出索引是否导致错误消息或异常,等等。
Some of the typical string-related checks would validate whether an empty string has 0 length, accessing out-of-index results in an error message or exception, and so on.
它可以创建任意长度的单词前缀索引和可变长度的中缀子字符串的索引。
It can create indexes of word prefixes of arbitrary length and indexes of infix substrings of varying lengths.
使用该方法验证的关键在于将更新过的索引和初始输入字符串的长度进行比较。
The key to using the method for validation is to compare the updated index to the length of the original input string.
应用推荐