例如,可以定义始终是浮点数的Price元素或具有字符串子元素FirstName和LastName的PersonName元素。
For example, you could define a Price element that is always a floating-point number or a PersonName element that has FirstName and LastName sub-elements that are both strings.
子序列中的字符与子字符串中的字符不同,它们不需要是连续的。
The characters in a subsequence, unlike those in a substring, do not need to be contiguous.
复杂查询是通过组合直接查找和对所选父节点的汇聚及目标子串搜索来完成的。
Complex queries are serviced by a combination of direct lookups, convergences against selected parent nodes, and targeted substring searches.
代码使用子字符串过滤出这些文件。
它可以创建任意长度的单词前缀索引和可变长度的中缀子字符串的索引。
It can create indexes of word prefixes of arbitrary length and indexes of infix substrings of varying lengths.
较理想的做法是,字符串有一个如error或与之相似的子串(见蓝色粗体的语句),这个子串允许测试者很快地在输出文件中查找到错误。
Ideally, the string of characters should have a substring such as error or something similar (see the statement in bold blue), which will allow the tester to quickly find the error in the output file.
当从原始的输入数据中提取字符串时,试着从原始字符串返回一个子字符串,而不是创建一份拷贝。
When extracting strings from a set of input data, try to return a substring of the original data, instead of creating a copy.
对于这些情形,可添加一条异常规则,将部件指示器处理为令牌中的子字符串。
For such cases, an exception rule can be added for processing part indicators as substrings in tokens.
即使在这样一小段脚本中,您也可以找到一些参数扩展,包括长度、子字符串、模式匹配和模式替换。
You'll recognize several parameter expansions, including length, substring, pattern matching, and pattern replacement in even this short piece of script.
好的,一个普通的任务是判断给定的子字符串是否能在该值中任意处找到。
Well, one very common task is determining whether or not a given substring can be found anywhere within that value.
其次,它允许向规则添加 元素(作为可包含任意字符串的子元素)。
Second, it allows the addition of elements to rules as children that can contain arbitrary strings.
第一个参数是子字符串,第二个参数是搜索字符串,可选的起始位置可以提供作为第三个参数。
The first argument is the substring, the second argument is the search string, and an optional starting position can be supplied as a third argument.
当然,一串离子中的声子和一般材料中的声子有很重大的区别。
Of course there are important differences between the phonons in a string of ions and those in an ordinary material.
子字符串是输入字符串的零个或多个相邻字符串长度单元。
A substring is zero or more contiguous string length units of input string.
这类似于我们在正则表达式中使用“捕捉组”来提取我们需要的子字符串时来替代把一个字符串分隔成好几个的方法。
It is analogous to using "capture groups" in a regular expression to pull out substrings we want, instead of splitting the string in several successive steps to extract the substrings we want.
使用文本索引使文档搜索的效率大大提高,因为不需要像进行子字符串匹配时那样在查询时检查文本数据。
Using a text index makes document search much more efficient, as the text data does not need to be examined at query time like it is done with sub-string matching.
长度参数指定了所需子字符串的长度。
The length argument specifies the length of the desired substring.
这种形式的字符串截断非常简便,只需用冒号分开来指定起始字符和子字符串长度。
This form of string chopping can come in quite handy; simply specify the character to start from and the length of the substring, all separated by colons.
第二个和后续的参数为字符串,它们被当作子查询。
The second and subsequent arguments are strings, which are treated as sub-queries.
在图5中,已经指定字符串第一个字节的长度为1的子字符串。
In Figure 5, the substring of length 1 from the first byte of the string has been specified.
第一个开销就是必须遍历子串和连接节点的上层结构(superstructure)才能到达指定的字符。
The first is that a superstructure of substring and concatenation nodes must be traversed to reach a specified character.
最近我写过一篇关于在Python中实现模糊子串匹配的算法的文章。
I recently wrote about an algorithm for fuzzy matching of substrings implemented in Python.
原因是Rope使用专门的类来表示延迟子串(lazy substring),因此使普通 rope 的charAt的实现保持简单。
The reason is that Rope represents lazy substrings using a dedicated class, allowing the implementation of charAt to remain simple for regular ropes.
为了方便,可以用rope的长度代替n,因为长度总是比rope中的子串和连接节点的个数大。
For convenience, the rope's length can be substituted for n, because the length is always greater than the number of substring and concatenation nodes in the rope.
尽管不能“按位置”修改字符串(如字节组),但程序可以引用字符串的元素或子序列,就象使用任何序列一样。
A program can refer to elements or subsequences of strings just as with any sequence, although strings, like tuples, cannot be modified "in place."
第二行的第一个重写条件表明:下面的规则仅适用于HTTP请求报头中的user - agent字符串包含子字符串msie的情形。
The second line, the first rewrite condition, indicates that following rules only apply when the user-agent string in the HTTP request header contains the substring MSIE.
如果此目录包含超过两个压缩文件,或者超过一个包含子字符串_ Monitor _的Zip文件,则导出将以失败告终。
If this directory contains more than two zip files, or more than one zip file containing the substring _monitor_, the export will fail.
然后,bash 取得MYVAR,找到从字符串 "foodforthought.jpg"开始处开始、且匹配通配符 "*fo"的最长 子字符串,然后将其从字符串的开始处截去。
Then, bash took MYVAR, found the longest substring from the beginning of the string "foodforthought.jpg" that matched the wildcard "*fo", and chopped it off the beginning of the string.
cut属性指出是否在继续之前从请求URL中删除匹配的子字符串片段。
The cut attribute indicates whether to delete the matched substring segment from the request URL before proceeding.
在第1部分的图13可以看到,cn属性类型有一个叫做SUBSTR的字段,它定义了子字符串匹配的匹配规则。
You saw in Part 1, Figure 13 that the cn attribute type has a field called substr, which defines the matching rules for substring match.
应用推荐