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> 1000002 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 1100003 1200004 <span class="comment">// O S C L _ U T F 8 C O N V</span> 1300005 1400006 <span class="comment">// = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =</span> 1500007 1600019 <span class="comment">/********************************************************************************</span> 1700020 <span class="comment"> UTF-8 Bit Distribution</span> 1800021 <span class="comment"></span> 1900022 <span class="comment">UTF-16 1st Byte 2nd Byte 3rd Byte 4th Byte</span> 2000023 <span class="comment">-------- -------- -------- -------- -------- -------- -------- --------</span> 2100024 <span class="comment">00000000 0xxxxxxx 0xxxxxxx</span> 2200025 <span class="comment">00000yyy yyxxxxxx 110yyyyy 10xxxxxx</span> 2300026 <span class="comment">zzzzyyyy yyxxxxxx 1110zzzz 10yyyyyy 10xxxxxx</span> 2400027 <span class="comment">110110ww wwzzzzyy 110111yy yyxxxxxx 11110uuu 10uuzzzz 10yyyyyy 10xxxxxx</span> 2500028 <span class="comment"></span> 2600029 <span class="comment">NOTE:</span> 2700030 <span class="comment"> uuuuu = wwww+1 (to account for addition of 0x10000 as in Section 3.7, Surrogates)</span> 2800031 <span class="comment"></span> 2900032 <span class="comment">**********************************************************************************/</span> 3000033 3100034 3200035 <span class="preprocessor">#ifndef OSCL_UTF8CONV_H</span> 3300036 <span class="preprocessor"></span><span class="preprocessor">#define OSCL_UTF8CONV_H</span> 3400037 <span class="preprocessor"></span> 3500038 <span class="preprocessor">#ifndef OSCL_BASE_INCLUDED_H</span> 3600039 <span class="preprocessor"></span><span class="preprocessor">#include "<a class="code" href="oscl__base_8h.html">oscl_base.h</a>"</span> 3700040 <span class="preprocessor">#endif</span> 3800041 <span class="preprocessor"></span> 3900042 <span class="comment">// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span> 4000043 <span class="comment">// Function prototypes</span> 4100065 <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); 4200066 4300067 4400068 <span class="comment">// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -</span> 4500069 <span class="comment">// Function prototypes</span> 4600091 <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); 4700092 4800093 <span class="preprocessor">#endif </span><span class="comment">/* OSCL_UTF8CONV_H */</span> 4900094 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