Eric T Dawson
December 2015
There are two main kinds of functions in this library:
-
String manipulation
- Capitalize a string
- Reverse a string
- Reverse compliment a string
- Split a string by a delimiter
- Join a vector of strings by a delimiter
-
Threadpool-style work functions
- Apply a function to a vector of inputs
#include "pliib.hpp"
using namespace pliib;
// Split a string:
string s = "ACT;TGC;AAA;aNoThErString;"
vector<string> ret;
split(s, ';', ret);
// ret is modified to hold the tokens of s split by semicolons.
// ret = {"ACT", "TGC", "AAA", "aNoThErString"}
MIT
Eric T Dawson
github: edawson