
Public Member Functions | |
| AtomicString () | |
| AtomicString default constructor. | |
| AtomicString (const char *s) | |
| AtomicString constructor. | |
| AtomicString (const UChar *s, int length) | |
| AtomicString constructor. | |
| AtomicString (const UChar *s) | |
| AtomicString constructor. | |
| AtomicString (const KJS::UString &s) | |
| AtomicString constructor. | |
| AtomicString (const KJS::Identifier &s) | |
| AtomicString constructor. | |
| AtomicString (StringImpl *imp) | |
| AtomicString constructor. | |
| AtomicString (AtomicStringImpl *imp) | |
| AtomicString constructor. | |
| AtomicString (const String &s) | |
| AtomicString constructor. | |
| operator const String & () const | |
| operator const String& | |
| const String & | string () const |
| get string | |
| operator KJS::UString () const | |
| operator UString | |
| AtomicStringImpl * | impl () const |
| get AtomicStringImpl | |
| const UChar * | characters () const |
| get characters | |
| unsigned | length () const |
| get length | |
| UChar | operator[] (unsigned int i) const |
| operator[] | |
| bool | contains (UChar c) const |
| test if AtomicString contains the character | |
| bool | contains (const AtomicString &s, bool caseSensitive=true) const |
| test if AtomicString contains the character | |
| int | find (UChar c, int start=0) const |
| find character | |
| int | find (const AtomicString &s, int start=0, bool caseSentitive=true) const |
| find AtomicString | |
| bool | startsWith (const AtomicString &s, bool caseSensitive=true) const |
| test if AtomicString starts with the AtomicString given in parameter | |
| bool | endsWith (const AtomicString &s, bool caseSensitive=true) const |
| test if AtomicString ends with the AtomicString given in parameter | |
| int | toInt (bool *ok=0) const |
| convert AtomicString to int | |
| double | toDouble (bool *ok=0) const |
| convert AtomicString to double | |
| float | toFloat (bool *ok=0) const |
| convert AtomicString to float | |
| bool | percentage (int &p) const |
| convert AtomicString to percentage | |
| Length * | toLengthArray (int &len) const |
| convert AtomicString to length array | |
| Length * | toCoordsArray (int &len) const |
| convet to coords array | |
| bool | isNull () const |
| test if the AtomicString is null | |
| bool | isEmpty () const |
| test if the AtomicString is empty | |
Static Public Member Functions | |
| static void | init () |
| init atomic string | |
| static AtomicStringImpl * | find (const KJS::Identifier &) |
| find | |
| static void | remove (StringImpl *) |
| remove | |
| OWBAL::AtomicString::AtomicString | ( | ) |
| OWBAL::AtomicString::AtomicString | ( | const char * | s | ) |
| OWBAL::AtomicString::AtomicString | ( | const UChar * | s, | |
| int | length | |||
| ) |
| OWBAL::AtomicString::AtomicString | ( | const UChar * | s | ) |
| OWBAL::AtomicString::AtomicString | ( | const KJS::UString & | s | ) |
| OWBAL::AtomicString::AtomicString | ( | const KJS::Identifier & | s | ) |
| OWBAL::AtomicString::AtomicString | ( | StringImpl * | imp | ) |
| OWBAL::AtomicString::AtomicString | ( | AtomicStringImpl * | imp | ) |
| OWBAL::AtomicString::AtomicString | ( | const String & | s | ) |
| static void OWBAL::AtomicString::init | ( | ) | [static] |
| static AtomicStringImpl* OWBAL::AtomicString::find | ( | const KJS::Identifier & | ) | [static] |
find
| [in] | : | identifier |
| [out] | : | AtomicStringImpl AtomicStringImpl *ai = AtomicString::find(i); |
| const String& OWBAL::AtomicString::string | ( | ) | const |
get string
| [out] | : | string String s = a.string(); |
| OWBAL::AtomicString::operator KJS::UString | ( | ) | const |
operator UString
| AtomicStringImpl* OWBAL::AtomicString::impl | ( | ) | const |
| const UChar* OWBAL::AtomicString::characters | ( | ) | const |
get characters
| [out] | : | unicode characters UChar *u = a.characters(); |
| unsigned OWBAL::AtomicString::length | ( | ) | const |
get length
| [out] | : | length unsigned l = a.length();
|
| UChar OWBAL::AtomicString::operator[] | ( | unsigned int | i | ) | const |
operator[]
| [in] | : | index |
| [out] | : | unicode charater |
| bool OWBAL::AtomicString::contains | ( | UChar | c | ) | const |
test if AtomicString contains the character
| [in] | : | character |
| [out] | : | true if AtomicString contains the character bool c = a.contains(ch);
|
| bool OWBAL::AtomicString::contains | ( | const AtomicString & | s, | |
| bool | caseSensitive = true | |||
| ) | const |
test if AtomicString contains the character
| [in] | : | AtomicString |
| [in] | : | use case sensitivity |
| [out] | : | true if AtomicString contains the character bool c = a.contains(ch, false); |
| int OWBAL::AtomicString::find | ( | UChar | c, | |
| int | start = 0 | |||
| ) | const |
find character
| [in] | : | character |
| [in] | : | start position |
| [out] | : | position of character or -1 if the character is not found int p = a.find(c, 3);
|
| int OWBAL::AtomicString::find | ( | const AtomicString & | s, | |
| int | start = 0, |
|||
| bool | caseSentitive = true | |||
| ) | const |
find AtomicString
| [in] | : | AtomicString |
| [in] | : | start position |
| [in] | : | use case sensitivity |
| [out] | : | position of character or -1 if the character is not found int p = a.find(a1, 3, false); |
| bool OWBAL::AtomicString::startsWith | ( | const AtomicString & | s, | |
| bool | caseSensitive = true | |||
| ) | const |
test if AtomicString starts with the AtomicString given in parameter
| [in] | : | AtomicString |
| [in] | : | use case sensitivity |
| [out] | : | true if AtomicString starts with the AtomicString given in parameter bool s = a.startsWith(a1, false); |
| bool OWBAL::AtomicString::endsWith | ( | const AtomicString & | s, | |
| bool | caseSensitive = true | |||
| ) | const |
test if AtomicString ends with the AtomicString given in parameter
| [in] | : | AtomicString |
| [in] | : | use case sensitivity |
| [out] | : | true if AtomicString ends with the AtomicString given in parameter bool s = a.endsWith(a1, false); |
| int OWBAL::AtomicString::toInt | ( | bool * | ok = 0 |
) | const |
| double OWBAL::AtomicString::toDouble | ( | bool * | ok = 0 |
) | const |
convert AtomicString to double
| [out] | : | status |
| [out] | : | double double d = a.toDouble(&ok);
|
| float OWBAL::AtomicString::toFloat | ( | bool * | ok = 0 |
) | const |
| bool OWBAL::AtomicString::percentage | ( | int & | p | ) | const |
convert AtomicString to percentage
| [out] | : | percentage |
| [out] | : | status bool s = a.percentage(p);
|
| Length* OWBAL::AtomicString::toLengthArray | ( | int & | len | ) | const |
convert AtomicString to length array
| [out] | : | array length |
| [out] | : | length array Length *l = a.toLengthArray(len); |
| Length* OWBAL::AtomicString::toCoordsArray | ( | int & | len | ) | const |
convet to coords array
| [out] | : | array length |
| [out] | : | coords Length *l = a.toCoordsArray(len); |
| bool OWBAL::AtomicString::isNull | ( | ) | const |
test if the AtomicString is null
| [out] | : | true if the AtomicString is null bool n = a.isNull();
|
| bool OWBAL::AtomicString::isEmpty | ( | ) | const |
test if the AtomicString is empty
| [out] | : | true if the AtomicString is empty bool e = a.isEmpty();
|
| static void OWBAL::AtomicString::remove | ( | StringImpl * | ) | [static] |