根据代码单元计算的字符串长度。
应用程序域是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.
当使用两个16位代码单元序列表示字符时,将该字符称为代理对。
When a character is represented using a sequence of two 16-bit code units, it's called a surrogate pair.
该函数包含两个参数,第一个参数是字符串,而第二个参数是代码单元。
The function includes two arguments, the first one being the string and second one the code units.
理论上讲,这个代码片段(或者说是代码单元)是源代码中最小的可测试部分。
Theoretically, this piece, or unit, should be the smallest testable portion of source code.
此部分与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.
代码单元的类型是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.
在程序语言中,语法包含了一个抽象的模型,所有格式良好的代码单元(即源文件)都必须匹配这个模型。
With a programming language, the grammar contains an abstract model that all well-formed units of code (that is, source files) must match.
除了输入字符串之外,SUBSTRING函数还有其他三个参数,它们分别是:起始位置、长度和代码单元指定。
Along with the input string, the SUBSTRING function has three other arguments, which are start position, length, and code unit specification.
此工作是通过以下方式实现的:将受影响的代码单元复制到公用框架中,并将其引用的所有数据对象放置到公共数据接口中。
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.
然后,它生成一个报告,列出这些代码单元每个获得了多少个“节拍(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.
首先编写单元测试,然后再编写要测试的类代码。
如果你觉得一段代码难于理解,那么就写一个单元测试。
If you think a piece of code is confusing, write unit tests for it.
通过生成代码覆盖率的具体数值,Cobertura将单元测试从一种艺术转变为一门科学。
By producing hard Numbers for code coverage, Cobertura transforms unit testing from an art to a science.
最佳的入手方式就是为新代码创建单元测试。
在实际开始编写产品代码之前,我们需要编写单元测试。
Before writing any production code, we'd write our unit tests.
这个名称背后的思想是软件开发的最佳实践,例如编写单元测试和代码复查。
The idea behind the name is that there are best practices for software development, such as writing unit tests and code reviews.
我们需要一个强大的集成开发环境(IDE)来对我们的代码进行开发和单元测试。
We wanted a strong integrated development environment (IDE) to develop and unit test our code.
因而,您和您的团队开始质疑单元测试的价值:如果它们对代码质量那么重要,那又为什么会让人这么头痛呢?
Consequently, you and your team have begun to question the value of unit tests: if they are so important to code quality, why are they such a pain?
GWT代码的基本单元是模块。
当您改变代码、单元测试并执行UAT时,应该识别瓶颈并根据需要进行改进。
As you change code, unit test, and perform UAT, you should identify bottlenecks and implement changes as needed.
一旦通过全部单元测试,代码也就完成了。
应用推荐