Commit 3547b204 authored by mitz@apple.com's avatar mitz@apple.com

- revert the previous change, which was to a file that the Windows

          port does not even use

        * icu/unicode/utf16.h:



git-svn-id: svn://svn.chromium.org/blink/trunk@42654 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 7d38a105
2009-04-18 Dan Bernstein <mitz@apple.com>
- revert the previous change, which was to a file that the Windows
port does not even use
* icu/unicode/utf16.h:
2009-04-18 Dan Bernstein <mitz@apple.com> 2009-04-18 Dan Bernstein <mitz@apple.com>
Reviewed by Geoffrey Garen. Reviewed by Geoffrey Garen.
...@@ -252,14 +252,12 @@ ...@@ -252,14 +252,12 @@
#define U16_NEXT(s, i, length, c) { \ #define U16_NEXT(s, i, length, c) { \
(c)=(s)[(i)++]; \ (c)=(s)[(i)++]; \
if(U16_IS_LEAD(c)) { \ if(U16_IS_LEAD(c)) { \
if((i)<(length)) { \ uint16_t __c2; \
uint16_t __c2=(s)[(i)]; \ if((i)<(length) && U16_IS_TRAIL(__c2=(s)[(i)])) { \
if(U16_IS_TRAIL(__c2)) { \
++(i); \ ++(i); \
(c)=U16_GET_SUPPLEMENTARY((c), __c2); \ (c)=U16_GET_SUPPLEMENTARY((c), __c2); \
} \ } \
} \ } \
} \
} }
/** /**
...@@ -478,14 +476,12 @@ ...@@ -478,14 +476,12 @@
#define U16_PREV(s, start, i, c) { \ #define U16_PREV(s, start, i, c) { \
(c)=(s)[--(i)]; \ (c)=(s)[--(i)]; \
if(U16_IS_TRAIL(c)) { \ if(U16_IS_TRAIL(c)) { \
if((i)>(start)) { \ uint16_t __c2; \
uint16_t __c2=(s)[(i)-1]; \ if((i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
if (U16_IS_LEAD(__c2)) { \
--(i); \ --(i); \
(c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \ (c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \
} \ } \
} \ } \
} \
} }
/** /**
......
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