在调用解密命令之前,清单13中的字符串操作函数将替换丢失的格式。
The string manipulation functions in Listing 13 replace the lost formatting before the decryption command is called.
导致此缺陷的常见原因是传递给字符串操作函数的是缓冲区大小,而不是缓冲区内的剩余字符数。
A common cause of this defect is passing the buffer size, instead of the remaining number of characters in the buffer, to the string manipulation function.
理想情况下,应该使用这些函数更好地执行字符串操作,将更多的应用程序逻辑植入sql层而不是在应用程序中实现这些逻辑。
Ideally, you should be using these functions to do string manipulations better and pushing more application logic into the SQL layer, rather than implementing the same logic in your application.
上一篇文章最后给出了一个名为 convert_to_upper 的函数,它一次操作一个字节,并将字符串转换成大写格式。
The last article ended with a function called convert_to_upper, which operated one byte at a time to convert a string to uppercase.
而根据veracode的Wysopal所说,搜索“gets ”函数——一个臭名昭著的不安全字符串操作——可以揭示很可能易受内存溢出攻击的程序。
And, searching for the function "gets" — a notoriously insecure string operation — can reveal programs that are likely vulnerable to a memory overflow, said Veracode's Wysopal.
PHP的file()函数一步即可完成此操作:它将返回分为若干行的字符串数组。
PHP's file() function does this in one step: It returns an array of strings broken up by lines.
一旦将字符串分解成序列,就可以用新的序列操作函数如insert - before来修改它。
Once you separate the string into a sequence, you can also use the new sequence-manipulation functions, such as insert-before , to alter it.
新增的 tokenize函数执行相反的操作,用分隔符标记字符串之间的边界。
The new tokenize function performs the opposite action, disaggregating a string with a separator to mark the boundaries.
这个函数操作传递给它的数据,并在一个字符串中返回主题化后的内容。
This manipulates the data passed to it and returns the themed content in a string.
考虑在使用新的基于字符的字符串函数执行字符串操作时可能导致这一状况的常见情形。
Consider some common conditions that can cause such situations while you do string manipulation using the new character-based string functions.
首先,从最主要的角度来看,函数的目的是“查找与第一个模式中的值匹配的字符串,然后通过将第三个变量作为要操作的字符串,以第二个模式替换匹配结果”。
First, in broadest terms, the function's purpose is to "match what is in the first pattern, then replace it with the second pattern, using the third argument as the string to operate on."
IDS现在支持一些新的内置SQL函数,这些函数有的执行常见的数学、类型转换和位图操作,有的操纵字符串、日期和日期时间值
IDS now supports the following new built-in SQL functions to perform common mathematical, casting, and bitmap operations, and for manipulating character string, date, and datetime values
preg_replace函数可以对单个字符串或字符串数组进行操作。
The preg_replace function can operate on a single string or an array of strings.
作为DataBlade模块的一部分,这两种数据类型还附带了用于验证数据类型的字符串操纵函数和位操作函数。
As part of a new DataBlade module, these data types come with string manipulation functions to validate the data types and bitwise operation functions.
当要编写规则处理多个相似的设备时,udev可以使用类似C语言的printf函数中的字符串替换操作符。
When writing rules which will potentially handle multiple similar devices, udev's printf-like string substitution operators are very useful.
NT系列的操作系统内部的字符串是Unicode型字符,ANSI型的Win32API函数实际上是Unicode版本的函数的包装。
The Windows NT family operates with Unicode strings internally. The ANSI version of a Win32 API function is a mere wrapper around the real worker – the Unicode version of a function.
本类函数用来对字符串进行各种操作。
当操作字符串并需要检验其长度是否满足某种要求时,你想当然地会使用strlen函数。
When working with strings and you need to check that the string is either of a certain length you'd understandably would want to use the strlen function.
当操作字符串并需要检验其长度是否满足某种要求时,你想当然地会使用strlen函数。
When working with strings and you need to check that the string is either of a certain length you'd understandably would want to use the strlen function.
应用推荐