| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> |
| <title>oscl_utf8conv.h Source File</title> |
| <link href="doxygen.css" rel="stylesheet" type="text/css"> |
| </head><body> |
| <!-- Generated by Doxygen 1.2.18 --> |
| <center> |
| <a class="qindex" href="index.html">Main Page</a> <a class="qindex" href="modules.html">Modules</a> <a class="qindex" href="hierarchy.html">Class Hierarchy</a> <a class="qindex" href="annotated.html">Data Structures</a> <a class="qindex" href="files.html">File List</a> <a class="qindex" href="functions.html">Data Fields</a> <a class="qindex" href="globals.html">Globals</a> </center> |
| <hr><h1>oscl_utf8conv.h</h1><a href="oscl__utf8conv_8h.html">Go to the documentation of this file.</a><div class="fragment"><pre>00001 <span class="comment">// -*- c++ -*-</span> |
| 00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00003 |
| 00004 <span class="comment">// O S C L _ U T F 8 C O N V</span> |
| 00005 |
| 00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> |
| 00007 |
| 00019 <span class="comment">/********************************************************************************</span> |
| 00020 <span class="comment"> UTF-8 Bit Distribution</span> |
| 00021 <span class="comment"></span> |
| 00022 <span class="comment">UTF-16 1st Byte 2nd Byte 3rd Byte 4th Byte</span> |
| 00023 <span class="comment">-------- -------- -------- -------- -------- -------- -------- --------</span> |
| 00024 <span class="comment">00000000 0xxxxxxx 0xxxxxxx</span> |
| 00025 <span class="comment">00000yyy yyxxxxxx 110yyyyy 10xxxxxx</span> |
| 00026 <span class="comment">zzzzyyyy yyxxxxxx 1110zzzz 10yyyyyy 10xxxxxx</span> |
| 00027 <span class="comment">110110ww wwzzzzyy 110111yy yyxxxxxx 11110uuu 10uuzzzz 10yyyyyy 10xxxxxx</span> |
| 00028 <span class="comment"></span> |
| 00029 <span class="comment">NOTE:</span> |
| 00030 <span class="comment"> uuuuu = wwww+1 (to account for addition of 0x10000 as in Section 3.7, Surrogates)</span> |
| 00031 <span class="comment"></span> |
| 00032 <span class="comment">**********************************************************************************/</span> |
| 00033 |
| 00034 |
| 00035 <span class="preprocessor">#ifndef OSCL_UTF8CONV_H</span> |
| 00036 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_UTF8CONV_H</span> |
| 00037 <span class="preprocessor"></span> |
| 00038 <span class="preprocessor">#ifndef OSCL_BASE_INCLUDED_H</span> |
| 00039 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span> |
| 00040 <span class="preprocessor">#endif</span> |
| 00041 <span class="preprocessor"></span> |
| 00042 <span class="comment">// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span> |
| 00043 <span class="comment">// Function prototypes</span> |
| 00065 <span class="comment"></span>OSCL_IMPORT_REF int32 <a class="code" href="group__osclutil.html#a44">oscl_UTF8ToUnicode</a>(<span class="keyword">const</span> <span class="keywordtype">char</span> *input, int32 inLength, <a class="code" href="group__osclbase.html#a32">oscl_wchar</a> *output, int32 outLength); |
| 00066 |
| 00067 |
| 00068 <span class="comment">// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span> |
| 00069 <span class="comment">// Function prototypes</span> |
| 00091 <span class="comment"></span>OSCL_IMPORT_REF int32 <a class="code" href="group__osclutil.html#a45">oscl_UnicodeToUTF8</a>(<span class="keyword">const</span> <a class="code" href="group__osclbase.html#a32">oscl_wchar</a> *input, int32 inLength, <span class="keywordtype">char</span> *output, int32 outLength); |
| 00092 |
| 00093 <span class="preprocessor">#endif </span><span class="comment">/* OSCL_UTF8CONV_H */</span> |
| 00094 |
| </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> |
| <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> |
| </small></address> |
| </body> |
| </html> |