Example of new SPLIT function
This commit is contained in:
parent
51bc040b17
commit
7390c11ecb
17
split-test.cpp
Normal file
17
split-test.cpp
Normal 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
|
Loading…
Reference in New Issue
Block a user