程序预期传入多个参数的可能性,并在每个参数解析时显示它们。
The program anticipates the possibility of multiple parameters passed and prints each one as it is parsed.
在函数内实施参数解析就变得较为简洁,函数调用也变得更具可读性,不易出错。
The implementation of the parameter parsing within the function becomes a little cleaner, and calls to the function becomes much more readable, and less error-prone. For example.
main方法然后会将参数解析委托给CmdLineParser对象,后者将返回Options对象。
The main method then proceeds to delegate the parsing of the argument to a CmdLineParser object, which then returns an Options object.
标准的Rails参数解析过程(由CGI实现)捕获了解析过程中的任何异常,因此特定的解析器能够被用于任何mime类型。
Specific parsers can be added for any mime type, with the standard Rails parameter parsing (from CGI) catching any that fall through the gaps.
请特别注意清单中的以下代码行:(1):urlarguments类是一个小型实用工具类,它将URL参数解析为散列表对象。
Pay particular attention to these lines in this listing: (1) : the UrlArguments class is a small utility class that parses the URL arguments into a hashtable object.
这些对象引用参数在部署描述符(将在运行时解析)中作为资源引用公开。
These object reference parameters are exposed as resource references in the deployment descriptor which will be resolved at run time.
不过,您可以向结果指定两个额外参数中的一个来处理推测性解析。
But you may specify either of two extra arguments to a production to handle speculative parses.
我们布置的家庭作业是要求修改这个类,使之能够打印每一个方法的参数。这对于理解 SAX 的解析与回调过程是十分有好处的。
The assignment, which was to modify this class so that it prints out the arguments supplied to each method, provided some useful insight into the SAX parsing and callback process.
请注意将命令行参数直接传递给解析引擎的方式。
Note how the command-line arguments are passed directly to the parsing engine.
查询只需解析(或准备)一次,但是可以用相同或不同的参数执行多次。
The query only needs to be parsed (or prepared) once, but can be executed multiple times with the same or different parameters.
我在本文对命令行参数进行了手工解析,因为在这个例子中它相对简单,同时也是为了演示技术。
I've used manual parsing of command-line arguments in this article, since it was relatively simple, in this case, and to demonstrate the technique.
这个集合解析器查询用户提供的已命名查询,附加位置参数,并针对数据库执行JDBC语句。
This collection resolver looks up the named query as provided by the user, attaches the position parameters, and executes JDBC statements against the database.
代理解析url字符串中的参数,并根据方法参数中的值作出反应。
The agent parses the arguments in the URL string and reacts based on the value in the method argument.
Rails并不会解析带有这些请求的参数,但是它可能没有足够的保护你的应用程序。
Rails does not parse the parameters provided with these requests, but that may not be enough to protect your application.
清单3展示了如何使用这个python库中的optparse来进行其他三个参数的命令行解析。
Listing 3 shows how you used optparse from the python library for command line parsing of the other three parameters.
最后,可以通过在查询字符串中包含singleevents参数使重复出现的事件更易于解析。
Finally, you can make recurring events easier to parse by including the singleevents parameter in the query string.
当然,通过指定dparser . parser . parse的print _ debug_info参数,我的推测性解析所显示的所有信息也都显示出来(以稍微不同的格式)。
Of course, all the information displayed by my speculative productions is also displayed (in slightly different form) by using the print_debug_info argument to dparser.Parser.parse .
目前,该方法接受解析树(作为一个XPathNode对象)作为参数,并返回DFATable的实例。
The method accepts a parse tree (as an XPathNode object) as parameter and, for now, returns an instance of DFATable.
提供RESTfulAPI的Web服务接收几个参数,解析它们,组合一个响应,并返回一个响应(通常是较少的文本)给用户。
A web service that provides a RESTful API takes in a few parameters, interprets them, pieces together a response, and flushes a response (usually a relatively small amount of text) back to the user.
尽管DB 2同时支持SQL和XQuery作为顶层语言,但是XQuery不提供解析参数标志符的手段。
Although DB2 supports both SQL and XQuery as top-level languages, XQuery doesn't provide a means to resolve parameter markers.
尽管DB 2完全支持XQuery作为顶层语言,但是最初的XQuery规范并不解析参数标志符。
Although DB2 fully supports XQuery as a top-level language, the initial XQuery specification didn't address parameter markers.
QueryPath附带的例子展示了如何设置连接参数、对SPARQL 端点执行 SPARQL 查询以及解析复杂的、多名称空间的文档。
The examples that ship with QueryPath show how to set connection parameters, execute SPARQL queries against SPARQL endpoints, and parse complex, multi-namespaced documents.
在CPAN档案文件中找到AppConfig 1.56,即用于读取配置文件和解析命令行参数的Perl5模块。
Find AppConfig 1.56, the Perl5 module for reading configuration files and parsing command-line arguments, in the CPAN archives.
然后将在Portlet的初始阶段对缓存进行解析,并将其作为实例参数保留。
The cache is then resolved during the init phase of the portlet and kept as an instance parameter.
最后,我实际调用了在解析wsdl时创建的、传入object参数中的操作。
And finally, I actually invoke the operation passing in the Object parameters created while parsing the WSDL.
如果有一个本身以“Between”开头的参数值,会按提取值范围的方式解析它。
This means that if you have a single parameter value that starts with "Between", it would be parsed in a way to extract a range of values.
在提示符下输入‘perldocGetopt:Std’或‘perldoc Getopt:Long’检索这些模块的文档,它使得解析命令行参数更容易。
Type 'perldoc Getopt: : Std' or 'perldoc Getopt: : Long' at your prompt to retrieve the documentation for these modules, which make parsing command-line arguments easy.
Boost的parse_command _ line例程解析argc和argv参数。
Boost's parse_command_line routine parses the argc and argv arguments.
解析命令行参数后,CanaryHandler打开与远程SPOT的radiostream连接,如清单3所示。
After parsing the command-line arguments, CanaryHandler opens a radiostream connection to the remote SPOT, as shown in Listing 3.
这个调用从./linux/kernel/printk.c 中的printk函数开始,它会在使用 va_start解析可变长度参数之后调用vprintk(在同一个源文件)。
The call begins in ./linux/kernel/printk.c in the printk function, which calls vprintk (in the same source file) after resolving the variable-length arguments using va_start.
应用推荐