字符串长度单元属于数值。
首先,我先做一个检查,我们以前使用过字符串长度函数。
First, I'm going to do a sanity check strlen so we've used string length, strlen, before.
子字符串是输入字符串的零个或多个相邻字符串长度单元。
A substring is zero or more contiguous string length units of input string.
请考虑一个包含5个字符串的向量;希望按字符串长度的升序排序。
Consider a vector of five strings; you want to sort them on the basis of increasing string length.
验证错误,如果合并生成字符串的字符串长度超过了第一。
A validation error is generated if the combined strings exceed the length of the first string.
起始位置指定了输入字符串中结果的第一个字符串长度单元所在的位置。
The start position specifies the position within input string that is to be the first string length unit of the result.
清单3展示了相同的代码,但是添加了测试单词字符串长度和频率的逻辑。
Listing 3 shows the same code with logic added that tests for word string length and frequency.
length得到字符串长度“ 1234 ” .length返回4。
这种形式的字符串截断非常简便,只需用冒号分开来指定起始字符和子字符串长度。
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.
您可以提供完全限定路径,只要APPLICID字符串长度不超过256个字符。
You can provide a fully-qualified path as long as the APPLICID string does not exceed 256 characters in length.
可以指定一个可选的字符串长度单元来指明在哪些单元中表示函数的起始位置和结果。
An optional string length unit can be specified to indicate in what units the start and result of the function are expressed.
当String构造器运行时,字符串长度和偏移量被设置成所需要的值。
When the String constructor runs, the length and offset are then set to their desired values.
待执行的字符串操作可能导致不同的输出,取决于计算字符所使用的字符串长度单元。
The string operation to be performed may result in different outputs, depending on the string length unit that is used for counting the characters.
注意点:如果长度大于字符串长度,那么整个字符串将以单独的元素返回。
Note: If length is larger than the length of string, the entire string will be returned as the only element of the array.
我获得了字符计数(计算字符串长度)和单词数(使用空格将字符串断开并计算结果)。
I can get the character count (from the string length) and the word count (by splitting the string by Spaces and counting the results).
数据库表中可能有某些关键字值大于此附件支持的最大字符串长度(252字节)。
Some of the possible key values in the database table are longer than the maximum string length (252 bytes) supported by this add-on.
字符串长度检查:在输入框输入超出长度的字符串将会被允许,但要确保它不被程序通过。
String length check: put excess of characters in a input box should support and make sure it is not taking that.
使用OCTETS作为字符串长度单元时,通过简单地计算字符串的字节数即可确定字符串的长度。
When OCTETS is used as the string length unit, the length of a string is determined by simply counting the bytes of the string.
使用基于字符的字符串函数可以解决获取基于CODEUNITS的字符串长度时的问题。
The character-based string functions can be used to solve the problem of getting the length of string in terms of CODEUNITS.
您将使用POST而不是GET,因为您希望避免任何因查询字符串长度过长和字符串转义而引起的问题。
You use POST instead of GET because you want to avoid any issues with the query string length being exceeded or escaping of strings.
使用CHARACTER_LENGTH并使用OCTETS作为字符串长度单元时也会产生同样的功能。
The same functionality could be derived by using CHARACTER_LENGTH and using OCTETS as string length units.
本文中将使用字节计算字符串长度的方法称作字节语义,而使用字符数计算字符串长度的方法称作字符语义。
The counting of string length using a byte is referred to as byte semantics in this article, and the counting of string length using the number of characters is referred to as character semantics.
此函数与DB2 中的LENGTH 函数类似,并拥有一个可选的字符串长度单元,可以用来表示结果。
This function is similar to the LENGTH function in DB2 and has an optional string length unit, in which the result can be expressed.
因为每个计划项增加的字符串长度总数大体相同,所以随后的稳定期比例可以作为重新设置底层数组大小的参考指标。
Because each plan item increases the total string length by roughly the same amount, the ratio of subsequent plateaus provides an indicator of the resize factor for the underlying array.
在矩阵元素的高次多项式中,任一变元的幂次不得高于9次,矩阵元素最大的字符串长度一般在2500左右。
Any of the high order polynomials of the matrix elements should not be higher than 9 degrees, and, in general, the maximum string length of matrix elements is about 2500.
在很多情形下,您需要根据代码单元计算的字符串长度,可以使用基于字符的函数来获取根据字符串单元计算的字符串长度。
In many situations, you need the string length in terms of code units, the character-based functions could be used to find the length of the string in terms of string units.
第一行包含两个数:一个正整数n(0
The first line contains two integers: a positive integer n (0
正如您所见,以各种编写系统编写的字符串的长度得到了错误的计算。
As you can see, the length of the strings written in various writing systems is miscalculated.
同样,您也可以应用约束来表明字符串条目长度的限制。
Similarly, you can also apply constraints to indicate limits on the length of a string entry.
使用该方法验证的关键在于将更新过的索引和初始输入字符串的长度进行比较。
The key to using the method for validation is to compare the updated index to the length of the original input string.
应用推荐