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

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

Issue 313993002: Bindings: Add ScalarValueString support (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Incorporate review feedback Created 6 years, 6 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
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 reserved. 3 * Copyright (C) 2005, 2006, 2007, 2008, 2009, 2010, 2013 Apple Inc. All rights reserved.
4 * Copyright (C) 2009 Google Inc. All rights reserved. 4 * Copyright (C) 2009 Google Inc. All rights reserved.
5 * 5 *
6 * This library is free software; you can redistribute it and/or 6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Library General Public 7 * modify it under the terms of the GNU Library General Public
8 * License as published by the Free Software Foundation; either 8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version. 9 * version 2 of the License, or (at your option) any later version.
10 * 10 *
(...skipping 379 matching lines...) Expand 10 before | Expand all | Expand 10 after
390 template<unsigned matchLength> 390 template<unsigned matchLength>
391 bool endsWith(const char (&prefix)[matchLength], bool caseSensitive = true) const { return endsWith(prefix, matchLength - 1, caseSensitive); } 391 bool endsWith(const char (&prefix)[matchLength], bool caseSensitive = true) const { return endsWith(prefix, matchLength - 1, caseSensitive); }
392 392
393 PassRefPtr<StringImpl> replace(UChar, UChar); 393 PassRefPtr<StringImpl> replace(UChar, UChar);
394 PassRefPtr<StringImpl> replace(UChar, StringImpl*); 394 PassRefPtr<StringImpl> replace(UChar, StringImpl*);
395 ALWAYS_INLINE PassRefPtr<StringImpl> replace(UChar pattern, const char* repl acement, unsigned replacementLength) { return replace(pattern, reinterpret_cast< const LChar*>(replacement), replacementLength); } 395 ALWAYS_INLINE PassRefPtr<StringImpl> replace(UChar pattern, const char* repl acement, unsigned replacementLength) { return replace(pattern, reinterpret_cast< const LChar*>(replacement), replacementLength); }
396 PassRefPtr<StringImpl> replace(UChar, const LChar*, unsigned replacementLeng th); 396 PassRefPtr<StringImpl> replace(UChar, const LChar*, unsigned replacementLeng th);
397 PassRefPtr<StringImpl> replace(UChar, const UChar*, unsigned replacementLeng th); 397 PassRefPtr<StringImpl> replace(UChar, const UChar*, unsigned replacementLeng th);
398 PassRefPtr<StringImpl> replace(StringImpl*, StringImpl*); 398 PassRefPtr<StringImpl> replace(StringImpl*, StringImpl*);
399 PassRefPtr<StringImpl> replace(unsigned index, unsigned len, StringImpl*); 399 PassRefPtr<StringImpl> replace(unsigned index, unsigned len, StringImpl*);
400 bool hasUnmatchedSurrogates() const;
401 PassRefPtr<StringImpl> replaceUnmatchedSurrogates();
tkent 2014/06/16 07:51:16 Unclear what unmatched surrogates are replaced wit
400 PassRefPtr<StringImpl> upconvertedString(); 402 PassRefPtr<StringImpl> upconvertedString();
401 403
402 #if USE(CF) 404 #if USE(CF)
403 RetainPtr<CFStringRef> createCFString(); 405 RetainPtr<CFStringRef> createCFString();
404 #endif 406 #endif
405 #ifdef __OBJC__ 407 #ifdef __OBJC__
406 operator NSString*(); 408 operator NSString*();
407 #endif 409 #endif
408 410
409 #ifdef STRING_STATS 411 #ifdef STRING_STATS
(...skipping 321 matching lines...) Expand 10 before | Expand all | Expand 10 after
731 } 733 }
732 734
733 using WTF::StringImpl; 735 using WTF::StringImpl;
734 using WTF::equal; 736 using WTF::equal;
735 using WTF::equalNonNull; 737 using WTF::equalNonNull;
736 using WTF::TextCaseSensitivity; 738 using WTF::TextCaseSensitivity;
737 using WTF::TextCaseSensitive; 739 using WTF::TextCaseSensitive;
738 using WTF::TextCaseInsensitive; 740 using WTF::TextCaseInsensitive;
739 741
740 #endif 742 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698