C++ _mbbtype函数使用注意事项
2012-02-25 15:12
351 查看
在MSDN里面对_mbbtype有如下定义:
上面的英文"type is the type of the previous byte in the string. "说明,参数type是同一字符串中前一个字符的type,也就是说这个函数是和上下文相关的,使用的时候必须先知道它的前一个字符是什么类型,才能判断出他自己的类型。
附返回值说明:
Returns the byte type based on the previous byte. int _mbbtype( unsigned char c, int type ); Parameters c Character to test. type Type of byte to test for. Return Value _mbbtype returns the type of byte within a string. This decision is context-sensitive as specified by the value of type, which provides the control test condition. type is the type of the previous byte in the string. The manifest constants in the following table are defined in Mbctype.h.
上面的英文"type is the type of the previous byte in the string. "说明,参数type是同一字符串中前一个字符的type,也就是说这个函数是和上下文相关的,使用的时候必须先知道它的前一个字符是什么类型,才能判断出他自己的类型。
附返回值说明:
相关文章推荐
- Brew中使用C++需要注意的事项
- C++学习之使用new的注意事项
- c++使用auto的注意事项
- [UE4]注意事项,插件中蓝图方法库在C++中的使用
- 使用C++ STL需要注意的事项
- keil 中使用c++的注意事项
- C++使用注意事项
- C/C++_sizeof的本质与使用注意事项
- C++中typename关键字的使用方法和注意事项
- c++ template怎么使用及注意事项
- 由PAT 1015德才论(C/C++)引发的关于快速排序qsort的使用注意事项
- C++ 中switch 使用注意事项
- c++中struct使用注意事项
- C++学习之使用new的注意事项
- C++使用CInternetSession请求url下载jason数据,并且进行解析。以及注意事项
- C++指针与引用(三):引用使用注意事项
- C++中typename关键字的使用方法和注意事项
- 32位和64位C++程序使用ADO访问ORACLE注意事项和区别
- c++ shared_ptr智能指针使用注意事项
- C++:在构造函数中使用new时应该注意的事项