source: asp3_tinet_ecnl_arm/trunk/musl-1.1.18/src/ctype/iswprint.c@ 352

Last change on this file since 352 was 352, checked in by coas-nagasima, 6 years ago

arm向けASP3版ECNLを追加

  • Property svn:eol-style set to native
  • Property svn:mime-type set to text/x-csrc;charset=UTF-8
File size: 693 bytes
Line 
1#include <wctype.h>
2#include "libc.h"
3
4/* Consider all legal codepoints as printable except for:
5 * - C0 and C1 control characters
6 * - U+2028 and U+2029 (line/para break)
7 * - U+FFF9 through U+FFFB (interlinear annotation controls)
8 * The following code is optimized heavily to make hot paths for the
9 * expected printable characters. */
10
11int iswprint(wint_t wc)
12{
13 if (wc < 0xffU)
14 return (wc+1 & 0x7f) >= 0x21;
15 if (wc < 0x2028U || wc-0x202aU < 0xd800-0x202a || wc-0xe000U < 0xfff9-0xe000)
16 return 1;
17 if (wc-0xfffcU > 0x10ffff-0xfffc || (wc&0xfffe)==0xfffe)
18 return 0;
19 return 1;
20}
21
22int __iswprint_l(wint_t c, locale_t l)
23{
24 return iswprint(c);
25}
26
27weak_alias(__iswprint_l, iswprint_l);
Note: See TracBrowser for help on using the repository browser.