如何在c ++中检查CString对象是否包含代理字符? [英] How to check whether a CString object contain surrogate character or not in c++?
问题描述
大家好,
在我的visual c ++项目中,我想检查CString对象是否包含代理字符。
这是因为我想显示一个按钮上的字符串。但是如果字符串包含代理charectr,其长度大于按钮长度,那么超过changers就会显示为小盒子(□)。所以,我想检查字符串中的每个字符是高代替字符或低代理字符。它是如何执行的?
这是范围...... [ ^ ]:)
有两个窗口宏可用
IS_HIGH_SURROGATE
IS_LOW_SURROGATE
请查询msdn
http:// msdn.microsoft.com/en-us/library/windows/desktop/dd318683(v=vs.85).aspx
Hi all,
In my visual c++ project, i want to check whether a CString object contain surrogate characters or not.
This is because i want to display a string on a button. But if string containg surrogate charectr whose length more than button length, then exceed charectrs are shown like small box( □ ). so that i want to check each charecter in the string is it hight surrogate charecter or low surrogate charecter. how it is perform?
Here are the ranges...[^] :)
There two windows macros are available
IS_HIGH_SURROGATE IS_LOW_SURROGATE
please check with msdn
http://msdn.microsoft.com/en-us/library/windows/desktop/dd318683(v=vs.85).aspx
这篇关于如何在c ++中检查CString对象是否包含代理字符?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!