Home | Info | Community | Development | myReactOS | Contact Us
ReactOS Development > Doxygenismbtrl.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/ismbtrl.c 00005 * PURPOSE: Checks for a trailing byte 00006 * PROGRAMERS: 00007 * Copyright 1999 Ariadne 00008 * Copyright 1999 Alexandre Julliard 00009 * Copyright 2000 Jon Griffths 00010 * 00011 */ 00012 00013 #include <precomp.h> 00014 #include <mbctype.h> 00015 00016 size_t _mbclen2(const unsigned int s); 00017 00018 // iskanji2() : (0x40 <= c <= 0x7E 0x80 <= c <= 0xFC) 00019 00020 /* 00021 * @implemented 00022 */ 00023 int _ismbbtrail(unsigned int c) 00024 { 00025 return (_mbctype[(c&0xff) + 1] & _M2) != 0; 00026 } 00027 00028 00029 /* 00030 * @implemented 00031 */ 00032 int _ismbstrail( const unsigned char *start, const unsigned char *str) 00033 { 00034 /* Note: this function doesn't check _ismbbtrail */ 00035 if ((str > start) && _ismbslead(start, str-1)) 00036 return -1; 00037 else 00038 return 0; 00039 } Generated on Sun May 27 2012 04:36:29 for ReactOS by
1.7.6.1
|