Design Pattern Examples
Overview of object-oriented design patterns
lusplus/helpers/split.h File Reference

Declaration of the split functions, for splitting a string on delimiters. More...

#include <string>
#include <vector>
Include dependency graph for lusplus/helpers/split.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

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

Macros

#define __SPLIT_H__
 

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.
 
std::vector< std::wstring > split (const wchar_t *pszString, const wchar_t *splitChars=L" ")
 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::wstring > split (const std::wstring &szString, const std::wstring &splitChars=L" ")
 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

Declaration of the split functions, for splitting a string on delimiters.

Definition in file lusplus/helpers/split.h.

Macro Definition Documentation

◆ __SPLIT_H__

#define __SPLIT_H__

Definition at line 8 of file lusplus/helpers/split.h.