Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(93)

Side by Side Diff: Source/wtf/text/WTFString.h

Issue 285643006: Kill WTF::DecimalNumber class (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Inline single-line function Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/wtf/DecimalNumber.cpp ('k') | Source/wtf/wtf.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « Source/wtf/DecimalNumber.cpp ('k') | Source/wtf/wtf.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698