summaryrefslogtreecommitdiffstats
path: root/Source/WebCore/platform/text/TextBreakIterator.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/platform/text/TextBreakIterator.cpp')
-rw-r--r--Source/WebCore/platform/text/TextBreakIterator.cpp10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/WebCore/platform/text/TextBreakIterator.cpp b/Source/WebCore/platform/text/TextBreakIterator.cpp
index 1362e8116..edb73ef76 100644
--- a/Source/WebCore/platform/text/TextBreakIterator.cpp
+++ b/Source/WebCore/platform/text/TextBreakIterator.cpp
@@ -49,4 +49,14 @@ unsigned numCharactersInGraphemeClusters(const String& s, unsigned numGraphemeCl
return textBreakCurrent(it);
}
+#if !USE(ICU_UNICODE)
+TextBreakIterator* acquireLineBreakIterator(const LChar* string, int length, const AtomicString& locale)
+{
+ Vector<UChar> utf16string(length);
+ for (int i = 0; i < length; ++i)
+ utf16string[i] = string[i];
+ return acquireLineBreakIterator(utf16string.data(), length, locale);
+}
+#endif
+
} // namespace WebCore