• Wincent
    Menu
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search

Simplify creation of WORegularExpressionMatch objects (REnamer, 1dd2077)

Created 1/18/2008, updated 3/5/2024
  • snippets

Rather than calling pcre_get_substring() just create the string directly ourselves; the total number of allocations is rougly the same but the code is simpler.

Signed-off-by: Greg Hurrell <greg@hurrell.net>

← Fix broken subpattern matching (REnamer, 8c006bb)
Test clean-up (REnamer, 8a5f9d1) →

All snippets

Site
  • About
  • Blog
  • Wiki
  • Snippets
  • Tags
  • Search
External
  • GitHub
  • Twitter
  • YouTube
  • Facebook
  • LinkedIn
Colophon

Made by Greg Hurrell with Rust (with help from Git and Neovim).