equal
deleted
inserted
replaced
216 */ |
216 */ |
217 IMPORT UString(const UString &, const UString &); |
217 IMPORT UString(const UString &, const UString &); |
218 /** |
218 /** |
219 * Destructor. |
219 * Destructor. |
220 */ |
220 */ |
221 ~UString() {} |
221 ~UString() {m_rep=0;} |
222 |
222 |
223 /** |
223 /** |
224 * Constructs a string from an int. |
224 * Constructs a string from an int. |
225 */ |
225 */ |
226 IMPORT static UString from(int i); |
226 IMPORT static UString from(int i); |
375 UString substr(int pos = 0, int len = -1) const; |
375 UString substr(int pos = 0, int len = -1) const; |
376 /** |
376 /** |
377 * Static instance of a null string. |
377 * Static instance of a null string. |
378 */ |
378 */ |
379 static const UString &null(); |
379 static const UString &null(); |
380 #ifdef KJS_DEBUG_MEM |
380 //#ifdef KJS_DEBUG_MEM |
381 /** |
381 /** |
382 * Clear statically allocated resources. |
382 * Clear statically allocated resources. |
383 */ |
383 */ |
384 static void globalClear(); |
384 static void globalClear(); |
385 #endif |
385 //#endif |
386 |
386 |
387 Rep* rep() const { return m_rep.get(); } |
387 Rep* rep() const { return m_rep.get(); } |
388 UString(PassRefPtr<Rep> r) : m_rep(r) { ASSERT(m_rep); } |
388 UString(PassRefPtr<Rep> r) : m_rep(r) { ASSERT(m_rep); } |
389 |
389 |
390 size_t cost() const; |
390 size_t cost() const; |