We resorted to using a simple switch statement in order to define the class value with more control.
我们使用一个简单的switch语句,以更强的控制能力定义class值。
If the vendor name is recognized, the switch statement follows the expected pattern for that vendor.
如果商家名称被认可,switch语句就会遵照该商家的期望模式。
The bulk of the work is done by the 250 line switch statement that makes up the EmitFragment function.
这些工作由EmitFragment函数完成,其中包含了大约250行的switch语句。
This is part of a large switch statement that enumerates each method; this will become important later.
这是一个列举每种方法的庞大switch语句中的一部分,这些内容待会就变得很重要。
The OMG CORBA specification describes the IDL union as a cross between a C union and a switch statement.
OMGCORBA规范将IDL联合描述成C 联合类型和switch语句的混合物。
In Listing 6, the switch statement determines the value to use based on the first part of the URL path.
在清单6中,switch语句根据URL路径的第一部分决定要使用的值。
This method used a PHP switch statement that sets the value for the class attribute based on the first argument in the URL.
这种方法使用一个php分支语句,根据URL中的第一个参数设置class属性值。
For example, a programmer might include the assertion that you should never reach the default condition in a switch statement.
例如,程序员可能会在程序中包含断言,使您永远也不会到达switch语句中的default条件。
Then it uses the all-too-familiar switch statement to determine the error level and craft an error message appropriate to that level.
然后,它使用再熟悉不过的开关语句来决定错误等级并相应打造与该等级相适应的错误消息。
Both blocks of code evaluate an int value using a switch statement that results in a human-readable string value printed to the console.
这两个代码块都会使用switch语句计算int值,从而得到输出到控制台的供人阅读的字符串值。
Extending the reach of the switch statement, not only to strings but also to other types, has been the subject of repeated enhancement requests over the years.
不仅是把switch语句的范围扩展到字符串上,而且要扩展到其他类型上,这已经是多年来一直反复在提交的一个增强性请求了。
Ceylon also ensures (at compile time) that the switch statement contains an exhaustive list of instance tests or, at a minimum, an else clause to provide complete coverage.
Ceylon还确认(在编译时)switch语句包含详尽的实例测试列表,至少包含else子句,从而提供完整的覆盖范围。
Jumping into a statement expression with goto or using a switch statement outside the statement expression with a case or default label inside the statement expression is not permitted.
不允许使用switch语句或是goto跳入到声明表达式中。
Jumping into a statement expression with goto or using a switch statement outside the statement expression with a case or default label inside the statement expression is not permitted.
不允许使用switch语句或是goto跳入到声明表达式中。
应用推荐