Skip to content
Paolo Angeli edited this page Oct 20, 2019 · 13 revisions

Strings in Jai are a simple standard array collection of unicode UTF8 characters.

Strings are not null-terminated like in the C language.

To use Jai strings with external libraries that need null-terminated strings some workarounds are necessary.

Escape sequences

To insert into the strings special characters not supported by the editor in use are available several special escape sequences.

Esc Description
\0 NUL ASCII character for null terminated strings
\n New line character
\t Tab character
\r Carriage return character
\" Double quotes character
\\ Backslash character
\ennn Escape sequence
\xnn Hexadecimal value
\dnnn Decimal value
\unnnn Unicode 16bit value
\Unnnnnnnn Unicode 32 bit value

Types, constants and variables

  • Variables and assignments
  • Language data types
  • Simple user-defined data types
  • Expressions and operators
  • Type-casting
  • Pointers

Flow control

Procedures and functions

  • Declarations
  • Arguments / Parameters
  • Return values
  • Overloading / Polymorhism
  • Advanced features
  • Lambdas

Aggregated data types

  • Arrays
  • Strings
  • Composition of Structs

Advanced features

Clone this wiki locally