diff options
| author | Greg Ercolano <erco@seriss.com> | 2009-03-18 04:47:01 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2009-03-18 04:47:01 +0000 |
| commit | 6cbde8909b551f9561f0a06c210fb9fc059c4485 (patch) | |
| tree | 3d24e8bf8197cd62ccc5662523d0e88428d2e3a5 /src/xutf8/is_right2left.c | |
| parent | 5d601837b99ceb6285718034959bf38ca4a749cb (diff) | |
xutf8 files code conformance:
o C files containing C++ "//" comments -> C style "/* */" comments
o Converted unintended doxygen style comments to regular C comments
o FLTK brace/indent coding standard conformance
o Tested linux + sgi
o Avoided mods to xutf8/lcUniConv [libiconv/FSF code]
to avoid unwanted diffs with future updates of that lib
as per Fabien's fltk.dev request 03/14/09.
(Those files already compliant anyway)
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6698 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/xutf8/is_right2left.c')
| -rw-r--r-- | src/xutf8/is_right2left.c | 78 |
1 files changed, 38 insertions, 40 deletions
diff --git a/src/xutf8/is_right2left.c b/src/xutf8/is_right2left.c index 7ef5af7df..737b85266 100644 --- a/src/xutf8/is_right2left.c +++ b/src/xutf8/is_right2left.c @@ -28,57 +28,55 @@ */ unsigned short -XUtf8IsRightToLeft( - unsigned int ucs) -{ +XUtf8IsRightToLeft(unsigned int ucs) { #if 0 - /* for debug only */ - if (ucs <= 0x005A) { - if (ucs >= 0x0041) return 1; - return 0; - } + /* for debug only */ + if (ucs <= 0x005A) { + if (ucs >= 0x0041) return 1; + return 0; + } #endif - /* HEBREW */ - if (ucs <= 0x05F4) { - if (ucs >= 0x0591) return 1; - return 0; - } - - /* ARABIC */ - if (ucs <= 0x06ED) { - if (ucs >= 0x060C) return 1; - return 0; - } + /* HEBREW */ + if (ucs <= 0x05F4) { + if (ucs >= 0x0591) return 1; + return 0; + } + + /* ARABIC */ + if (ucs <= 0x06ED) { + if (ucs >= 0x060C) return 1; + return 0; + } - if (ucs <= 0x06F9) { - if (ucs >= 0x06F0) return 1; - return 0; - } + if (ucs <= 0x06F9) { + if (ucs >= 0x06F0) return 1; + return 0; + } - if (ucs == 0x200F) return 1; + if (ucs == 0x200F) return 1; - if (ucs == 0x202B) return 1; + if (ucs == 0x202B) return 1; - if (ucs == 0x202E) return 1; + if (ucs == 0x202E) return 1; - if (ucs <= 0xFB4F) { - if (ucs >= 0xFB1E) return 1; - return 0; - } - - if (ucs <= 0xFDFB) { - if (ucs >= 0xFB50) return 1; - return 0; - } + if (ucs <= 0xFB4F) { + if (ucs >= 0xFB1E) return 1; + return 0; + } + + if (ucs <= 0xFDFB) { + if (ucs >= 0xFB50) return 1; + return 0; + } - if (ucs <= 0xFEFC) { - if (ucs >= 0xFE70) return 1; - return 0; - } + if (ucs <= 0xFEFC) { + if (ucs >= 0xFE70) return 1; + return 0; + } - return 0; + return 0; } /* |
