1) Tutorials for learning how to use Regex Boost Library
https://medium.com/factory-mind/regex-tutorial-a-simple-cheatsheet-by-examples-649dc1c3f285
https://theboostcpplibraries.com/boost.regex
Discussions on issues with strdup:
https://stackoverflow.com/questions/12984948/why-is-strdup-considered-to-be-evil
Portability is an issue, with the following defined if compiled in VSC++ with Windows OS
// String copy, allows portability between Visual Studio C++ and UNIX compilers
#if defined(WIN32) || defined(_WIN32) #define strdup _strdup #endif
2) Installation Instructions
sudo apt-get install libboost-regex-dev
g++ -shared -fPIC regex.cpp -lboost_regex -o $QHOME/l64/regex.so
1) Tutorials for learning how to use Regex Boost Library
It can only accept strings/symbols. There are two flavours provided here in the repo, i.e. cppStdHash and cppMapHash. The former is part of the functional lib (i.e. faster though less collision-proof), while the latter from the unordered_map library that's usually used for building hash tables (i.e. likely more collision-proof).
2) Installation Instructions
g++ -shared -fPIC hash.cpp -o $QHOME/l64/hash.so
Run the following example command:
nm -D --defined-only regex.so | grep -v _