这个复杂的函数调用执行参数解析。
要更改的第一个项将是命令行参数解析。
The first item that you will change will be the command line argument parsing.
这个脚本将这些参数解析为操作和服务器角色。
The script will understand these parameters to be an operation and a server role.
这是一个参数解析库,我是一个学校项目的创建。
This is a parameter parsing library that I created for a school project.
然而,对于更复杂的参数解析,您可能希望查看getopt函数。
However, for more complex argument parsing, you may want to check out the getopt function.
程序预期传入多个参数的可能性,并在每个参数解析时显示它们。
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.
我在本文对命令行参数进行了手工解析,因为在这个例子中它相对简单,同时也是为了演示技术。
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.
代理解析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 .
提供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.
在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.
以下是我的解决方案:在解析用户参数前,将event . title设置为“Alarm !”
Here's my solution: Set event.title to "Alarm!" before parsing user arguments.
在提示符下输入‘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.
应用推荐