Registry / utility / pcre
library8.45vcpkgunverified

PCRE is a library for Perl Compatible Regular Expressions.

vcpkg install pcre
INSTALL
IMPORT
SIG · PCRE
P
pcre
utilitycppv8.45
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

pcre.h
#include <pcre.h>

Compiles a simple regex pattern.

#include <pcre.h> #include <iostream> int main() { const char *error; int erroffset; pcre *re = pcre_compile("test", 0, &error, &erroffset, nullptr); if (re == nullptr) { std::cerr << "Compilation failed: " << error << std::endl; return 1; } std::cout << "Regex compiled" << std::endl; pcre_free(re); return 0; }
Debug
Known issues
gotchaPCRE has two APIs: pcre (8-bit) and pcre16/pcre32; ensure you link the correct library.
fix
Use PCRE::pcre for 8-bit; for 16-bit use PCRE::pcre16, etc.
affects: *
Upgrade
Version history
8.45latest on vcpkg
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources

No resource links recorded.

pcre — pip install pcre · libregistry