We use the STR function to parse the multi-line string literal.
我们使用了str函数来解析这个多行字符串。
Another useful way to define a string is generally used for multi-line string definitions.
另一种有用的字符串定义方法通常用于多行字符串定义。
And, as a last resort, you can try converting the multi-line string into a long string by replacing the special characters that represent CR, LF, etc.
作为最后的手段,您可以尝试通过替换表示CR,LF等的特殊字符将多行字符串转换为长字符串。
Theseus left a line of string behind him when he entered the maze.
当忒修斯进入迷宫时,他在身后留下了一根绳子。
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.
可以用两种方法避免这种尴尬的现象:禁止这种令人讨厌的新行,或者提前设置适当的字符串作为变量。
As shown below, each line in every file provided will be transformed into an inflected alphanumeric string.
如下所示,提供的每个文件中的每一行将被转换为变形后的字母数字字符串。
When the search string is found in one of the tree items, that tree item is selected (line 48).
当在一个树项目中找到搜索字符串时,将会选定该树项目(第48行)。
Its only argument is the address of the string to be displayed, which is passed on to it by pushing the address of the string in the stack (line 30).
它惟一的参数是要显示的字符串的地址,通过将字符串的地址压入堆栈(第30行),将这个参数传递给它。
When executed from a command line, the program reads the XML content from a file into a string variable.
在命令行中执行的时候,该程序将XML内容从文件读入一个字符串变量。
The print statement in Line 8 is another of those string formatting operations that was discussed earlier.
第8行中的打印语句也是前面讨论过的字符串格式操作。
We can also replace the text in the buffer at a given line number or remove the first occurrence of a string in the current line, using this utility.
我们还可以使用该命令替换给定行号的缓冲区中的文本,或者删除当前行中第一个出现的字符串。
So, I'm getting a string and so what really am I doing in this line of code?
那么,我得到一个字符串,这行代码实际上是干什么的呢?
The XML doesn't contain any new line or CR codes, so it's just one big long string of XML.
XML并没有包含任何新的行或CR代码,它只不过是一个冗长的xml字符串。
For example, Line 2 shows a check that determines if an empty string has been provided.
例如,第2行检查提供的是否是空字符串。
Line 1 uses splitlines(), a string function, to separate the list of servers, and then these values are stored as a variable, appServers.
第 1 行使用一个字符串函数splitlines() 分隔服务器列表,然后将这些值作为一个变量appServers 进行存储。
The next line - public static void main (String args) - generally unleashes an avalanche of questions about implementation details: What is static?
下一行—publicstaticvoidmain (Stringargs)—通常将引发关于实现细节的一连串问题:什么是static ?
Line 2 creates a string data element based on the definition for element0 in schema1 and the content of field0.
第2行代码基于schema1中element0的定义和field0的内容创建了字符串数据元素。
A JPQL query is specified as a String (line 2).
JPQL查询被指定为一个String(第2行)。
A title, which expresses a short, human readable subject line for the entry, and can be a blank string (represented by an empty title element, such as).
标题(title),简短的、人类可读的记录主体行;允许使用空字符串(用空的标题元素表示,如)。
Exec -this handy PHP function sends a string for the operating system's command line to process.
exec—这个方便的php函数发送一个字符串供操作系统的命令行处理。
Thus, if you make several println calls in succession, each string in the output will appear on a separate line.
这就说明,如果你连续调用多个println,结果中的每个字符串会单独占用一行。
This line also traps for a null value and converts it to an empty string to prevent problems during later processing.
这一行代码也会专门处理null值,它将null值转换为一个空字符串以避免后面的处理出现问题。
The auditing log is specified as a flat file called audit.log in which every line is a comma-separated string of the format timestamp,jar id,sweet type code, jar size code,mass of jar.
审计日志被指定为一个名为 audit.log 的平面文件,其中的每一行都是一个以逗号分隔的字符串,格式为 timestamp,jarid,sweettypecode, jarsize code,mass of jar。
EntityManager is the factory that constructs an executable query instance given a JPQL string (line 3).
EntityManager是构造一个包含给定j PQ l字符串的可执行查询实例的工厂(第3行)。
The new regular expression in the second line matches any string that contains MSIE or starts with Lynx.
第二行中的新正则表达式匹配任何包含MSIE或以Lynx开头的字符串。
Note: fgets reads at most BUFSIZ - 1 chars from fin and stores them in the char string line.
注:fgets最多从fin读取BUFSIZ-1个字符并将它们存储在字符串行。
The mkewuid script function will output a record line for each string of characters provided on the command line.
mkewuid脚本函数为命令行上提供的每个字符串输出一个记录行。
At line 2, the programmer thought he'd replaced all of the b's in the string with p's.
在第2行,程序员认为他已经用p替换了字符串中的所有b。
Line 4 encodes the string Double secret probation and USES Base64 to turn the encrypted string into printable characters that can easily be transmitted over E-mail, say.
行4编码字符串Doublesecretprobation并使用Base64将加密了的这个字符串转变为可打印的字符,以便于用电子邮件等程序传输。
Line 4 encodes the string Double secret probation and USES Base64 to turn the encrypted string into printable characters that can easily be transmitted over E-mail, say.
行4编码字符串Doublesecretprobation并使用Base64将加密了的这个字符串转变为可打印的字符,以便于用电子邮件等程序传输。
应用推荐