Example of new SPLIT function

This commit is contained in:
Armando Rivera 2013-11-16 12:35:33 -05:00
parent 51bc040b17
commit 7390c11ecb

17
split-test.cpp Normal file
View File

@ -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<CSTRING> ret;
ret = SPLIT(s, sep);
FOR (UINT i = 0 TO i < ret.size() STEP i++) BEGIN
PRINT( ret[i] );
END
RETURN 0;
ENDMAIN