modified_cpplint.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:linter 作者: ethz-asl 项目源码 文件源码
def Match(pattern, s):
  """Matches the string with the pattern, caching the compiled regexp."""
  # The regexp compilation caching is inlined in both Match and Search for
  # performance reasons; factoring it out into a separate function turns out
  # to be noticeably expensive.
  if pattern not in _regexp_compile_cache:
    _regexp_compile_cache[pattern] = sre_compile.compile(pattern)
  return _regexp_compile_cache[pattern].match(s)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号