quick start:g++ [flags ...] file ... -l /isip/tools/lib/$ISIP_BINARY/lib_math_scalar.a #include <String.h> String(unichar* arg = DEF_VALUE); String(const String& arg);
description:String val0(L"hello, world"); String num0; String num1; String num2; String num3; Long scalar_long; Double Scalar_double; scalar_long.assign((long)43); num0.assign(scalar_long); scalar_long.get(num1); Double scalar_double; scalar_double.assign((double)43.0); num2.assign(scalar_double); scalar_double.get(num3);
static const String CLASS_NAME = L"String";
static const String EMPTY = L"";
static const String DEF_PARAM = L"value";
DEF_CAPACITY and DEF_VALUE are inherited from the SysString class
static const long ERR = 21200;
static MemoryManager mgr_d;
static const String& name();
static boolean diagnose(Integral::DEBUG debug_level);
setDebug is inherited from the SysString class
boolean debug(const unichar* message) const;
~String();
String(long arg = DEF_CAPACITY);
String(const String& arg);
assign methods are inherited from the SysString class
String& operator= (const String& arg);
long sofSize() const;
boolean read(Sof& sof, long tag, const String& name = CLASS_NAME);
boolean write(Sof& sof, long tag, const String& name = CLASS_NAME) const;
boolean readData(Sof& sof, const String& pname = DEF_PARAM, long size = SofParser::FULL_OBJECT, boolean param = true, boolean nested = false);
boolean writeData(Sof& sof, const String& pname = DEF_PARAM) const;
equality methods are inherited from the SysString class
static void* operator new(size_t size);
static void* operator new[](size_t size);
static void operator delete(void* ptr);
static void operator delete[](void* ptr);
static boolean setGrowSize(long grow_size);
clear is inherited from the SysString class
String(const unichar* arg);
boolean rand(long max_len = MAX_LENGTH, long min_len = 0);
static const String& getEmptyString();
long hash(long capacity) const;
String str((unichar*)L"hello, world"); String tmp_filename(L"foo"); Sof tmp_file; tmp_file.open(tmp_filename, File::WRITE_ONLY, File::TEXT); str.write(tmp_file, (long)0); tmp_file.close();