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_spacing.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_spacing.c')
| -rw-r--r-- | src/xutf8/is_spacing.c | 109 |
1 files changed, 53 insertions, 56 deletions
diff --git a/src/xutf8/is_spacing.c b/src/xutf8/is_spacing.c index 548dd84ff..94557302c 100644 --- a/src/xutf8/is_spacing.c +++ b/src/xutf8/is_spacing.c @@ -29,63 +29,60 @@ #include "headers/spacing.h" - unsigned short -XUtf8IsNonSpacing( - unsigned int ucs) -{ - - if (ucs <= 0x0361) { - if (ucs >= 0x0300) return ucs_table_0300[ucs - 0x0300]; - return 0; - } - - if (ucs <= 0x0486) { - if (ucs >= 0x0483) return ucs_table_0483[ucs - 0x0483]; - return 0; - } - - if (ucs <= 0x05C4) { - if (ucs >= 0x0591) return ucs_table_0591[ucs - 0x0591]; - return 0; - } - - if (ucs <= 0x06ED) { - if (ucs >= 0x064B) return ucs_table_064B[ucs - 0x064B]; - return 0; - } - - if (ucs <= 0x0D4D) { - if (ucs >= 0x0901) return ucs_table_0901[ucs - 0x0901]; - return 0; - } - - if (ucs <= 0x0FB9) { - if (ucs >= 0x0E31) return ucs_table_0E31[ucs - 0x0E31]; - return 0; - } - - if (ucs <= 0x20E1) { - if (ucs >= 0x20D0) return ucs_table_20D0[ucs - 0x20D0]; - return 0; - } - - if (ucs <= 0x309A) { - if (ucs >= 0x302A) return ucs_table_302A[ucs - 0x302A]; - return 0; - } - - if (ucs <= 0xFB1E) { - if (ucs >= 0xFB1E) return ucs_table_FB1E[ucs - 0xFB1E]; - return 0; - } - - if (ucs <= 0xFE23) { - if (ucs >= 0xFE20) return ucs_table_FE20[ucs - 0xFE20]; - return 0; - } - - return 0; +XUtf8IsNonSpacing(unsigned int ucs) { + + if (ucs <= 0x0361) { + if (ucs >= 0x0300) return ucs_table_0300[ucs - 0x0300]; + return 0; + } + + if (ucs <= 0x0486) { + if (ucs >= 0x0483) return ucs_table_0483[ucs - 0x0483]; + return 0; + } + + if (ucs <= 0x05C4) { + if (ucs >= 0x0591) return ucs_table_0591[ucs - 0x0591]; + return 0; + } + + if (ucs <= 0x06ED) { + if (ucs >= 0x064B) return ucs_table_064B[ucs - 0x064B]; + return 0; + } + + if (ucs <= 0x0D4D) { + if (ucs >= 0x0901) return ucs_table_0901[ucs - 0x0901]; + return 0; + } + + if (ucs <= 0x0FB9) { + if (ucs >= 0x0E31) return ucs_table_0E31[ucs - 0x0E31]; + return 0; + } + + if (ucs <= 0x20E1) { + if (ucs >= 0x20D0) return ucs_table_20D0[ucs - 0x20D0]; + return 0; + } + + if (ucs <= 0x309A) { + if (ucs >= 0x302A) return ucs_table_302A[ucs - 0x302A]; + return 0; + } + + if (ucs <= 0xFB1E) { + if (ucs >= 0xFB1E) return ucs_table_FB1E[ucs - 0xFB1E]; + return 0; + } + + if (ucs <= 0xFE23) { + if (ucs >= 0xFE20) return ucs_table_FE20[ucs - 0xFE20]; + return 0; + } + + return 0; } /* |
