Author Topic: JADE git repository now open to all  (Read 1683 times)

Offline AIR

  • RETIRED
  • Moderator
  • Posts: 165
JADE git repository now open to all
« on: November 11, 2013, 04:17:53 PM »
Bitbucket Repository:  https://bitbucket.org/Airr/jade

To use, just copy "jade.h", "header.inc", and "runtime.inc" to your project folder.

Then just add
Code: [Select]
#include "jade.h"
To your source.

There are demos for SDL1, SDL2, FLTK, wxWidgets, and QT4 in the repository.

At the root is demo.cpp, which tests the string functions in runtime.inc.

Enjoy!

AIR.

Offline AIR

  • RETIRED
  • Moderator
  • Posts: 165
Re: JADE git repository now open to all
« Reply #1 on: November 16, 2013, 09:48:23 AM »
Added "SPLIT" string function.

An example of use:

Code: [Select]
/* 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
Quote from: OUTPUT
[riveraa@Kitty ~] $ ./split
This
is
an
example
that
should
be
split!