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

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

Issue 1841143002: Add enum class |WebEditingCommandType| for EditorCommand (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Introducing |codePointCompareIgnoringASCIICase()| Created 4 years, 8 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
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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after
574 return charactersAreAllASCII(characters16(), m_impl->length()); 574 return charactersAreAllASCII(characters16(), m_impl->length());
575 } 575 }
576 576
577 WTF_EXPORT int codePointCompare(const String&, const String&); 577 WTF_EXPORT int codePointCompare(const String&, const String&);
578 578
579 inline bool codePointCompareLessThan(const String& a, const String& b) 579 inline bool codePointCompareLessThan(const String& a, const String& b)
580 { 580 {
581 return codePointCompare(a.impl(), b.impl()) < 0; 581 return codePointCompare(a.impl(), b.impl()) < 0;
582 } 582 }
583 583
584 WTF_EXPORT int codePointCompareIgnoringASCIICase(const String&, const char*);
585
584 template<size_t inlineCapacity> 586 template<size_t inlineCapacity>
585 inline void append(Vector<UChar, inlineCapacity>& vector, const String& string) 587 inline void append(Vector<UChar, inlineCapacity>& vector, const String& string)
586 { 588 {
587 unsigned length = string.length(); 589 unsigned length = string.length();
588 if (!length) 590 if (!length)
589 return; 591 return;
590 if (string.is8Bit()) { 592 if (string.is8Bit()) {
591 const LChar* characters8 = string.characters8(); 593 const LChar* characters8 = string.characters8();
592 vector.reserveCapacity(vector.size() + length); 594 vector.reserveCapacity(vector.size() + length);
593 for (size_t i = 0; i < length; ++i) 595 for (size_t i = 0; i < length; ++i)
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
704 using WTF::charactersToFloat; 706 using WTF::charactersToFloat;
705 using WTF::equal; 707 using WTF::equal;
706 using WTF::equalIgnoringCase; 708 using WTF::equalIgnoringCase;
707 using WTF::find; 709 using WTF::find;
708 using WTF::isAllSpecialCharacters; 710 using WTF::isAllSpecialCharacters;
709 using WTF::isSpaceOrNewline; 711 using WTF::isSpaceOrNewline;
710 using WTF::reverseFind; 712 using WTF::reverseFind;
711 713
712 #include "wtf/text/AtomicString.h" 714 #include "wtf/text/AtomicString.h"
713 #endif // WTFString_h 715 #endif // WTFString_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/wtf/text/StringImpl.cpp ('k') | third_party/WebKit/Source/wtf/text/WTFString.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698