与字符串相关的一些典型的检查,会验证空字符串的长度是否为 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.
与字符串相关的典型检查包括检查空字符串的长度是否为 0以及访问范围超出索引是否导致错误消息/异常。
Some of the typical string-related checks include verifying that an empty string has 0 size and accessing out of index from the string results in an error message/exception.
除了要比较长度和索引值是否相等之外,还必须检查是解析后的nullNumber还是一个空的输入字符串(或长度为0)。
In addition to comparing the length and index values for equality, you must also check for either a null Number after parsing or an empty input string (" "or length of zero).
使用String中的方法时索引值为负或者大于字符串的长度时抛出。
Thrown by string methods to indicate that an index is either negative or greater than the size of the string.
使用String中的方法时索引值为负或者大于字符串的长度时抛出。
Thrown by string methods to indicate that an index is either negative or greater than the size of the string.
应用推荐