Design Pattern Examples
Overview of object-oriented design patterns
split.cpp File Reference

Implementation of the split functions, for splitting a narrow character string on delimiters. More...

#include <cstring>
#include "split.h"
Include dependency graph for split.cpp:

Go to the source code of this file.

Namespaces

namespace  Helpers
 The namespace containing all the "helper" functions in the C++ code.
 

Functions

std::vector< std::string > split (const char *pszString, const char *splitChars=" ")
 Split the given string into a list of strings given the character on which to split. If the split character does not appear, return the original string as the first entry in the list.
 
std::vector< std::string > split (const std::string &szString, const std::string &splitChars=" ")
 Split the given string into a list of strings given the character on which to split. If the split character does not appear, return the original string as the first entry in the list.
 

Detailed Description

Implementation of the split functions, for splitting a narrow character string on delimiters.

Definition in file split.cpp.