TextBreakIterator's should support Latin-1 for all iterator types (Part 1)
authorweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jan 2014 01:28:53 +0000 (01:28 +0000)
committerweinig@apple.com <weinig@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Mon, 13 Jan 2014 01:28:53 +0000 (01:28 +0000)
commit727a9abb4b304b9e3c1e0db123facdc4dd0da09b
treedc41bf70e1b15e28beac8a1fe7f2ee86e0163703
parentc3be320084818fe78b38082c94edaf7bc11c824f
TextBreakIterator's should support Latin-1 for all iterator types (Part 1)
https://bugs.webkit.org/show_bug.cgi?id=126856

Reviewed by Darin Adler.

- Do some initial cleanup before adding complete Latin-1 support.

* platform/text/TextBreakIterator.cpp:
Remove non-ICU acquireLineBreakIterator() implementation.

* platform/text/TextBreakIterator.h:
- Changes acquireLineBreakIterator() to take a StringView.

* platform/text/TextBreakIteratorICU.cpp:
- Refactor iterator initialization and setting of text on the iterator.
- Add support for using a Latin-1 provider (this is not currently used).

* platform/text/icu/UTextProviderLatin1.cpp:
* platform/text/icu/UTextProviderLatin1.h:
- Add back non-context aware Latin-1 provider (from r129662).
- Rename context aware provider.

* platform/text/icu/UTextProviderUTF16.cpp:
* platform/text/icu/UTextProviderUTF16.h:
- Rename context aware provider.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@161844 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/platform/text/TextBreakIterator.cpp
Source/WebCore/platform/text/TextBreakIterator.h
Source/WebCore/platform/text/TextBreakIteratorICU.cpp
Source/WebCore/platform/text/icu/UTextProvider.h
Source/WebCore/platform/text/icu/UTextProviderLatin1.cpp
Source/WebCore/platform/text/icu/UTextProviderLatin1.h
Source/WebCore/platform/text/icu/UTextProviderUTF16.cpp
Source/WebCore/platform/text/icu/UTextProviderUTF16.h