koscript_types.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
#ifndef __KSCRIPT_TYPES_H__
00021
#define __KSCRIPT_TYPES_H__
00022
00023
#include <qstring.h>
00024
00025
struct KScript
00026 {
00027
typedef long Long;
00028
typedef double Double;
00029
typedef QChar Char;
00030
typedef bool Boolean;
00031
typedef QString String;
00032
typedef QString WString;
00033
00034
struct CharRef
00035 {
00036 String* s;
00037 uint p;
00038
00039 CharRef( String* str, uint pos) : s(str), p(pos) { }
00040 CharRef(
const CharRef& r ) : s(r.s), p(r.p) { }
00041
00042 CharRef operator=(
const Char& c ) { s->ref(p)=c;
return *
this; }
00043 operator Char ()
const {
return s->constref(p); }
00044 };
00045
00046 };
00047
00048
#endif
This file is part of the documentation for lib Library Version 1.3.5.