quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_system.a #include <SysChar.h> SysChar(); SysChar(const SysChar& arg); SysChar(byte* data, ENCODE encoding = DEF_ENCODE); boolean assign(byte arg); boolean isAlnum() const; boolean isAlpha() const; boolean isDigit() const;
description:SysChar c0; SysChar c1(c0); c0.assign(L't'); c1.assign((byte)'e'); if ((!c0.isAlnum()) || (!c1.isAlnum())) { Console::put(L"Error in isAlnum"); } if ((!c0.isAlpha()) || (!c1.isAlpha())) { Console::put(L"Error in isAlpha"); } if ((c0.isDigit()) || (c1.isDigit())) { Console::put(L"Error in isDigit"); }
static const SysString CLASS_NAME = L"SysChar";
static const byte UTF8_FIXED = 0x80;
static const unsigned short UTF16_FIXED = 0x0000;
enum ENCODE { ENCODE_ASCII = 0, ENCODE_UTF8, ENCODE_UTF16,DEF_ENCODE = ENCODE_ASCII };
static const SysChar NULLC = (SysChar)0;
static const SysChar SPACEC = L' ';
static const SysChar TILDE = L'~';
static const SysChar DOLLAR = L'$';
static const SysChar NEWLINE = L'\n';
static const unichar DEF_VALUE = (unichar)0;
static const long ERR = 1100;
static const long ERR_NOTASC = 1101;
static const long ERR_UNUTF8 = 1102;
static const long ERR_UNUTF16 = 1103;
static const long ERR_UNKENC = 1104;
unichar value_d;
static Integral::DEBUG debug_level_d;
static const SysString& name();
static boolean diagnose(Integral::DEBUG debug_level);
boolean debug(const unichar* message) const;
static boolean setDebug(Integral::DEBUG debug_level);
~SysChar();
SysChar(unichar arg = DEF_VALUE);
SysChar(const SysChar& arg);
boolean assign(const SysChar& arg);
SysChar& operator=(const SysChar& arg);
these methods are omitted because this class can't write itself to an Sof file
boolean eq(const SysChar& arg) const;
boolean clear(Integral::CMODE ctype);
SysChar(byte* data, ENCODE encoding = DEF_ENCODE);
boolean assign(byte arg);
boolean assign(unichar arg);
boolean assign(long& len, const byte* arg, ENCODE encoding = DEF_ENCODE);
boolean assign(const SysString& arg);
boolean eq(const unichar arg) const;
boolean ne(const SysChar& arg) const;
boolean ne(const unichar arg) const;
long memSize() const;
operator unichar() const;
boolean get(byte& arg) const;
boolean get(unichar& arg) const;
boolean get(long& len, byte* arg, ENCODE encoding = DEF_ENCODE) const;
boolean toUpper();
boolean toLower();
boolean isAlnum() const;
boolean isAlpha() const;
boolean isDigit() const;
boolean isLower() const;
boolean isPrint() const;
boolean isPunct() const;
boolean isSpace() const;
boolean isUpper() const;
boolean gt(const SysChar& arg) const;
boolean gt(unichar arg) const;
boolean lt(const SysChar& arg) const;
boolean lt(unichar arg) const;
boolean ge(const SysChar& arg) const;
boolean ge(unichar arg) const;
boolean le(const SysChar& arg) const;
boolean le(unichar arg) const;
SysChar c0; SysChar c1(c0); SysChar c2(L'e'); SysChar c3((byte*)"h"); SysChar c4(L'.'); SysChar c5(L'\n'); SysChar c6(L'9'); if ((c0.isAlnum()) || (c1.isAlnum()) || (!c2.isAlnum()) || (!c3.isAlnum()) || (c4.isAlnum()) || (c5.isAlnum()) || (!c6.isAlnum())) { Console::put(L"Error in isAlnum"); }