substring
n. 子串;子链
2026-03-22 12:24 浏览次数 21
n. 子串;子链
Insert Substring插入子串
terminal substring翻译
Substring Extraction提取子串
initialize substring初始化子串
Substring Variable子串变量
scan substring扫描子串
substring search子串检索
Repeating substring重复子序列
substring expression[计]
well, one very common task is determining whether or not a given substring can be found anywhere within that value.
好的,一个普通的任务是判断给定的子字符串是否能在该值中任意处找到。
next, it breaks the $cols value into two parts: the substring before the first space, and everything after the first space.
接下来,它将 $cols值分为两部分:第一个空格之前的子串,和之后的所有内容。
a flat rope —a rope with no concatenation or substring nodes —has a depth of 1.
扁平rope(flatrope) —没有连接节点或子串节点 —的深度(depth)为1。
ah, good point: the k in ken myer is the fourth character in the string; so how come we didn’t pass substring a 4?
啊,问得好:在kenmyer中的k是字符串中的第四个字符,那为什么我们不传递给substring一个4做为参数?
the for loop iterates over the list of substrings, printing out each substring and its length.
for循环迭代子字符串list,打印每个子字符串及其长度。
the depth of concatenation and substring ropes is one more than the depth of the deepest node they enclose.
有连接和子串的rope的深度比它们所拥有的最深节点的深度大1。
we pass substring a single parameter: the starting position where we want to begin extracting characters.
我们传递给substring一个参数:我们想要开始提取字符的开始位置。
in the insert benchmark, a substring was selected at random from the previous iteration「s output and inserted at a random location in the string.
在插入测评中,从前一次迭代的输出中随机选择一个子串,然后插入到字符串的随机位置。
complex queries are serviced by a combination of direct lookups, convergences against selected parent nodes, and targeted substring searches.
复杂查询是通过组合直接查找和对所选父节点的汇聚及目标子串搜索来完成的。
essentially, it allows operations like equality (=), approximation (~=), greater-or-equal, lesser-or-equal as well as substring comparisons.
最基本的,它允许如等于(=)、约等于(~=)、大于等于、小于等于以及子字符串比较等操作符。
use of a substring node reduces the time for extracting a substring of length n from o(n) to o(log n), and often to o(1).
使用子串节点能够将获取长度为n的子串的时间从o(n)降低到o(logn),通常会减到o(1)。
you can determine the index of the subtotal element by searching for the substring subtotal.
通过搜索子字符串subtotal可以决定subtotal元素的索引。
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.
为了方便,可以用rope的长度代替n,因为长度总是比rope中的子串和连接节点的个数大。
even when ropes are well balanced, obtaining the character at a specified position is an o(log n) operation, where n is the number of concatenation and substring nodes the rope comprises.
即使rope 的均衡很好,获取指定位置的字符也是个o(logn)操作,其中n是rope包含的连接和子串节点的个数。
the cut attribute indicates whether to delete the matched substring segment from the request url before proceeding.
cut属性指出是否在继续之前从请求url 中删除匹配的子字符串片段。
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.
在 第 1部分的图13可以看到,cn属性类型有一个叫做substr 的字段,它定义了子字符串匹配的匹配规则。