For instance, it can be a string literal in the program or read from a local file.
例如,可以是程序中的一串文字或从本地文件读取。
The parameter value can be any valid template expression such as a string literal or a component property.
参数值可以是任何有效的模板表达式,比如字符串字面量或组件的属性。
After the refactoring, all USES of that number or string literal in the class refer to that field, instead of the number or string literal itself.
在重构后,所有对这个类中的数字或字符串文字的使用都将指向该字段,而不是指向数字或字符串文字本身。
This way, you can modify the number or string literal in just one place (the value of the field), instead of doing a search and replace throughout your code.
这样,在一个位置(字段的值)就可以实现对所有数字或字符串文字的修改,再也无需在整篇代码中执行查询和替代了。
The first call passes a string literal but the function parameter is an int.
第一个函数调用传递了一个字符串字面值,但是函数的形参却是int型的。
This example obtains the length of a string literal.
这个范例是在取得字串常值的长度。
A string literal cannot be implicitly converted to an int, so the call is an error.
字符串字面值无法隐式地转换为int型,因而该调用是错误的。
After a string literal has been frozen, code can simply refer to the string using the address in the native image.
某一字符串冻结之后,代码只需使用本机映像中的地址就能引用该字符串。
When a script is compiled, each escape sequence in a string literal is converted into the characters it represents.
当编译脚本时,字符串中的每个转义序列都会转换为它所表示的字符。
The first statement of the function body can optionally be a string literal; this string literal is the function's documentation string, or docstring.
函数体的第一行可以是一个字符串值,这个字符串是该函数的(文档字符串(documentationstring)) ,也可称作docstring 。
White space can appear within a preprocessing token only as a part of a header name or between the quotation characters in a character literal or string literal.
仅当作为头名称的一部分,或在字符文字量或字符串文字量的引号字符之间时,空白才可以出现在预处理标记内部。
A string literal represents a string constant obtained from concatenating a sequence of characters. There are two forms: raw string literals and interpreted string literals.
字符串字面值表示由字符序列构成的字符串常量。有两种格式:原始字符串字面值和解释字符串字面值。
Concatenation is the process to sequentially join multiple pieces of data, usually literal strings with non-string-literal data (most commonly, variables or other literals).
连接操作是一个顺序的连接多个数据片段的过程,通常是连接字符串和非字符串数据(绝大多数是变量或其它字符)。
For example, we could search for concat functions with all string-literal values, then concatenate the arguments into a string value as in Figure 8.
举例来说,我们可以搜索带有全部字符串值的concat函数,随后将参数连接为一个字符串值,如图8所示。
For example, we could search for concat functions with all string-literal values, then concatenate the arguments into a string value as in Figure 8.
举例来说,我们可以搜索带有全部字符串值的concat函数,随后将参数连接为一个字符串值,如图8所示。
应用推荐