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 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
100 size_t find(const LChar* s, size_t start = 0, TextCaseSensitivity caseSensit
ivity = TextCaseSensitive) const | 100 size_t find(const LChar* s, size_t start = 0, TextCaseSensitivity caseSensit
ivity = TextCaseSensitive) const |
101 { return m_string.find(s, start, caseSensitivity); } | 101 { return m_string.find(s, start, caseSensitivity); } |
102 size_t find(const String& s, size_t start = 0, TextCaseSensitivity caseSensi
tivity = TextCaseSensitive) const | 102 size_t find(const String& s, size_t start = 0, TextCaseSensitivity caseSensi
tivity = TextCaseSensitive) const |
103 { return m_string.find(s, start, caseSensitivity); } | 103 { return m_string.find(s, start, caseSensitivity); } |
104 | 104 |
105 bool startsWith(const String& s, TextCaseSensitivity caseSensitivity = TextC
aseSensitive) const | 105 bool startsWith(const String& s, TextCaseSensitivity caseSensitivity = TextC
aseSensitive) const |
106 { return m_string.startsWith(s, caseSensitivity); } | 106 { return m_string.startsWith(s, caseSensitivity); } |
107 bool startsWith(UChar character) const | 107 bool startsWith(UChar character) const |
108 { return m_string.startsWith(character); } | 108 { return m_string.startsWith(character); } |
109 template<unsigned matchLength> | 109 template<unsigned matchLength> |
110 bool startsWith(const char (&prefix)[matchLength], TextCaseSensitivity caseS
ensitivity = TextCaseSensitive) const | 110 bool startsWith(const char (&prefix)[matchLength]) const |
111 { return m_string.startsWith<matchLength>(prefix, caseSensitivity); } | 111 { return m_string.startsWith<matchLength>(prefix); } |
112 | 112 |
113 bool endsWith(const String& s, TextCaseSensitivity caseSensitivity = TextCas
eSensitive) const | 113 bool endsWith(const String& s, TextCaseSensitivity caseSensitivity = TextCas
eSensitive) const |
114 { return m_string.endsWith(s, caseSensitivity); } | 114 { return m_string.endsWith(s, caseSensitivity); } |
115 bool endsWith(UChar character) const | 115 bool endsWith(UChar character) const |
116 { return m_string.endsWith(character); } | 116 { return m_string.endsWith(character); } |
117 template<unsigned matchLength> | 117 template<unsigned matchLength> |
118 bool endsWith(const char (&prefix)[matchLength], TextCaseSensitivity caseSen
sitivity = TextCaseSensitive) const | 118 bool endsWith(const char (&prefix)[matchLength]) const |
119 { return m_string.endsWith<matchLength>(prefix, caseSensitivity); } | 119 { return m_string.endsWith<matchLength>(prefix); } |
120 | 120 |
121 AtomicString lower() const; | 121 AtomicString lower() const; |
122 AtomicString upper() const { return AtomicString(impl()->upper()); } | 122 AtomicString upper() const { return AtomicString(impl()->upper()); } |
123 | 123 |
124 int toInt(bool* ok = 0) const { return m_string.toInt(ok); } | 124 int toInt(bool* ok = 0) const { return m_string.toInt(ok); } |
125 double toDouble(bool* ok = 0) const { return m_string.toDouble(ok); } | 125 double toDouble(bool* ok = 0) const { return m_string.toDouble(ok); } |
126 float toFloat(bool* ok = 0) const { return m_string.toFloat(ok); } | 126 float toFloat(bool* ok = 0) const { return m_string.toFloat(ok); } |
127 | 127 |
128 static AtomicString number(int); | 128 static AtomicString number(int); |
129 static AtomicString number(unsigned); | 129 static AtomicString number(unsigned); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
253 using WTF::AtomicString; | 253 using WTF::AtomicString; |
254 using WTF::nullAtom; | 254 using WTF::nullAtom; |
255 using WTF::emptyAtom; | 255 using WTF::emptyAtom; |
256 using WTF::starAtom; | 256 using WTF::starAtom; |
257 using WTF::xmlAtom; | 257 using WTF::xmlAtom; |
258 using WTF::xmlnsAtom; | 258 using WTF::xmlnsAtom; |
259 using WTF::xlinkAtom; | 259 using WTF::xlinkAtom; |
260 | 260 |
261 #include "wtf/text/StringConcatenate.h" | 261 #include "wtf/text/StringConcatenate.h" |
262 #endif // AtomicString_h | 262 #endif // AtomicString_h |
OLD | NEW |