1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> 2 <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> 3 <title>oscl_utf8conv.h Source File</title> 4 <link href="doxygen.css" rel="stylesheet" type="text/css"> 5 </head><body> 6 <!-- Generated by Doxygen 1.2.18 --> 7 <center> 8 <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> 9 <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> 10 00002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 11 00003 12 00004 <span class="comment">// O S C L _ U T F 8 C O N V</span> 13 00005 14 00006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 15 00007 16 00019 <span class="comment">/********************************************************************************</span> 17 00020 <span class="comment"> UTF-8 Bit Distribution</span> 18 00021 <span class="comment"></span> 19 00022 <span class="comment">UTF-16 1st Byte 2nd Byte 3rd Byte 4th Byte</span> 20 00023 <span class="comment">-------- -------- -------- -------- -------- -------- -------- --------</span> 21 00024 <span class="comment">00000000 0xxxxxxx 0xxxxxxx</span> 22 00025 <span class="comment">00000yyy yyxxxxxx 110yyyyy 10xxxxxx</span> 23 00026 <span class="comment">zzzzyyyy yyxxxxxx 1110zzzz 10yyyyyy 10xxxxxx</span> 24 00027 <span class="comment">110110ww wwzzzzyy 110111yy yyxxxxxx 11110uuu 10uuzzzz 10yyyyyy 10xxxxxx</span> 25 00028 <span class="comment"></span> 26 00029 <span class="comment">NOTE:</span> 27 00030 <span class="comment"> uuuuu = wwww+1 (to account for addition of 0x10000 as in Section 3.7, Surrogates)</span> 28 00031 <span class="comment"></span> 29 00032 <span class="comment">**********************************************************************************/</span> 30 00033 31 00034 32 00035 <span class="preprocessor">#ifndef OSCL_UTF8CONV_H</span> 33 00036 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_UTF8CONV_H</span> 34 00037 <span class="preprocessor"></span> 35 00038 <span class="preprocessor">#ifndef OSCL_BASE_INCLUDED_H</span> 36 00039 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span> 37 00040 <span class="preprocessor">#endif</span> 38 00041 <span class="preprocessor"></span> 39 00042 <span class="comment">// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span> 40 00043 <span class="comment">// Function prototypes</span> 41 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); 42 00066 43 00067 44 00068 <span class="comment">// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span> 45 00069 <span class="comment">// Function prototypes</span> 46 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); 47 00092 48 00093 <span class="preprocessor">#endif </span><span class="comment">/* OSCL_UTF8CONV_H */</span> 49 00094 50 </pre></div><hr size="1"><img src="pvlogo_small.jpg"><address style="align: right;"><small>OSCL API</small> 51 <address style="align: left;"><small>Posting Version: OPENCORE_20090310 </small> 52 </small></address> 53 </body> 54 </html> 55