根据代码单元计算的字符串长度。
应用程序域是CLR下最小代码单元。
The AppDomain is the minimum block of code that can be unloaded off the CLR.
lab栏指明了这是哪种代码单元类型。
还了解了代码单元和基于字符的函数的概念。
You also learned about the concept of code units and character-based functions.
在这一部分,所有代码单元都将是PID或进程。
可以使用一个或多个各自编码的代码单元来表示字符。
A character can be represented using one or more of the code units of a respective encoding.
单元测试可验证代码单元的实现是否正确。
Unit tests verify the correct implementation of a unit of code.
该函数包含两个参数,第一个参数是字符串,而第二个参数是代码单元。
The function includes two arguments, the first one being the string and second one the code units.
此部分与Process部分的不同之处在于,它将进程代码分为了更小的代码单元。
This section differs from the process section in that it subdivides the process code into smaller code units.
如果查看ProjectManager,您将发现包括了三个附加的源代码单元。
If you examine the Project Manager, you'll see that there are three additional source code units that have been included.
理论上讲,这个代码片段(或者说是代码单元)是源代码中最小的可测试部分。
Theoretically, this piece, or unit, should be the smallest testable portion of source code.
代码单元的类型是PID,节拍数是 1612,占总节拍数的百分比是 53.27。
The type of code unit is PID, the number of ticks is 1612, and the percentage of total ticks used is 53.27.
的在某些系统中,该名称可能指向一些源代码单元而不是文件,比如源码仓库中的某项。
In some systems, the name may refer to some source code unit other than a file, such as an entry in source repository.
在程序语言中,语法包含了一个抽象的模型,所有格式良好的代码单元(即源文件)都必须匹配这个模型。
With a programming language, the grammar contains an abstract model that all well-formed units of code (that is, source files) must match.
考虑表1中对此字符的不同编码,您会发现不同代码单元中的不同编码的十六进制表示及其长度都有所不同。
Now consider the different encodings for this character from Table 1, and you can see that the hexadecimal representation of different encodings and their length in different code units are diffrent.
除了输入字符串之外,SUBSTRING函数还有其他三个参数,它们分别是:起始位置、长度和代码单元指定。
Along with the input string, the SUBSTRING function has three other arguments, which are start position, length, and code unit specification.
在类中实现时,扫描指定源代码以查找各个代码单元,并确定指定代码的状态(正常、注释、字符串)。
When implemented in a class, scans the specified source code for individual units of code and identifies the color that each should have.
如果找到搜索字符串,则所得结果是一个从1到输入字符串实际长度之间的一个数字,使用显式指定的代码单元来表示。
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.
此工作是通过以下方式实现的:将受影响的代码单元复制到公用框架中,并将其引用的所有数据对象放置到公共数据接口中。
You do this by copying the impacted code units into a common framework and placing all of the data objects they refer to into a common data interface.
使用CODEUNITS16或CODEUNITS32计算代码单元得到的结果是相同的,除非使用了增补字符和代理对。
Counting code units using either CODEUNITS16 or CODEUNITS32 gives the same answer, unless supplementary characters or a surrogate pair is involved.
在很多情形下,您需要根据代码单元计算的字符串长度,可以使用基于字符的函数来获取根据字符串单元计算的字符串长度。
In many situations, you need the string length in terms of code units, the character-based functions could be used to find the length of the string in terms of string units.
然后,它生成一个报告,列出这些代码单元每个获得了多少个“节拍(tick)”(即当代码的特定单元正在运行时发生了多少次系统时钟中断)。
Then it generates a report that lists how many "ticks" each of these units of code received (how many times a system-clock interrupt occurred when that particular unit of code was running).
WebSphereESBV6.2引入了DataHandlers来解决这个问题,并且它们使您能够编写单一的代码单元来处理跨不同传输接收的消息。
WebSphere ESB V6.2 introduces Data Handlers to address this issue, and they let you write a single unit of code to process messages received across a number of transports.
使用增补字符时,对于一个增补字符,使用CODEUNITS16 计算是两个UTF-16代码单元,而使用CODEUNITS32 计算则是一个 UTF-32 代码单元。
When supplementary characters are involved, a supplementary is counted as two UTF-16 code units using CODEUNITS16, or one UTF-32 code unit using CODEUNITS32.
许多开发人员使用称为后测试开发(TAD)的各种测试,你首先编写代码,然后编写单元测试。
Many developers use a variant of testing called test-after development (TAD), whereby you write the code and then write the unit tests.
作为一个有用的副作用,它还能为我们带来代码的单元测试和说明文档。
As a useful side-effect, it also provides us with unit testing and documentation of our code.
当您改变代码、单元测试并执行UAT时,应该识别瓶颈并根据需要进行改进。
As you change code, unit test, and perform UAT, you should identify bottlenecks and implement changes as needed.
一旦通过全部单元测试,代码也就完成了。
最佳的入手方式就是为新代码创建单元测试。
在单元测试中捕获代码注释。
应用推荐