source: testjes/trimtest.cpp

Last change on this file was 10, checked in by willem, 11 years ago

willem

File size: 410 bytes
Line 
1// g++ -I ../trunk
2#include <iostream>
3#include <string>
4#include <wutils.h>
5void doit(std::string a)
6{
7  std::cout << "["<<a<<"] -> ["<<trim_left(a)<<"]"<<std::endl;
8  std::cout << "["<<a<<"] -> ["<<trim_right(a)<<"]"<<std::endl;
9  std::cout << "["<<a<<"] -> ["<<trim(a)<<"]"<<std::endl;
10}
11int main()
12{
13  doit("aap");
14
15  doit("    aap");
16  doit("   aap   ");
17  doit("aap   ");
18  doit("    ");
19  doit("");
20
21}
22
Note: See TracBrowser for help on using the repository browser.