From 7390c11ecbea776832b55c7abdd37ff782af6b20 Mon Sep 17 00:00:00 2001 From: Armando Rivera Date: Sat, 16 Nov 2013 12:35:33 -0500 Subject: [PATCH] Example of new SPLIT function --- split-test.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 split-test.cpp diff --git a/split-test.cpp b/split-test.cpp new file mode 100644 index 0000000..ea68f96 --- /dev/null +++ b/split-test.cpp @@ -0,0 +1,17 @@ + +/* CHANGE THIS PATH TO WHERE "jade.h" IS LOCATED */ +#include "jade.h" + +MAIN + DIM CSTRING sep = " "; + DIM CSTRING s = "This is an example that should be split!"; + DIM VECTOR ret; + + ret = SPLIT(s, sep); + + FOR (UINT i = 0 TO i < ret.size() STEP i++) BEGIN + PRINT( ret[i] ); + END + + RETURN 0; +ENDMAIN