diff options
Diffstat (limited to 'tests/utils/test4.cpp')
-rwxr-xr-x | tests/utils/test4.cpp | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/utils/test4.cpp b/tests/utils/test4.cpp new file mode 100755 index 0000000..efc5b34 --- /dev/null +++ b/tests/utils/test4.cpp @@ -0,0 +1,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; +} |