summaryrefslogtreecommitdiffstats
path: root/JavaScriptCore/wtf/unicode
diff options
context:
space:
mode:
authorSteve Block <steveblock@google.com>2010-07-08 12:51:48 +0100
committerSteve Block <steveblock@google.com>2010-07-09 15:33:40 +0100
commitca9cb53ed1119a3fd98fafa0972ffeb56dee1c24 (patch)
treebb45155550ec013adc0ad10f4d7d354c6469b022 /JavaScriptCore/wtf/unicode
parentd4b24d9a829ed7de70381c8b99fb75a07ab40466 (diff)
downloadexternal_webkit-ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24.zip
external_webkit-ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24.tar.gz
external_webkit-ca9cb53ed1119a3fd98fafa0972ffeb56dee1c24.tar.bz2
Merge WebKit at r62496: Initial merge by git
Change-Id: Ie3da0770eca22a70a632e3571f31cfabc80facb2
Diffstat (limited to 'JavaScriptCore/wtf/unicode')
-rw-r--r--JavaScriptCore/wtf/unicode/wince/UnicodeWince.cpp5
-rw-r--r--JavaScriptCore/wtf/unicode/wince/UnicodeWince.h5
2 files changed, 8 insertions, 2 deletions
diff --git a/JavaScriptCore/wtf/unicode/wince/UnicodeWince.cpp b/JavaScriptCore/wtf/unicode/wince/UnicodeWince.cpp
index 2df44f8..42f0ff8 100644
--- a/JavaScriptCore/wtf/unicode/wince/UnicodeWince.cpp
+++ b/JavaScriptCore/wtf/unicode/wince/UnicodeWince.cpp
@@ -77,6 +77,11 @@ bool isPunct(wchar_t c)
return !!iswpunct(c);
}
+bool isAlphanumeric(wchar_t c)
+{
+ return !!iswalnum(c);
+}
+
int toLower(wchar_t* result, int resultLength, const wchar_t* source, int sourceLength, bool* isError)
{
const UChar* sourceIterator = source;
diff --git a/JavaScriptCore/wtf/unicode/wince/UnicodeWince.h b/JavaScriptCore/wtf/unicode/wince/UnicodeWince.h
index 5bed9e8..68da35a 100644
--- a/JavaScriptCore/wtf/unicode/wince/UnicodeWince.h
+++ b/JavaScriptCore/wtf/unicode/wince/UnicodeWince.h
@@ -165,6 +165,7 @@ namespace WTF {
bool isLower(wchar_t);
bool isPunct(wchar_t);
bool isDigit(wchar_t);
+ bool isAlphanumeric(wchar_t);
inline bool isSeparatorSpace(wchar_t c) { return category(c) == Separator_Space; }
inline bool isHighSurrogate(wchar_t c) { return (c & 0xfc00) == 0xd800; }
inline bool isLowSurrogate(wchar_t c) { return (c & 0xfc00) == 0xdc00; }
@@ -183,9 +184,9 @@ namespace WTF {
unsigned char combiningClass(UChar32);
DecompositionType decompositionType(UChar32);
Direction direction(UChar32);
- inline bool isArabicChar(UChar32)
+ inline bool isArabicChar(UChar32 c)
{
- return false; // FIXME: implement!
+ return c >= 0x0600 && c <= 0x06FF;
}
inline bool hasLineBreakingPropertyComplexContext(UChar32)