So Listing 13 does the job, converting string to number and back to string again.
所以清单13同时完成这两项工作,它将字符串转换为数字,处理后再转换回字符串。
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.
在重构后,所有对这个类中的数字或字符串文字的使用都将指向该字段,而不是指向数字或字符串文字本身。
They hold only one piece of data: a string, a number, the undefined value, a reference to another variable.
它只保存一段数据:一个字符串、一个数字、未定义的值以及对另一个变量的引用。
You can use that wildcard at any location of the filter string to match any number of unknown characters.
您可以在过滤器字符串的任何位置使用该通配符,以匹配未知字符的数量。
I can now fill the new empty class with attributes such as string and number types (representing the elements of the character), as well as functions common to this class.
我现在能向这新的空类填充属性,诸如字符串和数字类型(代表了角色的成分),以及这个类中常用的函数。
If string to be searched is found, the result is a number from 1 to the actual length of input string, expressed in the code units that are explicitly specified.
如果找到搜索字符串,则所得结果是一个从1到输入字符串实际长度之间的一个数字,使用显式指定的代码单元来表示。
Here the original query is comparing a string to a number but in the modified query, explicit type-casting has been done.
原来的查询比较一个字符串和一个数字,但是在修改后的查询中执行了显式的类型转换。
In the case of a graphic strings, two bytes constitute a character and you use the number of double bytes to represent the length of the string.
对于图形字符串,两个字节组成一个字符,使用双字节数来表示字符串的长度。
That method then grabs the number and USES it to construct a url string stored in the url variable.
该方法取得电话号码并构造存储在url变量中的ur l字符串。
You can do this in a number of ways, one of which is to send GET information in the HTTP request query string.
可以通过几种方法完成此任务,其中一种方法是在HTTP请求查询字符串中发送GET信息。
Using a string is unwieldy, and it forces you to reserve a specific number of characters in the string for each value or to use a separator character to delimit each value.
使用字符串非常笨拙,而且必须为字符串中的每个值保留固定的字符数,或者使用分隔符来划分。
It USES the base class to generate the first part of the ticket, then it generates the mega number and appends it to the string representation of the ticket.
它将使用基类来生成彩票的第一部分,然后将生成mega号码并将其附加到彩票的字符串表示后面。
Several overloaded versions of these accessors are provided, allowing the properties to be accessed by passing the property name (String), number (int), or property meta object itself.
这些访问器方法有不同的重载版本,可以通过传递属性名(String)、编号(int)或者属性元对象本身来访问属性。
Double click on the LogPrimaryFiles string value and modify the value as required to change the number of primary extents.
双击LogPrimaryFiles字符串值,并根据需要修改此值,以更改主扩展的数量。
JRules allows adding any number of custom properties to rule artifacts, where the custom properties can be simple string descriptions or structured data objects.
JRules允许在规则工件中添加任意数量的定制属性,定制属性可以是简单的字符串描述或结构化的数据对象。
It creates a MessageConnection by passing a string identifying a destination address (which is a valid mobile number) to the Connector.open method.
它通过向Connector .open方法传递一个标识目的地地址的字符串(一个有效的手机号码)来创建MessageConnection。
Ftsearch is the string of the query, and Max is the maximum number of results to return.
ftsearch是查询的字符串,max是要返回的结果的最大个数。
If you omit it, your regex would match any string that begins with a letter, contains two to nine alphanumeric characters, and any number of any other characters.
如果忽略掉它,regex将匹配开头为字母、包含2至9个字母数字字符以及任意数目的任何其他字符的所有字符串。
But really, the computer's just so fast I'm drawing the same string with just a slightly different number again and again after going to sleep one second at a time.
但是真实地,这个计算机到现在为止,我一次又一次用稍微不同的数字,绘画了相同的字符串,在睡眠1秒钟之后。
Threshold is an optional attribute that allows you to limit the number of items in the context variable string set.
threshold是一个可选属性,允许您限制上下文变量字符串集中的项目数量。
Because all character data is a string, Net.Data USES built-in function to perform arithmetic operations on a string that represents a valid number, including those in exponential formats.
由于所有字符数据都是字符串,因此Net . Data将使用内置函数来对表示有效数字(包括用指数形式表示的数字)的字符串执行算术运算。
For this example, you create a count function to read the entire file into one big string, and then count the total number of characters and the number of newline characters.
对于本例来说,创建count函数来将整个文件读取到一个大字符串中,然后计算参数数量及新添参数数量。
Finally, an arbitrary string is added to the URI so that one person on one day can create any number of tag URIs. Here are a few example tag URIs.
最后在URI后面添加一个任意字符串,这样一个人在一天之内就可以创建任意数量的标签uri。
A simple example for main (String ) method executions would be to rerun the join point with different String arrays to generate a number of tests.
执行main (String)方法的一个简单例子是用不同的String数组生成一些测试,并反复运行连接点。
The String class provides a number of opportunities to consume large amounts of memory unintentionally.
string类提供了很多无意中消耗大量内存的机会。
If none of those are found, it even tries converting the number to a string and calling foo (string).
如果均未找到,它甚至会尝试将数字转换成字符串,并调用foo (String)。
The group identifier is set to the JMSXGroupId string property and the sequence number to the JMSXGroupSeq integer property.
组标识符设置为JMSXGroupId字符串属性,序列号设置为JMSXGroupSeq整数属性。
Formats to represent the same real-world entity might be conflicting (for example, number compared with string to represent a postal code).
用于表示相同的现实世界实体的格式可能会发生冲突(例如,使用数字和使用字符串表示邮政编码)。
When doing that, the number of characters to be copied is usually computed based on information about the source string.
在执行这个操作时,要复制的字符的数目通常是基于源字符串的相关信息来计算的。
In this case, you need to parse the number, turning it from a string into a number.
在本例中,需要解析数字,并将其从一个字符串转变成一个数字。
应用推荐