summaryrefslogtreecommitdiff
path: root/ccc/substr.cc
diff options
context:
space:
mode:
authorPatrick Simianer <p@simianer.de>2014-06-15 03:50:43 +0200
committerPatrick Simianer <p@simianer.de>2014-06-15 03:50:43 +0200
commit6ed9a9699997a2853ec1c9e91747c251e5cfc97b (patch)
tree56c96f18442fb06aeeb45cadc56355353a63ee99 /ccc/substr.cc
parent258e1b92ebbfdebefabc120969ab87c3d8b75c3d (diff)
damn
Diffstat (limited to 'ccc/substr.cc')
-rw-r--r--ccc/substr.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/ccc/substr.cc b/ccc/substr.cc
deleted file mode 100644
index 9a91adc..0000000
--- a/ccc/substr.cc
+++ /dev/null
@@ -1,23 +0,0 @@
-#include <iostream>
-#include <string>
-
-using namespace std;
-
-
-int main(void)
-{
- // 0 12 34 56
- string s("aaax\tbx\tcxasd\tdx");
- unsigned f = 0;
- for(unsigned i = 0; i < 3; i++) {
- unsigned e = f;
- f = s.find("\t", f+1);
- cout << "e:" << e << " f:" << f << endl;
- if (e !=0) cout << "'" << s.substr(e+1, f-e-1) << "'" << endl;
- else cout << "'" << s.substr(0, f) << "'" << endl;
- }
- cout << "---" << endl;
- s.erase(0, f+1);
- cout << "'" << s << "'" <<endl;
-}
-