Listing 2 shows more examples of string tests.
清单2显示了字符串测试的更多示例。
The way I have programmed these informal parsing tasks has always been somewhat of a hodgepodge of custom state-machines, regular expressions, and context-driven string tests.
我编写处理这些非正式解析任务的程序的方法总是有点象大杂烩,其中包括定制状态机、正则表达式以及上下文驱动的字符串测试。
Listing 2 shows some of the tests worth creating for any string implementation.
清单2给出了一些值得为任何字符串实现创建的测试。
应用推荐