AllBASIC Forum
BASIC Developer & Support Resources => Translators => JADE => Topic started by: AIR on November 11, 2013, 04:17:53 PM
-
NOTE: NEW REPOSITORY, SOURCE NOW BUILDS A LIBRARY FOR LINKING
CURRENT REPOSITORY (https://git.binarymagic.net/AIR/JadeLib)
First, compile it using 'make', and install using 'sudo make install'.
Then add
#include "jade.hpp"
To your source.
There are demos in the EXAMPLES folder.
Enjoy!
AIR.
-
Added "SPLIT" string function.
An example of use:
/* 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
[riveraa@Kitty ~] $ ./split
This
is
an
example
that
should
be
split!