| OLD | NEW |
| 1 /* | 1 /* |
| 2 * (C) 1999 Lars Knoll (knoll@kde.org) | 2 * (C) 1999 Lars Knoll (knoll@kde.org) |
| 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. | 3 * Copyright (C) 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2012, 2013 Apple Inc.
All rights reserved. |
| 4 * | 4 * |
| 5 * This library is free software; you can redistribute it and/or | 5 * This library is free software; you can redistribute it and/or |
| 6 * modify it under the terms of the GNU Library General Public | 6 * modify it under the terms of the GNU Library General Public |
| 7 * License as published by the Free Software Foundation; either | 7 * License as published by the Free Software Foundation; either |
| 8 * version 2 of the License, or (at your option) any later version. | 8 * version 2 of the License, or (at your option) any later version. |
| 9 * | 9 * |
| 10 * This library is distributed in the hope that it will be useful, | 10 * This library is distributed in the hope that it will be useful, |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 279 bool endsWith(const String& s, bool caseSensitive = true) const | 279 bool endsWith(const String& s, bool caseSensitive = true) const |
| 280 { return m_impl ? m_impl->endsWith(s.impl(), caseSensitive) : s.isEmpty(
); } | 280 { return m_impl ? m_impl->endsWith(s.impl(), caseSensitive) : s.isEmpty(
); } |
| 281 bool endsWith(UChar character) const | 281 bool endsWith(UChar character) const |
| 282 { return m_impl ? m_impl->endsWith(character) : false; } | 282 { return m_impl ? m_impl->endsWith(character) : false; } |
| 283 template<unsigned matchLength> | 283 template<unsigned matchLength> |
| 284 bool endsWith(const char (&prefix)[matchLength], bool caseSensitive = true)
const | 284 bool endsWith(const char (&prefix)[matchLength], bool caseSensitive = true)
const |
| 285 { return m_impl ? m_impl->endsWith<matchLength>(prefix, caseSensitive) :
!matchLength; } | 285 { return m_impl ? m_impl->endsWith<matchLength>(prefix, caseSensitive) :
!matchLength; } |
| 286 | 286 |
| 287 void append(const String&); | 287 void append(const String&); |
| 288 void append(LChar); | 288 void append(LChar); |
| 289 void append(char c) { append(static_cast<LChar>(c)); }; | 289 void append(char c) { append(static_cast<LChar>(c)); } |
| 290 void append(UChar); | 290 void append(UChar); |
| 291 void append(const LChar*, unsigned length); | 291 void append(const LChar*, unsigned length); |
| 292 void append(const char* charactersToAppend, unsigned length) { append(reinte
rpret_cast<const LChar*>(charactersToAppend), length); } |
| 292 void append(const UChar*, unsigned length); | 293 void append(const UChar*, unsigned length); |
| 293 void insert(const String&, unsigned pos); | 294 void insert(const String&, unsigned pos); |
| 294 void insert(const LChar*, unsigned length, unsigned pos); | 295 void insert(const LChar*, unsigned length, unsigned pos); |
| 295 void insert(const UChar*, unsigned length, unsigned pos); | 296 void insert(const UChar*, unsigned length, unsigned pos); |
| 296 | 297 |
| 297 String& replace(UChar a, UChar b) { if (m_impl) m_impl = m_impl->replace(a,
b); return *this; } | 298 String& replace(UChar a, UChar b) { if (m_impl) m_impl = m_impl->replace(a,
b); return *this; } |
| 298 String& replace(UChar a, const String& b) { if (m_impl) m_impl = m_impl->rep
lace(a, b.impl()); return *this; } | 299 String& replace(UChar a, const String& b) { if (m_impl) m_impl = m_impl->rep
lace(a, b.impl()); return *this; } |
| 299 String& replace(const String& a, const String& b) { if (m_impl) m_impl = m_i
mpl->replace(a.impl(), b.impl()); return *this; } | 300 String& replace(const String& a, const String& b) { if (m_impl) m_impl = m_i
mpl->replace(a.impl(), b.impl()); return *this; } |
| 300 String& replace(unsigned index, unsigned len, const String& b) { if (m_impl)
m_impl = m_impl->replace(index, len, b.impl()); return *this; } | 301 String& replace(unsigned index, unsigned len, const String& b) { if (m_impl)
m_impl = m_impl->replace(index, len, b.impl()); return *this; } |
| 301 | 302 |
| (...skipping 398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 using WTF::charactersToFloat; | 701 using WTF::charactersToFloat; |
| 701 using WTF::equal; | 702 using WTF::equal; |
| 702 using WTF::equalIgnoringCase; | 703 using WTF::equalIgnoringCase; |
| 703 using WTF::find; | 704 using WTF::find; |
| 704 using WTF::isAllSpecialCharacters; | 705 using WTF::isAllSpecialCharacters; |
| 705 using WTF::isSpaceOrNewline; | 706 using WTF::isSpaceOrNewline; |
| 706 using WTF::reverseFind; | 707 using WTF::reverseFind; |
| 707 | 708 |
| 708 #include "wtf/text/AtomicString.h" | 709 #include "wtf/text/AtomicString.h" |
| 709 #endif // WTFString_h | 710 #endif // WTFString_h |
| OLD | NEW |