每个UNIX命令都非常简单并且目标明确;将它们串在一起可以产生复杂操作。
Each UNIX command is very simple and targeted; complex actions are produced by stringing them together.
这个简单的应用程序范例定义了两个非常有用的操作,把输入的字符串转化成大写或小写。
This simple example application defines two eminently useful operations that convert input strings either to upper or lower case.
相反,连接字符串操作非常简单,只是运行一个操作码,将一个字符串变量附加到一个现有的字符串变量中即可。
In contrast, concatenating a string is pretty much just a case of running a single opcode to append a string variable to an existing string variable.
因此使用常规字符串操作来格式化数据更简单一些。
So it turns out to be easier to simply format the data using normal string manipulation.
基本上来说,如果您使用简单的字符串拼接或字符串替换操作来创建SQL查询,那么就很可能面临着问题。
Basically, if you're using simple string concatenation or string substitution to create SQL queries, it's likely you're headed for trouble.
确定字符串是否与模式匹配是对正则表达式的最简单应用,如图1所示,而且易于操作。
Determining if a string matches a pattern is the simplest use of regular expressions and, as you see in Figure 1, it's, easy to do.
操作请求接收OpType类型的输入对象,而响应则返回一个简单的字符串。
The request takes an input object of type OpType, while the response returns a simple String.
注意我们在此处进行了一次简单的字符串拼接操作(“. ”在Perl中是拼接操作)。
Notice that we have simple string concatenation here (". "is the concatenation operation in Perl).
另一个功能强大的字符串操作就是简单的in关键字。
Another powerful string operation is the simple in keyword. This offers two intuitive and useful constructs.
如果我们以字符串的形式得到了该X ML文档,那么就可以通过以下简单操作来“解析”该字符串。
If we had this in a string, we could "parse" the string by simply doing the following.
将win32串口操作进行了封装包含简单的测试代码。
The win32 port operation of the package contains a simple test code.
将win32串口操作进行了封装包含简单的测试代码。
The win32 port operation of the package contains a simple test code.
应用推荐