filters
Swinder::UString Class Reference
#include <ustring.h>
Inheritance diagram for Swinder::UString:

Detailed Description
Unicode string class.
Definition at line 182 of file kspread/excel/sidewinder/ustring.h.
Public Member Functions | |
UString () | |
UString (char c) | |
UString (UChar c) | |
UString (const char *c) | |
UString (const UChar *c, int length) | |
UString (UChar *c, int length, bool copy) | |
UString (const UString &) | |
~UString () | |
UString & | append (const UString &) |
CString | cstring () const |
char * | ascii () const |
UString & | operator= (const char *c) |
UString & | operator= (const UString &) |
UString & | operator+= (const UString &s) |
const UChar * | data () const |
bool | isNull () const |
bool | isEmpty () const |
bool | is8Bit () const |
int | length () const |
UChar | operator[] (int pos) const |
UCharReference | operator[] (int pos) |
double | toDouble (bool tolerant=false) const |
unsigned long | toULong (bool *ok=0L) const |
int | find (const UString &f, int pos=0) const |
int | rfind (const UString &f, int pos) const |
UString | substr (int pos=0, int len=-1) const |
Static Public Member Functions | |
static UString | from (int i) |
static UString | from (unsigned int u) |
static UString | from (double d) |
Static Public Attributes | |
static UString | null |
Friends | |
class | UCharReference |
class | UConstString |
bool | operator== (const UString &, const UString &) |
Constructor & Destructor Documentation
|
Constructs a null string.
Definition at line 276 of file kspread/excel/sidewinder/ustring.cpp. |
|
Constructs a string from the single character c.
Definition at line 282 of file kspread/excel/sidewinder/ustring.cpp. |
|
Constructs a string from the single character c.
Definition at line 289 of file kspread/excel/sidewinder/ustring.cpp. |
|
Constructs a string from a classical zero determined char string.
Definition at line 296 of file kspread/excel/sidewinder/ustring.cpp. |
|
Constructs a string from an array of Unicode characters of the specified length.
Definition at line 302 of file kspread/excel/sidewinder/ustring.cpp. |
|
If copy is false a shallow copy of the string will be created. That means that the data will NOT be copied and you'll have to guarantee that it doesn't get deleted during the lifetime of the UString object. Definition at line 309 of file kspread/excel/sidewinder/ustring.cpp. |
|
Copy constructor. Makes a shallow copy only. Definition at line 320 of file kspread/excel/sidewinder/ustring.cpp. |
|
Destructor. If this handle was the only one holding a reference to the string the data will be freed. Definition at line 325 of file kspread/excel/sidewinder/ustring.cpp. |
Member Function Documentation
|
Append another string.
Definition at line 371 of file kspread/excel/sidewinder/ustring.cpp. |
|
Convert the Unicode string to plain ASCII chars chopping of any higher bytes. This method should only be used for *debugging* purposes as it is neither Unicode safe nor free from side effects. In order not to waste any memory the char buffer is static and *shared* by all UString instances. Definition at line 388 of file kspread/excel/sidewinder/ustring.cpp. |
|
Definition at line 383 of file kspread/excel/sidewinder/ustring.cpp. |
|
Definition at line 290 of file kspread/excel/sidewinder/ustring.h. |
|
Definition at line 529 of file kspread/excel/sidewinder/ustring.cpp. |
|
Constructs a string from a double.
Definition at line 346 of file kspread/excel/sidewinder/ustring.cpp. |
|
Constructs a string from an unsigned int.
Definition at line 338 of file kspread/excel/sidewinder/ustring.cpp. |
|
Constructs a string from an int.
Definition at line 330 of file kspread/excel/sidewinder/ustring.cpp. |
|
Use this if you want to make sure that this string is a plain ASCII string. For example, if you don't want to lose any information when using cstring() or ascii().
Definition at line 427 of file kspread/excel/sidewinder/ustring.cpp. |
|
Definition at line 298 of file kspread/excel/sidewinder/ustring.h. |
|
Definition at line 294 of file kspread/excel/sidewinder/ustring.h. |
|
Definition at line 310 of file kspread/excel/sidewinder/ustring.h. |
|
Appends the specified string.
Definition at line 422 of file kspread/excel/sidewinder/ustring.cpp. |
|
Assignment operator.
Definition at line 413 of file kspread/excel/sidewinder/ustring.cpp. |
|
Assignment operator.
Definition at line 401 of file kspread/excel/sidewinder/ustring.cpp. |
|
Writable reference to character at specified position.
Definition at line 445 of file kspread/excel/sidewinder/ustring.cpp. |
|
Const character at specified position.
Definition at line 437 of file kspread/excel/sidewinder/ustring.cpp. |
|
Definition at line 544 of file kspread/excel/sidewinder/ustring.cpp. |
|
Definition at line 559 of file kspread/excel/sidewinder/ustring.cpp. |
|
Attempts an conversion to a number. Apart from floating point numbers, the algorithm will recognize hexadecimal representations (as indicated by a 0x or 0X prefix) and +/- Infinity. Returns NaN if the conversion failed.
Definition at line 451 of file kspread/excel/sidewinder/ustring.cpp. |
|
Attempts an conversion to an unsigned long integer. ok will be set according to the success. Definition at line 513 of file kspread/excel/sidewinder/ustring.cpp. |
Member Data Documentation
|
Static instance of a null string.
Definition at line 351 of file kspread/excel/sidewinder/ustring.h. |
The documentation for this class was generated from the following files: