📄 group__text__parse__fns.htm
字号:
<tr><td valign="top"></td><td valign="top"><em>mstr</em> </td><td>The multi-byte string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>len</em> </td><td>The length of the string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>pos_words</em> </td><td>The position of words will be returned through this array if it is not NULL. </td></tr> <tr><td valign="top"></td><td valign="top"><em>info_words</em> </td><td>The words' information will be returned through this array if it is not NULL. </td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The number of words in the multi-byte string.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__parse__fns.htm#ga0">GetTextMCharInfo</a>, <a class="el" href="group__font__fns.htm#ga4">WORDINFO</a> </dd></dl> </td> </tr></table><a class="anchor" name="ga4" doxytag="gdi.h::MB2WCEx"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int GUIAPI MB2WCEx </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__LOGFONT.htm">PLOGFONT</a> </td> <td class="mdname" nowrap> <em>log_font</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>dest</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__simple__types.htm#ga0">BOOL</a> </td> <td class="mdname" nowrap> <em>wc32</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const unsigned char * </td> <td class="mdname" nowrap> <em>mstr</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>n</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Converts a multibyte character to a wide character in UCS according to the charset/encoding of the logical font. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>log_font</em> </td><td>The logical font. </td></tr> <tr><td valign="top"></td><td valign="top"><em>dest</em> </td><td>The buffer used to store the wide character; can be NULL. </td></tr> <tr><td valign="top"></td><td valign="top"><em>wc32</em> </td><td>Whether the wide char is 32-bit long. TRUE for yes, FALSE for 16-bit long. </td></tr> <tr><td valign="top"></td><td valign="top"><em>mstr</em> </td><td>The pointer to the multi-byte character. </td></tr> <tr><td valign="top"></td><td valign="top"><em>n</em> </td><td>The length of the multi-byte character.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>If mchar is not NULL, the function returns the number of consumed bytes starting at mchar, or 0 if s points to a null byte, or -1 upon failure.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__parse__fns.htm#ga5">WC2MBEx</a>, mbtowc </dd></dl> </td> </tr></table><a class="anchor" name="ga6" doxytag="gdi.h::MBS2WCSEx"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int GUIAPI MBS2WCSEx </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__LOGFONT.htm">PLOGFONT</a> </td> <td class="mdname" nowrap> <em>log_font</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>void * </td> <td class="mdname" nowrap> <em>dest</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__simple__types.htm#ga0">BOOL</a> </td> <td class="mdname" nowrap> <em>wc32</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const unsigned char * </td> <td class="mdname" nowrap> <em>mstr</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>mstr_len</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>n</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int * </td> <td class="mdname" nowrap> <em>conved_mstr_len</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Converts a multibyte string to a wide character string in UC16 according to the charset/encoding of the logical font. <p>This function is a MiniGUI version of ISO/ANSI mbstowcs function. It converts a multibyte string to a wide character string in UC16. The behaviour of mbstowcs depends on the LC_CTYPE category of the current locale, while MBS2WCS depends on the charset/encoding of MiniGUI logical font.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>log_font</em> </td><td>The logical font. </td></tr> <tr><td valign="top"></td><td valign="top"><em>dest</em> </td><td>The buffer used to store the converted wide character string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>wc32</em> </td><td>Whether the unicode char is 32-bit long. TRUE for yes, FALSE for 16-bit long. </td></tr> <tr><td valign="top"></td><td valign="top"><em>mstr</em> </td><td>The pointer to multibyte string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>mstr_len</em> </td><td>The length of the multibyte string in bytes. </td></tr> <tr><td valign="top"></td><td valign="top"><em>n</em> </td><td>The length of the buffer in wide characters. </td></tr> <tr><td valign="top"></td><td valign="top"><em>conved_mstr_len</em> </td><td>The length of the multibyte string which are converted correctly in bytes will be returned through this pointer, can be NULL.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The function returns the number of wide characters that make up the converted part of the wide character string, not including the terminating null wide character. If an invalid multibyte sequence was encountered, -1 is returned.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__parse__fns.htm#ga7">WCS2MBSEx</a>, mbstowcs, mbsrtowcs </dd></dl> </td> </tr></table><a class="anchor" name="ga5" doxytag="gdi.h::WC2MBEx"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int GUIAPI WC2MBEx </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__LOGFONT.htm">PLOGFONT</a> </td> <td class="mdname" nowrap> <em>log_font</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>unsigned char * </td> <td class="mdname" nowrap> <em>s</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>UChar32 </td> <td class="mdname" nowrap> <em>wc</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Converts a wide character in UCS to a multibyte character according to the charset/encoding of the logical font. <p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>log_font</em> </td><td>The logical font. </td></tr> <tr><td valign="top"></td><td valign="top"><em>s</em> </td><td>The buffer used to store the converted multibyte characters. </td></tr> <tr><td valign="top"></td><td valign="top"><em>wc</em> </td><td>The wide character.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>If s is not NULL, the function returns the number of bytes that have been written to the byte array at s. If wc can not be represented as a multibyte sequence (according to the current logfont), -1 is returned.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__parse__fns.htm#ga11">WC2MB</a>, mbtowc </dd></dl> </td> </tr></table><a class="anchor" name="ga7" doxytag="gdi.h::WCS2MBSEx"></a><p><table class="mdTable" cellpadding="2" cellspacing="0"> <tr> <td class="mdRow"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top">int GUIAPI WCS2MBSEx </td> <td class="md" valign="top">( </td> <td class="md" nowrap valign="top"><a class="el" href="struct__LOGFONT.htm">PLOGFONT</a> </td> <td class="mdname" nowrap> <em>log_font</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>unsigned char * </td> <td class="mdname" nowrap> <em>dest</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>const void * </td> <td class="mdname" nowrap> <em>wcs</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>wcs_len</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap><a class="el" href="group__simple__types.htm#ga0">BOOL</a> </td> <td class="mdname" nowrap> <em>wc32</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int </td> <td class="mdname" nowrap> <em>n</em>, </td> </tr> <tr> <td class="md" nowrap align="right"></td> <td class="md"></td> <td class="md" nowrap>int * </td> <td class="mdname" nowrap> <em>conved_wcs_len</em></td> </tr> <tr> <td class="md"></td> <td class="md">) </td> <td class="md" colspan="2"></td> </tr> </table> </td> </tr></table><table cellspacing="5" cellpadding="0" border="0"> <tr> <td> </td> <td><p>Converts a wide character string in UC16 to a multibyte string according to the charset/encoding of the logical font. <p>This function is a MiniGUI version of ISO/ANSI wcstombs function. It converts a wide character string in UC16 to a multibyte string. The behaviour of wcstombs depends on the LC_CTYPE category of the current locale, while WCS2MBS depends on the charset/encoding of MiniGUI logical font.<p><dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>log_font</em> </td><td>The logical font. </td></tr> <tr><td valign="top"></td><td valign="top"><em>dest</em> </td><td>The buffer used to store the converted multibyte string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>wcs</em> </td><td>The pointer to the wide character string. </td></tr> <tr><td valign="top"></td><td valign="top"><em>wcs_len</em> </td><td>The number of the wide characters in wcs. </td></tr> <tr><td valign="top"></td><td valign="top"><em>wc32</em> </td><td>Whether the wide char is 32-bit long. TRUE for yes, FALSE for 16-bit long. </td></tr> <tr><td valign="top"></td><td valign="top"><em>n</em> </td><td>The length of the dest in bytes. </td></tr> <tr><td valign="top"></td><td valign="top"><em>conved_wcs_len</em> </td><td>The number of the wide characters which are converted correctly will be returned through this pointer, can be NULL.</td></tr> </table></dl><dl compact><dt><b>Returns:</b></dt><dd>The function returns the number of bytes that make up the converted part of multibyte sequence, not including the terminating null byte. If a wide character was encountered which could not be converted, -1 is returned.</dd></dl><dl compact><dt><b>See also:</b></dt><dd><a class="el" href="group__text__parse__fns.htm#ga6">MBS2WCSEx</a>, wcstombs, wcsrtombs </dd></dl> </td> </tr></table><hr size="1"><address style="align: right;"><small>Generated on Thu Nov 22 15:35:54 2007 for MiniGUI V1.6.10 API Reference by <a href="http://www.doxygen.org/index.html"><img src="http://www.minigui.com/api_ref/1.6.10/doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.4.2 </small></address></body></html>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -