Skip to content
Permalink
Browse files
Make UCharIterator createIterator(StringView) visible to other classes
https://bugs.webkit.org/show_bug.cgi?id=151917

Reviewed by Darin Adler.

Make UCharIterator createIterator(StringView) in CollatorICU.cpp visible
to other classes so that future patches that will ucol_strcollIter
(including Bug 147604) can use it.

* wtf/unicode/Collator.h:
* wtf/unicode/icu/CollatorICU.cpp:
(WTF::createIterator):


Canonical link: https://commits.webkit.org/170363@main
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@194041 268f45cc-cd09-0410-ab3c-d52691b4dbfc
  • Loading branch information
sukolsak committed Dec 14, 2015
1 parent f3616a2 commit e463739a9e12090f9a306858acd935690acaaea6
Showing with 19 additions and 1 deletion.
  1. +15 −0 Source/WTF/ChangeLog
  2. +3 −0 Source/WTF/wtf/unicode/Collator.h
  3. +1 −1 Source/WTF/wtf/unicode/icu/CollatorICU.cpp
@@ -1,3 +1,18 @@
2015-12-14 Sukolsak Sakshuwong <sukolsak@gmail.com>

Make UCharIterator createIterator(StringView) visible to other classes
https://bugs.webkit.org/show_bug.cgi?id=151917

Reviewed by Darin Adler.

Make UCharIterator createIterator(StringView) in CollatorICU.cpp visible
to other classes so that future patches that will ucol_strcollIter
(including Bug 147604) can use it.

* wtf/unicode/Collator.h:
* wtf/unicode/icu/CollatorICU.cpp:
(WTF::createIterator):

2015-12-14 David Kilzer <ddkilzer@apple.com>

REGRESSION (r162777): Remove Boost Software License from WTF
@@ -32,6 +32,7 @@
#include <unicode/uconfig.h>
#include <wtf/Noncopyable.h>

struct UCharIterator;
struct UCollator;

namespace WTF {
@@ -67,6 +68,8 @@ class Collator {
UCollator* m_collator;
};

UCharIterator createIterator(StringView);

#endif

}
@@ -236,7 +236,7 @@ static UCharIterator createLatin1Iterator(const LChar* characters, int length)
return iterator;
}

static UCharIterator createIterator(StringView string)
UCharIterator createIterator(StringView string)
{
if (string.is8Bit())
return createLatin1Iterator(string.characters8(), string.length());

0 comments on commit e463739

Please sign in to comment.