/usr/share/opencc/doc/html/classopencc_1_1_dict.html is in libopencc2-data 1.0.4-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 | <!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.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Open Chinese Convert: opencc::Dict Class 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">Open Chinese Convert
 <span id="projectnumber">1.0.4</span>
</div>
<div id="projectbrief">A project for conversion between Traditional and Simplified Chinese</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<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"><b>opencc</b></li><li class="navelem"><a class="el" href="classopencc_1_1_dict.html">Dict</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#pub-methods">Public Member Functions</a> |
<a href="classopencc_1_1_dict-members.html">List of all members</a> </div>
<div class="headertitle">
<div class="title">opencc::Dict Class Reference<span class="mlabels"><span class="mlabel">abstract</span></span><div class="ingroups"><a class="el" href="group__opencc__cpp__api.html">OpenCC C++ Comprehensive API</a></div></div> </div>
</div><!--header-->
<div class="contents">
<p>Abstract class of dictionary.
<a href="classopencc_1_1_dict.html#details">More...</a></p>
<p><code>#include <<a class="el" href="_dict_8hpp_source.html">Dict.hpp</a>></code></p>
<div class="dynheader">
Inheritance diagram for opencc::Dict:</div>
<div class="dyncontent">
<div class="center">
<img src="classopencc_1_1_dict.png" usemap="#opencc::Dict_map" alt=""/>
<map id="opencc::Dict_map" name="opencc::Dict_map">
<area href="classopencc_1_1_darts_dict.html" title="Darts dictionary. " alt="opencc::DartsDict" shape="rect" coords="0,56,117,80"/>
<area href="classopencc_1_1_dict_group.html" title="Group of dictionaries. " alt="opencc::DictGroup" shape="rect" coords="127,56,244,80"/>
<area href="classopencc_1_1_text_dict.html" title="Text dictionary. " alt="opencc::TextDict" shape="rect" coords="254,56,371,80"/>
</map>
</div></div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:ad3ab0df0d1fdf857c3440737aaae87a1"><td class="memItemLeft" align="right" valign="top"><a id="ad3ab0df0d1fdf857c3440737aaae87a1"></a>
virtual <a class="el" href="classopencc_1_1_optional.html">Optional</a>< const <a class="el" href="classopencc_1_1_dict_entry.html">DictEntry</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classopencc_1_1_dict.html#ad3ab0df0d1fdf857c3440737aaae87a1">Match</a> (const char *word) const =0</td></tr>
<tr class="memdesc:ad3ab0df0d1fdf857c3440737aaae87a1"><td class="mdescLeft"> </td><td class="mdescRight">Matches a word exactly and returns the <a class="el" href="classopencc_1_1_dict_entry.html" title="Key-values pair entry. ">DictEntry</a> or <a class="el" href="classopencc_1_1_optional.html#a5a11611ae7d3e677a6c0a611c06d9e3d" title="Constructs a null instance. ">Optional::Null()</a>. <br /></td></tr>
<tr class="separator:ad3ab0df0d1fdf857c3440737aaae87a1"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a9123a609f2ef5dffd80813a348556543"><td class="memItemLeft" align="right" valign="top"><a id="a9123a609f2ef5dffd80813a348556543"></a>
<a class="el" href="classopencc_1_1_optional.html">Optional</a>< const <a class="el" href="classopencc_1_1_dict_entry.html">DictEntry</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classopencc_1_1_dict.html#a9123a609f2ef5dffd80813a348556543">Match</a> (const string &word) const</td></tr>
<tr class="memdesc:a9123a609f2ef5dffd80813a348556543"><td class="mdescLeft"> </td><td class="mdescRight">Matches a word exactly and returns the <a class="el" href="classopencc_1_1_dict_entry.html" title="Key-values pair entry. ">DictEntry</a> or <a class="el" href="classopencc_1_1_optional.html#a5a11611ae7d3e677a6c0a611c06d9e3d" title="Constructs a null instance. ">Optional::Null()</a>. <br /></td></tr>
<tr class="separator:a9123a609f2ef5dffd80813a348556543"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a4ff53f0a1218228953e8ecb42d111326"><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classopencc_1_1_optional.html">Optional</a>< const <a class="el" href="classopencc_1_1_dict_entry.html">DictEntry</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classopencc_1_1_dict.html#a4ff53f0a1218228953e8ecb42d111326">MatchPrefix</a> (const char *word) const</td></tr>
<tr class="memdesc:a4ff53f0a1218228953e8ecb42d111326"><td class="mdescLeft"> </td><td class="mdescRight">Matches the longest matched prefix of a word. <a href="#a4ff53f0a1218228953e8ecb42d111326">More...</a><br /></td></tr>
<tr class="separator:a4ff53f0a1218228953e8ecb42d111326"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a64fe5e90622d00261eb5a99269ea4522"><td class="memItemLeft" align="right" valign="top"><a id="a64fe5e90622d00261eb5a99269ea4522"></a>
<a class="el" href="classopencc_1_1_optional.html">Optional</a>< const <a class="el" href="classopencc_1_1_dict_entry.html">DictEntry</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classopencc_1_1_dict.html#a64fe5e90622d00261eb5a99269ea4522">MatchPrefix</a> (const string &word) const</td></tr>
<tr class="memdesc:a64fe5e90622d00261eb5a99269ea4522"><td class="mdescLeft"> </td><td class="mdescRight">Matches the longest matched prefix of a word. <br /></td></tr>
<tr class="separator:a64fe5e90622d00261eb5a99269ea4522"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:ac5aac59a15993d0102a75fd8d1a4f3f3"><td class="memItemLeft" align="right" valign="top">virtual vector< const <a class="el" href="classopencc_1_1_dict_entry.html">DictEntry</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classopencc_1_1_dict.html#ac5aac59a15993d0102a75fd8d1a4f3f3">MatchAllPrefixes</a> (const char *word) const</td></tr>
<tr class="memdesc:ac5aac59a15993d0102a75fd8d1a4f3f3"><td class="mdescLeft"> </td><td class="mdescRight">Returns all matched prefixes of a word, sorted by the length (desc). <a href="#ac5aac59a15993d0102a75fd8d1a4f3f3">More...</a><br /></td></tr>
<tr class="separator:ac5aac59a15993d0102a75fd8d1a4f3f3"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:acfe0aca4a9ef68e40fbbadb8a1c823ae"><td class="memItemLeft" align="right" valign="top"><a id="acfe0aca4a9ef68e40fbbadb8a1c823ae"></a>
vector< const <a class="el" href="classopencc_1_1_dict_entry.html">DictEntry</a> * > </td><td class="memItemRight" valign="bottom"><a class="el" href="classopencc_1_1_dict.html#acfe0aca4a9ef68e40fbbadb8a1c823ae">MatchAllPrefixes</a> (const string &word) const</td></tr>
<tr class="memdesc:acfe0aca4a9ef68e40fbbadb8a1c823ae"><td class="mdescLeft"> </td><td class="mdescRight">Returns all matched prefixes of a word, sorted by the length (desc). <br /></td></tr>
<tr class="separator:acfe0aca4a9ef68e40fbbadb8a1c823ae"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a3510da98594e790c35e5b06198d99ff7"><td class="memItemLeft" align="right" valign="top"><a id="a3510da98594e790c35e5b06198d99ff7"></a>
virtual size_t </td><td class="memItemRight" valign="bottom"><a class="el" href="classopencc_1_1_dict.html#a3510da98594e790c35e5b06198d99ff7">KeyMaxLength</a> () const =0</td></tr>
<tr class="memdesc:a3510da98594e790c35e5b06198d99ff7"><td class="mdescLeft"> </td><td class="mdescRight">Returns the length of the longest key in the dictionary. <br /></td></tr>
<tr class="separator:a3510da98594e790c35e5b06198d99ff7"><td class="memSeparator" colspan="2"> </td></tr>
<tr class="memitem:a5c7c7bb2a5c9fca9077233bd38d7a3dd"><td class="memItemLeft" align="right" valign="top"><a id="a5c7c7bb2a5c9fca9077233bd38d7a3dd"></a>
virtual LexiconPtr </td><td class="memItemRight" valign="bottom"><a class="el" href="classopencc_1_1_dict.html#a5c7c7bb2a5c9fca9077233bd38d7a3dd">GetLexicon</a> () const =0</td></tr>
<tr class="memdesc:a5c7c7bb2a5c9fca9077233bd38d7a3dd"><td class="mdescLeft"> </td><td class="mdescRight">Returns all entries in the dictionary. <br /></td></tr>
<tr class="separator:a5c7c7bb2a5c9fca9077233bd38d7a3dd"><td class="memSeparator" colspan="2"> </td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Abstract class of dictionary. </p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="ac5aac59a15993d0102a75fd8d1a4f3f3"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5aac59a15993d0102a75fd8d1a4f3f3">◆ </a></span>MatchAllPrefixes()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname">vector< const <a class="el" href="classopencc_1_1_dict_entry.html">DictEntry</a> * > Dict::MatchAllPrefixes </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>word</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Returns all matched prefixes of a word, sorted by the length (desc). </p>
<p>For example given a dictionary having "a", "an", "b", "ba", "ban", "bana", all the matched prefixes of "banana" are "bana", "ban", "ba", "b". </p>
<p>Reimplemented in <a class="el" href="classopencc_1_1_dict_group.html#a1258697531b842c24c52671418e904ac">opencc::DictGroup</a>.</p>
</div>
</div>
<a id="a4ff53f0a1218228953e8ecb42d111326"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ff53f0a1218228953e8ecb42d111326">◆ </a></span>MatchPrefix()</h2>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
<tr>
<td class="mlabels-left">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classopencc_1_1_optional.html">Optional</a>< const <a class="el" href="classopencc_1_1_dict_entry.html">DictEntry</a> * > Dict::MatchPrefix </td>
<td>(</td>
<td class="paramtype">const char * </td>
<td class="paramname"><em>word</em></td><td>)</td>
<td> const</td>
</tr>
</table>
</td>
<td class="mlabels-right">
<span class="mlabels"><span class="mlabel">virtual</span></span> </td>
</tr>
</table>
</div><div class="memdoc">
<p>Matches the longest matched prefix of a word. </p>
<p>For example given a dictionary having "a", "an", "b", "ba", "ban", "bana", the longest prefix of "banana" matched is "bana". </p>
<p>Reimplemented in <a class="el" href="classopencc_1_1_dict_group.html#a6143688a56a6f238e95441666555aa02">opencc::DictGroup</a>, and <a class="el" href="classopencc_1_1_darts_dict.html#acfd39402d385fbeeec941d63629e0929">opencc::DartsDict</a>.</p>
</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="_dict_8hpp_source.html">Dict.hpp</a></li>
<li>Dict.cpp</li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Jan 20 2017 07:15:35 for Open Chinese Convert by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
|