Design Pattern Examples
Overview of object-oriented design patterns
lusplus/helpers/split.h
Go to the documentation of this file.
1
5
6#pragma once
7#ifndef __SPLIT_H__
8#define __SPLIT_H__
9
10#include <string>
11#include <vector>
12
13namespace Helpers
14{
25 std::vector<std::string> split(const char* pszString, const char* splitChars = " ");
26
37 std::vector<std::string> split(const std::string& szString,
38 const std::string& splitChars = " ");
39
50 std::vector<std::wstring> split(const wchar_t* pszString,
51 const wchar_t* splitChars = L" ");
52
63 std::vector<std::wstring> split(const std::wstring& szString,
64 const std::wstring& splitChars = L" ");
65
66} // end namespace
67
68#endif // __SPLIT_H__
The namespace containing all the "helper" functions in the C++ code.
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....
Definition: split.cpp:13