Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenismbc.c
Go to the documentation of this file.
00001 /* 00002 * COPYRIGHT: See COPYING in the top level directory 00003 * PROJECT: ReactOS system libraries 00004 * FILE: lib/sdk/crt/mbstring/ismbc.c 00005 * PURPOSE: 00006 * PROGRAMER: 00007 * UPDATE HISTORY: 00008 * 05/30/08: Samuel Serapion adapted from PROJECT C Library 00009 * 00010 */ 00011 00012 00013 #include <precomp.h> 00014 #include <mbstring.h> 00015 #include <mbctype.h> 00016 00017 /* 00018 * @implemented 00019 */ 00020 int _ismbcalnum( unsigned int c ) 00021 { 00022 if ((c & 0xFF00) != 0) { 00023 // true multibyte character 00024 return 0; 00025 } 00026 else 00027 return _ismbbalnum(c); 00028 00029 return 0; 00030 } 00031 00032 /* 00033 * @implemented 00034 */ 00035 int _ismbcalpha( unsigned int c ) 00036 { 00037 return (_ismbcupper (c) || _ismbclower (c)); 00038 } 00039 00040 /* 00041 * @implemented 00042 */ 00043 int _ismbcdigit( unsigned int c ) 00044 { 00045 return ((c) >= 0x824f && (c) <= 0x8258); 00046 } 00047 00048 /* 00049 * @implemented 00050 */ 00051 int _ismbcprint( unsigned int c ) 00052 { 00053 return (_MBHMASK (c) ? _ismbclegal (c) : (isprint (c) || _ismbbkana (c))); 00054 } 00055 00056 /* 00057 * @implemented 00058 */ 00059 int _ismbcsymbol( unsigned int c ) 00060 { 00061 return (c >= 0x8141 && c <= 0x817e) || (c >= 0x8180 && c <= 0x81ac); 00062 } 00063 00064 /* 00065 * @implemented 00066 */ 00067 int _ismbcspace( unsigned int c ) 00068 { 00069 return ((c) == 0x8140); 00070 } 00071 /* 00072 * @implemented 00073 */ 00074 int _ismbclegal(unsigned int c) 00075 { 00076 return (_ismbblead (_MBGETH (c)) && _ismbbtrail (_MBGETL (c))); 00077 } 00078 00079 /* 00080 * @implemented 00081 */ 00082 int _ismbcl0(unsigned int c) 00083 { 00084 return (c >= 0x8140 && c <= 0x889e); 00085 } 00086 00087 /* 00088 * @implemented 00089 */ 00090 int _ismbcl1(unsigned int c) 00091 { 00092 return (c >= 0x889f && c <= 0x9872); 00093 } 00094 00095 /* 00096 * @implemented 00097 */ 00098 int _ismbcl2(unsigned int c) 00099 { 00100 return (c >= 0x989f && c <= 0xea9e); 00101 } 00102 00103 /* 00104 * @unimplemented 00105 */ 00106 int _ismbcgraph(unsigned int ch) 00107 { 00108 //wchar_t wch = msvcrt_mbc_to_wc( ch ); 00109 //return (get_char_typeW( wch ) & (C1_UPPER | C1_LOWER | C1_DIGIT | C1_PUNCT | C1_ALPHA)); 00110 return 0; 00111 } 00112 00113 /* 00114 * @unimplemented 00115 */ 00116 int _ismbcpunct(unsigned int ch) 00117 { 00118 //wchar_t wch = msvcrt_mbc_to_wc( ch ); 00119 //return (get_char_typeW( wch ) & C1_PUNCT); 00120 return 0; 00121 } Generated on Sun May 27 2012 04:36:29 for ReactOS by
1.7.6.1
|