name: SysString

synopsis:

g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_system.a

#include <SysString.h>

SysString(long capacity = DEF_CAPACITY);
SysString(const SysString& arg);
SysString(const unichar* data);
SysString(byte* data, SysChar::ENCODE encoding = SysChar::DEF_ENCODE);
boolean assign(const SysString& arg);
boolean insert(const SysString& str, long index);
boolean replace(const SysString& str, long index);
quick start:

SysString str1((byte*)"This is ISIP");
SysString str2(L"software");
SysString str3(100);
SysString str4(str2);

str2.assign(L" software");
if (str2.length() != 9) {
  Console::put(L"Error in re-assign unichar");
}

str2.assign(str1);
str3.assign(L" public-domain ");
str4.assign(L" Foundation classes");

str2.insert(str3, 99);
str2.debug(L"str2");

if (str2.ne(L"This is ISIP public-domain ")) {
  Console::put(L"Error in insert");
}

str2.insert(str4, 9999);
str2.debug(L"str2");

if (str2.ne(L"This is ISIP public-domain  Foundation classes")) {
  Console::put(L"Error in insert");
}
description:

The SysString class fills the void found in ANSI C for a very common data type: a string of characters. Our SysString class is inherently multi-lingual. It is a set of
SysChar objects. The SysString class abstracts the operating-system-specific wide character functions. It also prevents the programmer from having to manipulate buffers of memory; this is all handled automatically. The user needs only to reference a single SysString object, and passing a SysString object to a method is as simple as passing an Integer.

dependencies:

public constants:

error codes:

protected data:

required public methods:

class-specific public methods:

private methods:

examples:

notes: