Raphael wrote:
- if (!*str) { /** TODO: check *str validity */
- return -1; /** _MBC_ILLEGAL */
- }
- if (start == str && MSVCRT_isleadbyte(*str)) {
- return 1; /** _MBC_LEAD */
- }
- if (start == str && MSVCRT_isleadbyte(str[-1])) {
- return 2; /**_MBC_TRAIL */
- }
- return 0; /** _MBC_SINGLE */
Cool. How about patching mbctype.h with these constants too?
--Juan
__________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/