Java-style StringTokenizer class for C++