...
首页> 外文期刊>MacTech magazine >Remember when typing felt good?
【24h】

Remember when typing felt good?

机译:还记得打字时感觉不错吗?

获取原文
获取原文并翻译 | 示例
           

摘要

The third weirdness is that replacement templates use $ 1 for groups, rather than the usual 1. This isn't without precedent, but is nonetheless unusual among regular expression implementations. It isn't without explanation, either: Apple is following the ICU specification here (and quite possibly using ICU's implementation internally). The fourth weirdness is just how Cocoa-native this API is. The methods' names are verbose. The matching methods all require options and a range. All of the regex machinery is encapsulated in NSRegularExpression rather than being grafted onto the string class (aforementioned search option aside). And, as I already mentioned, it reuses for match objects a result class that was created for the spelling checker.
机译:第三个怪异之处在于,替换模板将$ 1用于组,而不是通常的$1。这并非没有先例,但在正则表达式实现中还是不寻常的。这也不是没有解释:Apple在这里遵循ICU规范(并且很有可能在内部使用ICU的实现)。第四个怪异之处就是该API的可可性。方法的名称很冗长。匹配方法都需要选项和范围。所有的正则表达式机制都封装在NSRegularExpression中,而不是嫁接到字符串类上(前面提到的搜索选项除外)。而且,正如我已经提到的,它为匹配对象重用为拼写检查器创建的结果类。

著录项

  • 来源
    《MacTech magazine》 |2014年第343期|54-57|共4页
  • 作者

  • 作者单位
  • 收录信息
  • 原文格式 PDF
  • 正文语种 eng
  • 中图分类
  • 关键词

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号