1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://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.9.1"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>The m17n Library: MCodingInfoUTF Struct 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" />
</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">The m17n Library
 <span id="projectnumber">1.8.4</span>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.9.1 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search','.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</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><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-attribs">Data Fields</a> </div>
<div class="headertitle">
<div class="title">MCodingInfoUTF Struct Reference<div class="ingroups"><a class="el" href="group__m17nShell.html">SHELL API</a> » <a class="el" href="group__m17nConv.html">Code Conversion</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>Structure for extra information about a coding system of type <a class="el" href="group__m17nConv.html#ggaad6093554a9b9fbee4aff963bb3b1efba52dc03931e768c13c7968dcf817c7ad7">MCODING_TYPE_UTF</a>.
<a href="structMCodingInfoUTF.html#details">More...</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:ad1a0a99c0bc1b2d78090df6824c28fe8"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structMCodingInfoUTF.html#ad1a0a99c0bc1b2d78090df6824c28fe8">code_unit_bits</a></td></tr>
<tr class="separator:ad1a0a99c0bc1b2d78090df6824c28fe8"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a76136aaed031c21a9d8ea4ebc32bddf4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structMCodingInfoUTF.html#a76136aaed031c21a9d8ea4ebc32bddf4">bom</a></td></tr>
<tr class="separator:a76136aaed031c21a9d8ea4ebc32bddf4"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac0c8e457d17f8e5e4b7e19265c7c04d4"><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="structMCodingInfoUTF.html#ac0c8e457d17f8e5e4b7e19265c7c04d4">endian</a></td></tr>
<tr class="separator:ac0c8e457d17f8e5e4b7e19265c7c04d4"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Structure for extra information about a coding system of type <a class="el" href="group__m17nConv.html#ggaad6093554a9b9fbee4aff963bb3b1efba52dc03931e768c13c7968dcf817c7ad7">MCODING_TYPE_UTF</a>. </p>
</div><h2 class="groupheader">Field Documentation</h2>
<a id="ad1a0a99c0bc1b2d78090df6824c28fe8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ad1a0a99c0bc1b2d78090df6824c28fe8">◆ </a></span>code_unit_bits</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int MCodingInfoUTF::code_unit_bits</td>
</tr>
</table>
</div><div class="memdoc">
<p>Specify bits of a code unit. The value must be 8, 16, or 32. <br />
</p>
</div>
</div>
<a id="a76136aaed031c21a9d8ea4ebc32bddf4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a76136aaed031c21a9d8ea4ebc32bddf4">◆ </a></span>bom</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int MCodingInfoUTF::bom</td>
</tr>
</table>
</div><div class="memdoc">
<p>Specify how to handle the heading BOM (byte order mark). The value must be 0, 1, or 2. The meanings are as follows:</p>
<p>0: On decoding, check the first two byte. If they are BOM, decide endian by them. If not, decide endian by the member <code>endian</code>. On encoding, produce byte sequence according to <code>endian</code> with heading BOM.</p>
<p>1: On decoding, do not handle the first two bytes as BOM, and decide endian by <code>endian</code>. On encoding, produce byte sequence according to <code>endian</code> without BOM.</p>
<p>2: On decoding, handle the first two bytes as BOM and decide ending by them. On encoding, produce byte sequence according to <code>endian</code> with heading BOM.</p>
<p>If <code_unit_bits> is 8, the value has no meaning. <br />
</p>
</div>
</div>
<a id="ac0c8e457d17f8e5e4b7e19265c7c04d4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac0c8e457d17f8e5e4b7e19265c7c04d4">◆ </a></span>endian</h2>
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int MCodingInfoUTF::endian</td>
</tr>
</table>
</div><div class="memdoc">
<p>Specify the endian type. The value must be 0 or 1. 0 means little endian, and 1 means big endian.</p>
<p>If <code_unit_bits> is 8, the value has no meaning. <br />
</p>
</div>
</div>
</div><!-- contents -->
<hr>
<ADDRESS>
<a href="http://www.m17n.org/m17n-lib-en/index.html" target="mulewindow"><img src="parrot.png" align=bottom alt="m17n-lib Home" border=0></a>
</ADDRESS>
</body>
</HTML>
<!-- Copyright information
Copyright (C) 2001 Information-technology Promotion Agency (IPA)
Copyright (C) 2001-2011
National Institute of Advanced Industrial Science and Technology (AIST)
This file is part of the m17n library documentation.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.2 or
any later version published by the Free Software Foundation; with no
Invariant Section, no Front-Cover Texts,
and no Back-Cover Texts. A copy of the license is included in the
appendix entitled "GNU Free Documentation License".
-->
|