TCore_String
TCore_String is an efficient and flexible string container. You can do fairly obvious
operations with it. Much of tornado uses this object, as it is a language and character
set independent container.
Literal strings are arrays of eight bit characters on most compilers - however, Tornado
is multilingual so tornado programs cannot use literal strings directly. As you will
notice in existing tornado code, literal strings are used but they are always
converted to a TCore_String at the very least (and this is for non interface strings). All
strings that may be shown to the user should be sent through TInternational_MapString(), so that they may
be converted into a different language if necessary.
- Constructors:
- TCore_String(const char *)
Constructs a TCore_String containing the string
- TCore_String(const TCore_String &)
Constructs a TCore_String containing the string
- Attributes:
- u32 length
Represents the length (in characters) of the string
- Operators:
- =const TCore_String &
Sets the destination TCore_String to the given one
- =const char *
Sets the destination TCore_String to the const char * one
- =0
Tells the destination TCore_String to throw away any string it holds and assume a
minimal memory use state (ie; destroys its contents). The object is still fully usuable
however.
- +=const char *
Appends the const char * string to the destination TCore_String
- +=const TCore_String &
Appends the given string to the destination TCore_String
- +=u8 (deprecated)
- friend TCore_String +(const char *, const TCore_String &)
Concantates the two given strings
- friend TCore_String +(const TCore_String &, const char *)
Concantates the two given strings
- Methods:
- char *toZTCP() (inlined) (deprecated)
Returns the TCore_String contents as a zero terminated character array
(C) 1998 The Tornado II programming team (Last
updated: 15 March 2009 19:01:53 -0000)