C++ class to split a string into pieces by given delimiters.