<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.12"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>libcbor: src/cbor/internal/unicode.c File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
<link href="customdoxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">libcbor
 <span id="projectnumber">0.5.0</span>
</div>
<div id="projectbrief">libcbor is a C library for parsing and generating CBOR, the general-purpose schema-less binary data format.</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.12 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_68267d1309a1af8e8297ef4c3efbcdba.html">src</a></li><li class="navelem"><a class="el" href="dir_cb565ba51d82ea933604984cbab6233d.html">cbor</a></li><li class="navelem"><a class="el" href="dir_3ebe94c85f6786bf802771098c1d09bb.html">internal</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#define-members">Macros</a> |
<a href="#func-members">Functions</a> </div>
<div class="headertitle">
<div class="title">unicode.c File Reference</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include "<a class="el" href="unicode_8h_source.html">unicode.h</a>"</code><br />
</div>
<p><a href="unicode_8c_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a82b09bd7c24e408c73e16db56b8db6cf"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="unicode_8c.html#a82b09bd7c24e408c73e16db56b8db6cf">UTF8_ACCEPT</a>   0</td></tr>
<tr class="separator:a82b09bd7c24e408c73e16db56b8db6cf"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a2e385a04dd7c4529414ab34a75a4f9ef"><td class="memItemLeft" align="right" valign="top">#define </td><td class="memItemRight" valign="bottom"><a class="el" href="unicode_8c.html#a2e385a04dd7c4529414ab34a75a4f9ef">UTF8_REJECT</a>   1</td></tr>
<tr class="separator:a2e385a04dd7c4529414ab34a75a4f9ef"><td class="memSeparator" colspan="2"> </td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:aea748174291fa35e154c69e7669f199b"><td class="memItemLeft" align="right" valign="top">uint32_t </td><td class="memItemRight" valign="bottom"><a class="el" href="unicode_8c.html#aea748174291fa35e154c69e7669f199b">_cbor_unicode_decode</a> (uint32_t *state, uint32_t *codep, uint32_t byte)</td></tr>
<tr class="separator:aea748174291fa35e154c69e7669f199b"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ade9ebfe3d9b9bfad4c9fd5c158d519a8"><td class="memItemLeft" align="right" valign="top">size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="unicode_8c.html#ade9ebfe3d9b9bfad4c9fd5c158d519a8">_cbor_unicode_codepoint_count</a> (<a class="el" href="data_8h.html#a121c5944682215e742475f12f07c0a72">cbor_data</a> source, size_t source_length, struct <a class="el" href="struct__cbor__unicode__status.html">_cbor_unicode_status</a> *status)</td></tr>
<tr class="separator:ade9ebfe3d9b9bfad4c9fd5c158d519a8"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a82b09bd7c24e408c73e16db56b8db6cf"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a82b09bd7c24e408c73e16db56b8db6cf">§ </a></span>UTF8_ACCEPT</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define UTF8_ACCEPT   0</td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="unicode_8c_source.html#l00010">10</a> of file <a class="el" href="unicode_8c_source.html">unicode.c</a>.</p>
</div>
</div>
<a id="a2e385a04dd7c4529414ab34a75a4f9ef"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2e385a04dd7c4529414ab34a75a4f9ef">§ </a></span>UTF8_REJECT</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">#define UTF8_REJECT   1</td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="unicode_8c_source.html#l00011">11</a> of file <a class="el" href="unicode_8c_source.html">unicode.c</a>.</p>
</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a id="ade9ebfe3d9b9bfad4c9fd5c158d519a8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ade9ebfe3d9b9bfad4c9fd5c158d519a8">§ </a></span>_cbor_unicode_codepoint_count()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">size_t _cbor_unicode_codepoint_count </td>
<td>(</td>
<td class="paramtype"><a class="el" href="data_8h.html#a121c5944682215e742475f12f07c0a72">cbor_data</a> </td>
<td class="paramname"><em>source</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">size_t </td>
<td class="paramname"><em>source_length</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">struct <a class="el" href="struct__cbor__unicode__status.html">_cbor_unicode_status</a> * </td>
<td class="paramname"><em>status</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="unicode_8c_source.html#l00043">43</a> of file <a class="el" href="unicode_8c_source.html">unicode.c</a>.</p>
</div>
</div>
<a id="aea748174291fa35e154c69e7669f199b"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aea748174291fa35e154c69e7669f199b">§ </a></span>_cbor_unicode_decode()</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">uint32_t _cbor_unicode_decode </td>
<td>(</td>
<td class="paramtype">uint32_t * </td>
<td class="paramname"><em>state</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t * </td>
<td class="paramname"><em>codep</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">uint32_t </td>
<td class="paramname"><em>byte</em> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td>
</tr>
</table>
</div><div class="memdoc">
<p>Definition at line <a class="el" href="unicode_8c_source.html#l00032">32</a> of file <a class="el" href="unicode_8c_source.html">unicode.c</a>.</p>
</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Mon Feb 6 2017 00:26:19 for libcbor by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.12
</small></address>
</body>
</html>