原始xml文档中出现的标记列表,由新行字符分隔。
A list of tags that occur in the original XML document, separated by newline characters.
为了让方法根据新行字符拆分各行,必须显式地指定新行字符。
To have the method split the lines based on a newline character, you have to explicitly specify the newline character.
我们不必添加一个新行字符,如果这样做了,测试就会失败。
We have not added a newline character; if we did, the test would fail.
现在可以看看我们是否能够匹配的新行字符,因为我们的例子中,我们将使用了 n。
Now lets see if we can match a new line character, for our example we will use n.
尤其是在最后一个例子中,如果一些文件名已经包含新行字符串,那么将新行字符串转换成null字符串将导致错误。
In particular, the final example of translating new line characters to nulls would not work if some file names already contained new line characters.
默认情况下,点匹配除新行以外的任何字符。
请注意,在文件中,行之间用新行(或行结束)字符区分。
Notice that the lines in the file are distinguished by a newline (or end-of-line) character.
模式n:使点匹配任何字符,包括新行。
Mode n: Make the dot match any character, including new lines.
这种方法删除代码中所有不必要的字符,比如制表符(tab)、新行和空格。
Minification removes from the code all the unnecessary characters, such as tabs, newlines, and Spaces.
通常IFS变量应该有一个空格、一个制表符和一个新行的值 --这些字符都会被作为一个空格字符来处理。
Normally the IFS variable would have the value of a space, a tab, and a newline -- any of those characters would be treated like a space character.
可以用两种方法避免这种尴尬的现象:禁止这种令人讨厌的新行,或者提前设置适当的字符串作为变量。
You can avoid this embarrassing fate a couple of ways: suppress the troublesome new line, or set the appropriate string as a variable ahead of time.
XML并没有包含任何新的行或CR代码,它只不过是一个冗长的xml字符串。
The XML doesn't contain any new line or CR codes, so it's just one big long string of XML.
它先将您的字符串参数写至标准错误(提供它用于定制消息),接下来写入一个冒号和一个空格,然后是系统错误消息,后面是新的一行。
It writes your string argument to stderr (standard error), followed by a colon and a space, then the system error message followed by a newline.
此脚本将此文件文本载入到一个字符串变量,将其explode到一个使用了新行的数组并根据此数组的第一个元素决定商家的名称。
The script loads the file text into a string variable, explodes it into an array using new lines, and determines the name of the vendor from the first element of the array.
该脚本的第一行代码实例化了一个新的Sql对象:设置JDBC连接字符串、用户名、密码和 JDBC驱动器类。
The first line of this script instantiates a new Sql object by setting the JDBC connection string, username, password, and JDBC driver class.
虽然split命令将删除新行,但是当使用file命令(与fgets命令一样)时,新行仍将被附加到数组中的字符串上。
While the split command drops the newlines, the newlines are still attached to the strings in the array when using the file command (as with the fgets command).
在清单16中,第1行创建一个新的错误消息,当遇到none值(或空字符串)时显示它。
In Listing 16, Line 1 shows the creation of a new mapped error message that is displayed when a value of None (or an empty string) is encountered.
为每一行数据所创建的索引成为了计数器,因为每当新的一行数据加进来的时候,这个索引是唯一的增量,这也意味着计数器将与字符串数据的总量同步变化。
The index created for each row of data becomes the count because it was only incremented when a new row of data was found, meaning it is in sync with the amount of data in the string.
因此,如果新行嵌入字段很重要,输入应分成在其中保留换行字符的方式。
As a consequence, if newlines embedded within fields are important, the input should be split into lines in a manner which preserves the newline characters.
句点匹配除了新行符的任何字符。(这也适用于集合,见下)
The period matches any character except the newline character. (This is also applicable within sets - see below).
指定如果在完成列表中键入项的所有字符然后按enter,将自动创建新行并且光标移动到新行。
Specifies that if you type all the characters for an entry in the completion list and then press ENTER, a new line is created automatically and the cursor moves to the new line.
指定如果在完成列表中键入项的所有字符然后按enter,将自动创建新行并且光标移动到新行。
Specifies that if you type all the characters for an entry in the completion list and then press ENTER, a new line is created automatically and the cursor moves to the new line.
应用推荐