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

Side by Side Diff: third_party/WebKit/Source/wtf/text/StringImpl.h

Issue 2458003002: Remove ASSERT_WITH_SECURITY_IMPLICATION. (Closed)
Patch Set: Minor formatting fix Created 4 years, 1 month 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org) 2 * Copyright (C) 1999 Lars Knoll (knoll@kde.org)
3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights 3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights
4 * reserved. 4 * reserved.
5 * Copyright (C) 2009 Google Inc. All rights reserved. 5 * Copyright (C) 2009 Google Inc. All rights reserved.
6 * 6 *
7 * This library is free software; you can redistribute it and/or 7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Library General Public 8 * modify it under the terms of the GNU Library General Public
9 * License as published by the Free Software Foundation; either 9 * License as published by the Free Software Foundation; either
10 * version 2 of the License, or (at your option) any later version. 10 * version 2 of the License, or (at your option) any later version.
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
312 } 312 }
313 313
314 // Some string features, like refcounting and the atomicity flag, are not 314 // Some string features, like refcounting and the atomicity flag, are not
315 // thread-safe. We achieve thread safety by isolation, giving each thread 315 // thread-safe. We achieve thread safety by isolation, giving each thread
316 // its own copy of the string. 316 // its own copy of the string.
317 PassRefPtr<StringImpl> isolatedCopy() const; 317 PassRefPtr<StringImpl> isolatedCopy() const;
318 318
319 PassRefPtr<StringImpl> substring(unsigned pos, unsigned len = UINT_MAX); 319 PassRefPtr<StringImpl> substring(unsigned pos, unsigned len = UINT_MAX);
320 320
321 UChar operator[](unsigned i) const { 321 UChar operator[](unsigned i) const {
322 ASSERT_WITH_SECURITY_IMPLICATION(i < m_length); 322 SECURITY_DCHECK(i < m_length);
323 if (is8Bit()) 323 if (is8Bit())
324 return characters8()[i]; 324 return characters8()[i];
325 return characters16()[i]; 325 return characters16()[i];
326 } 326 }
327 UChar32 characterStartingAt(unsigned); 327 UChar32 characterStartingAt(unsigned);
328 328
329 bool containsOnlyWhitespace(); 329 bool containsOnlyWhitespace();
330 330
331 int toIntStrict(bool* ok = 0, int base = 10); 331 int toIntStrict(bool* ok = 0, int base = 10);
332 unsigned toUIntStrict(bool* ok = 0, int base = 10); 332 unsigned toUIntStrict(bool* ok = 0, int base = 10);
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after
833 using WTF::TextCaseASCIIInsensitive; 833 using WTF::TextCaseASCIIInsensitive;
834 using WTF::TextCaseInsensitive; 834 using WTF::TextCaseInsensitive;
835 using WTF::TextCaseSensitive; 835 using WTF::TextCaseSensitive;
836 using WTF::TextCaseSensitivity; 836 using WTF::TextCaseSensitivity;
837 using WTF::equal; 837 using WTF::equal;
838 using WTF::equalNonNull; 838 using WTF::equalNonNull;
839 using WTF::lengthOfNullTerminatedString; 839 using WTF::lengthOfNullTerminatedString;
840 using WTF::reverseFind; 840 using WTF::reverseFind;
841 841
842 #endif 842 #endif
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/text/StringBuilder.h ('k') | third_party/WebKit/Source/wtf/text/TextCodecUTF8.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698