格式化字符串文字的你的想法是正确的。
格式化字符串文字的你的想法是正确的。然而这格式必须通过事先准备好的声明中。
Your idea of formatting a string literal is right. YET this formatting have to be done via prepared statement.
在重构后,所有对这个类中的数字或字符串文字的使用都将指向该字段,而不是指向数字或字符串文字本身。
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.
仅当作为头名称的一部分,或在字符文字量或字符串文字量的引号字符之间时,空白才可以出现在预处理标记内部。
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.
要使用这个重构,请选择编辑器中的数字或字符串文字,然后按下Ctrl +1并选择Extract to Constant。
To use, select the number or string literal in the editor, press Ctrl + 1 and select Extract to Constant.
上下文字符串看起来类似于清单3中给出的示例。
The context string looks like the example shown in Listing 3.
这里需要一个词汇表数据库来存储要翻译的英文字符串。
A glossary database is required to store the English strings for translation.
您选择的名称是自由格式的上下文字符串,将不会直接影响配置,且只作为管理控制台中的标识符。
The name you choose has no direct effect on the configuration as it is a free-form text string that is used only as a label in the administrative console.
把包含原子值(数字、布尔值或字符串)的变量和另一个此类变量或者文字原子值比较,希望一种类型自动转换成另一种类型。
Comparing a variable having an atomic value (number, Boolean, or string) to another such variable or a literal atomic value, and expecting the type of one to be cast automatically to the other type.
词汇表数据库中有很多英文字符串需要被翻译,如图6所示。
There are a lot of English strings in the glossary database to be translated as shown in figure 6.
可以为RDF文字给定数据类型,如“整数”、“字符串”、“日期”或甚至是“莫尔斯代码”。
RDF literals can be given data types such as "integer", "string", "date", or even "morse code".
那会允许我们不光让按钮显示文字字符串,而且可以显示任何自定义的内容(就象我们在本教程早先时候做的那样)。
That will enable us to have the button display not just text strings, but any custom content as well (just like we did earlier in this tutorial).
花括号指示DB 2计算和处理其中的表达式,而不是将其当作文字字符串。
Curly brackets instruct DB2 to evaluate and process the enclosed expression rather than treat it as a literal string.
考虑以下的中文字符串。
format-number() 中的格式(picture)字符串具有前后是“被动”字符的数字标识符,通常是结果中的文字。
The format (picture) string in format-number() has digit markers with "passive" characters before or after, which are intended to be literal characters in the result
文字text用户将会看到的字符串。
相比之下,使用单引号分隔的字符串将包括在其中的所有内容视为文字字符—两个连续的单引号是一个例外,它们被单纯地当作单引号。
In contrast, single-quoted strings treat everything inside their delimiters as literal characters-except two consecutive single-quotes, which are treated as a literal single-quote.
CLR维护一个名为“Internpool”的表,该表包含程序中的文字字符串。
The CLR maintains a table called the intern pool that contains the literal strings in a program.
URI模板是一个字符串值,由文字字符序列和特殊的标记组成,可以将一系列输入值转换为一个URI。
A URI Template is a string value that includes a mixture of literal character sequences and specialized tokens that, when processed with a set of input values, yields a URI. For example.
翻译器需要打开词汇表数据库,复制英文字符串,翻译字符串,然后将用新语言表达的字符串存储到词汇表数据库。
Translators need to open the glossary database, copy an English string, translate it, and store the strings in the new language to the glossary database.
实现这种自动化主要依靠正则表达式,它是用来查找、匹配和分解字符串的一组真正的象形文字。
The power behind much of this automation is the regular expression, a veritable set of hieroglyphics to find, match, and decompose strings.
至此,已经有了一个标记数据库和一个包含英文字符串和翻译后的字符串的词汇表。
Now, you have a tag database and a glossary that contains the English strings and the translated strings.
现在,可以重新设置活动编码页936并在字符串末尾加4个中文字符。
Now, you can reset the active codepage 936 and add 4 more Chinese characters at the end of the string.
文字字符串是标准的文字字符串。
当你需要在用户界面中添加文字时,你应该总是将每个字符串指定为一个资源。
When you need to add text in the user interface, you should always specify each string as a resource.
而单引号引用的字符串则是简单直接的文字。
正如您可以从输出(清单2)中看到的,perror函数显示了传递给它的字符串,后跟冒号、空格,接着是当前errno值的文字表示形式。
As you can see from the output (Listing 2), the perror function displays the string you pass to it, followed by a colon, a space, and then the textual representation of the current errno value.
文本的准确意思可能需要一些应用上下文。在制定的字符串中添加上下文含义,用|将其与描述文字隔开。
The true meaning of the text may require some application context. Add a contextual meaning to the assigned string, separating it from the description with the | character.
尽管N - Triples确实支持语言说明符和数据类型(正如我稍后将在文字细节中讨论的那样),但所有文字都表示为用引号括起来的字符串。
All literals are presented as strings in quotes, although N-Triples does support language specifiers and data typing, as I discuss later on in The details, literally.
应用推荐