⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 cunicodeconv.html

📁 可在Win32或是Unix或是其他作業系統下進行Unicode / Big5 雙向轉換
💻 HTML
字号:
<html>

<head>
<meta http-equiv="Content-Language" content="en-us">
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<meta name="GENERATOR" content="Microsoft FrontPage 4.0">
<meta name="ProgId" content="FrontPage.Editor.Document">
<title>CUnicodeConv class members</title>
</head>

<body>

<table border="0" width="100%" bgcolor="#0000FF">
  <tr>
    <td width="100%"><font color="#FFFF00">CUnicodeConv class members : Unicode 
      to big5 conversion class library</font></td>
  </tr>
</table>
<p><font size="5"><b>convertSingleCharUtoB</b></font></p>
<p>The <b>convertSingleCharUtoB</b> function maps an unicode character to the 
same character in big5 encoding .</p>
<div align="center">
  <center>
  <table border="1" width="894" height="129" bgcolor="#C0C0C0">
    <tr>
      <td width="100%"><b>BOOL convertSingleCharUtoB(</b>
        <p><b>char*</b> <font color="#0000FF">pDstStr</font>, // destination 
        character buffer ( in big5 encoding)</p>
        <p><b>char*</b> <font color="#0000FF">pStr </font><font color="#000000">// 
        source character buffer ( unicode , in %u???? format)</font></p>
        <p><b>);</b></td>
    </tr>
  </table>
  </center>
</div>
<h4>Parameters</h4>
<p><i>pDstStr</i></p>
<p>&nbsp;&nbsp;&nbsp;<i> </i>The buffer to hold converted character , the 
minimal size shall be at least 2 bytes for a big5 character .</p>
<p><i>pStr&nbsp;</i><font color="#000000"></font></p>
<p>&nbsp;&nbsp;&nbsp; The buffer contains source unicode character , however it 
shall be in this format %u???? which can usually be seen in URL strings .</p>
<p><b>Return Values</b></p>
<p>&nbsp;&nbsp;&nbsp;<b> </b>This function returns TRUE if successes , FALSE 
while fails . To see the error message , simply read the class member errMsg .</p>
<p><b>Remarks</b></p>
<p>&nbsp;&nbsp;&nbsp;<b> </b>This function only does the conversion while the 
source srting is legal unicode URL expression , if it's illegal , the function 
returns FALSE .</p>
<p><font size="5"><b>convertUrlStringUtoB</b></font></p>
<p>The <b><font size="5">c</font>onvertUrlStringUtoB<font size="5"> </font></b>function 
maps an unicode URL string to the same string in big5 encoding .</p>
<div align="center">
  <center>
  <table border="1" width="894" height="129" bgcolor="#C0C0C0">
    <tr>
      <td width="100%" height="129"><b>BOOL convertUrlStringUtoB(</b>
        <p><b>char*</b> <font color="#0000FF">pDstStr</font>, // destination 
        string buffer ( in big5 encoding )</p>
        <p><b>char*</b> <font color="#0000FF">strUnicode</font><font color="#000000">// 
        source URL string buffer ( unicode , in %u????%u????... format)</font></p>
        <p><b>);</b></td>
    </tr>
  </table>
  </center>
</div>
<h4>Parameters</h4>
<p><i>pDstStr</i></p>
<p>&nbsp;&nbsp;&nbsp;<i> </i>The buffer to hold converted string , it shall be 
big enough to hold the converted data .</p>
<p><i>strUnicode</i><font color="#000000"></font></p>
<p>&nbsp;&nbsp;&nbsp; The buffer contains source unicode URL string , however it 
shall be in this format %u????%u????.. which can usually be seen in URL strings 
, note that this string can not only contains unicode URL expression but also 
contains ascii characters .</p>
<p><b>Return Values</b></p>
<p>&nbsp;&nbsp; <b> </b>This function returns TRUE if successes , FALSE while 
fails . To see the error message , simply read the class member errMsg . If one 
of the unicode elements in the source string contains any error , this element 
is not converted to big but the function will continue to convert the rest 
strings , and the return value will be FALSE still .</p>
<p><b>Remarks</b></p>
<p>&nbsp;&nbsp; <b> </b>This function converts the whole source string no matter 
it contains error or not , but if error occurs the return value is FALSE .</p>
<p>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -