Commit 317a50ee authored by ariya@webkit.org's avatar ariya@webkit.org

2009-04-20 Ariya Hidayat <ariya.hidayat@nokia.com>

        Build fix for Qt port (after r42646). Not reviewed.

        * wtf/unicode/qt4/UnicodeQt4.h: Added U16_PREV.

git-svn-id: svn://svn.chromium.org/blink/trunk@42669 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 28d2a9c3
2009-04-20 Ariya Hidayat <ariya.hidayat@nokia.com>
Build fix for Qt port (after r42646). Not reviewed.
* wtf/unicode/qt4/UnicodeQt4.h: Added U16_PREV.
2009-04-19 Sam Weinig <sam@webkit.org>
Reviewed by Darin Adler.
......@@ -92,6 +92,17 @@ typedef uint32_t UChar32;
} \
}
#define U16_PREV(s, start, i, c) { \
(c)=(s)[--(i)]; \
if(U16_IS_TRAIL(c)) { \
uint16_t __c2; \
if((i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
--(i); \
(c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \
} \
} \
}
#define U_MASK(x) ((uint32_t)1<<(x))
namespace WTF {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment