summaryrefslogtreecommitdiff
path: root/tests/utils/test4.cpp
blob: efc5b34c857ea13eb95cd2b2ded9e9242863a882 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#include "StringUtils.hpp"

#include <vector>
#include <string>
#include <iostream>

using namespace std;

int main( void )
{
	vector<string> parts = split( "this.is.a..test", ".", true );
	
	for( size_t i = 0; i < parts.size( ); i++ ) {
		cout << i << ". '" << parts[i] << "'" << endl;
	}
	
	return 0;
}