{ "name": "pcre2", "version": "10.48", "summary": "Perl-compatible regular expressions (8/16/32-bit, JIT) with pcre2grep", "category": "library", "license": "BSD-3-Clause", "homepage": "https://pcre2project.github.io/pcre2/", "source": { "url": "https://github.com/PCRE2Project/pcre2/releases/download/pcre2-10.48/pcre2-10.48.tar.bz2", "sha256": "b6c68fdf6f3ac31388b50aa89ff0fc49c00c987c16e7b5146491d12003f2c8ed" }, "watch": {"kind": "github-release", "repo": "PCRE2Project/pcre2", "tag_regex": "^pcre2-([0-9]+(?:\\.[0-9]+)+[a-z]?[0-9]*)$"}, "deps": [], "env_packages": [], "static": true, "nss": false, "check": "bin/pcre2grep -V && echo abc123 | bin/pcre2grep -o '[0-9]+' | has -x 123 && bin/pcre2test -C | has 'Just-in-time compiler support' && CHECK_CPPFLAGS=-DPCRE2_CODE_UNIT_WIDTH=8 check_lib libpcre2-8 pcre2.h 'int e, rc; PCRE2_SIZE eo, *ov; pcre2_code *re = pcre2_compile((PCRE2_SPTR)\"[0-9]+\", PCRE2_ZERO_TERMINATED, 0, &e, &eo, NULL); pcre2_match_data *md; if (!re || pcre2_jit_compile(re, PCRE2_JIT_COMPLETE)) return 1; md = pcre2_match_data_create_from_pattern(re, NULL); rc = pcre2_match(re, (PCRE2_SPTR)\"abc123\", 6, 0, 0, md, NULL); ov = pcre2_get_ovector_pointer(md); printf(\"pcre2 (JIT): [0-9]+ matches abc123 at %d-%d\\n\", (int)ov[0], (int)ov[1]); return rc != 1 || ov[0] != 3 || ov[1] != 6'" }