OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. | 2 * Copyright (C) 2004, 2005, 2006, 2008 Apple Inc. All rights reserved. |
3 * | 3 * |
4 * This library is free software; you can redistribute it and/or | 4 * This library is free software; you can redistribute it and/or |
5 * modify it under the terms of the GNU Library General Public | 5 * modify it under the terms of the GNU Library General Public |
6 * License as published by the Free Software Foundation; either | 6 * License as published by the Free Software Foundation; either |
7 * version 2 of the License, or (at your option) any later version. | 7 * version 2 of the License, or (at your option) any later version. |
8 * | 8 * |
9 * This library is distributed in the hope that it will be useful, | 9 * This library is distributed in the hope that it will be useful, |
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of | 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // NOTE: Passing a zero size means use the whole string. | 143 // NOTE: Passing a zero size means use the whole string. |
144 static AtomicString fromUTF8(const char*, size_t length); | 144 static AtomicString fromUTF8(const char*, size_t length); |
145 static AtomicString fromUTF8(const char*); | 145 static AtomicString fromUTF8(const char*); |
146 | 146 |
147 CString ascii() const { return m_string.ascii(); } | 147 CString ascii() const { return m_string.ascii(); } |
148 CString latin1() const { return m_string.latin1(); } | 148 CString latin1() const { return m_string.latin1(); } |
149 CString utf8(UTF8ConversionMode mode = LenientUTF8Conversion) const { return
m_string.utf8(mode); } | 149 CString utf8(UTF8ConversionMode mode = LenientUTF8Conversion) const { return
m_string.utf8(mode); } |
150 | 150 |
151 size_t charactersSizeInBytes() const { return m_string.charactersSizeInBytes
(); } | 151 size_t charactersSizeInBytes() const { return m_string.charactersSizeInBytes
(); } |
152 | 152 |
| 153 bool isSafeToSendToAnotherThread() const { return m_string.isSafeToSendToAno
therThread(); } |
| 154 |
153 #ifndef NDEBUG | 155 #ifndef NDEBUG |
154 void show() const; | 156 void show() const; |
155 #endif | 157 #endif |
156 | 158 |
157 private: | 159 private: |
158 String m_string; | 160 String m_string; |
159 | 161 |
160 ALWAYS_INLINE static PassRefPtr<StringImpl> add(StringImpl* r) | 162 ALWAYS_INLINE static PassRefPtr<StringImpl> add(StringImpl* r) |
161 { | 163 { |
162 if (!r || r->isAtomic()) | 164 if (!r || r->isAtomic()) |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 using WTF::AtomicString; | 225 using WTF::AtomicString; |
224 using WTF::nullAtom; | 226 using WTF::nullAtom; |
225 using WTF::emptyAtom; | 227 using WTF::emptyAtom; |
226 using WTF::starAtom; | 228 using WTF::starAtom; |
227 using WTF::xmlAtom; | 229 using WTF::xmlAtom; |
228 using WTF::xmlnsAtom; | 230 using WTF::xmlnsAtom; |
229 using WTF::xlinkAtom; | 231 using WTF::xlinkAtom; |
230 | 232 |
231 #include "wtf/text/StringConcatenate.h" | 233 #include "wtf/text/StringConcatenate.h" |
232 #endif // AtomicString_h | 234 #endif // AtomicString_h |
OLD | NEW |