Sophie

Sophie

distrib > Mandriva > 2010.0 > i586 > media > contrib-release > by-pkgid > 907b2e04e547936247d272a04226e524 > files > 106

ocaml-camomile-devel-0.7.2-1mdv2010.0.i586.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<link rel="stylesheet" href="style.css" type="text/css">
<meta content="text/html; charset=iso-8859-1" http-equiv="Content-Type">
<link rel="Start" href="index.html">
<link rel="previous" href="Main.Type.UChar.html">
<link rel="next" href="Main.Type.UMap.html">
<link rel="Up" href="Main.Type.html">
<link title="Index of types" rel=Appendix href="index_types.html">
<link title="Index of exceptions" rel=Appendix href="index_exceptions.html">
<link title="Index of values" rel=Appendix href="index_values.html">
<link title="Index of class methods" rel=Appendix href="index_methods.html">
<link title="Index of classes" rel=Appendix href="index_classes.html">
<link title="Index of class types" rel=Appendix href="index_class_types.html">
<link title="Index of modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="CaseMap" rel="Chapter" href="CaseMap.html">
<link title="CharEncoding" rel="Chapter" href="CharEncoding.html">
<link title="Default" rel="Chapter" href="Default.html">
<link title="IMap" rel="Chapter" href="IMap.html">
<link title="ISet" rel="Chapter" href="ISet.html">
<link title="Locale" rel="Chapter" href="Locale.html">
<link title="Main" rel="Chapter" href="Main.html">
<link title="OOChannel" rel="Chapter" href="OOChannel.html">
<link title="SubText" rel="Chapter" href="SubText.html">
<link title="UCS4" rel="Chapter" href="UCS4.html">
<link title="UChar" rel="Chapter" href="UChar.html">
<link title="UCharInfo" rel="Chapter" href="UCharInfo.html">
<link title="UCharTbl" rel="Chapter" href="UCharTbl.html">
<link title="UCol" rel="Chapter" href="UCol.html">
<link title="ULine" rel="Chapter" href="ULine.html">
<link title="UMap" rel="Chapter" href="UMap.html">
<link title="UNF" rel="Chapter" href="UNF.html">
<link title="UPervasives" rel="Chapter" href="UPervasives.html">
<link title="URe" rel="Chapter" href="URe.html">
<link title="UReStr" rel="Chapter" href="UReStr.html">
<link title="USet" rel="Chapter" href="USet.html">
<link title="UTF16" rel="Chapter" href="UTF16.html">
<link title="UTF8" rel="Chapter" href="UTF8.html">
<link title="UText" rel="Chapter" href="UText.html">
<link title="UnicodeString" rel="Chapter" href="UnicodeString.html">
<link title="XArray" rel="Chapter" href="XArray.html">
<link title="XString" rel="Chapter" href="XString.html"><title>Main.Type.USet</title>
</head>
<body>
<div class="navbar"><a href="Main.Type.UChar.html">Previous</a>
&nbsp;<a href="Main.Type.html">Up</a>
&nbsp;<a href="Main.Type.UMap.html">Next</a>
</div>
<center><h1>Module <a href="type_Main.Type.USet.html">Main.Type.USet</a></h1></center>
<br>
<pre><span class="keyword">module</span> USet: <code class="code">sig</code> <a href="Main.Type.USet.html">..</a> <code class="code">end</code></pre><hr width="100%">
<pre><span class="keyword">type</span> <a name="TYPEt"></a><code class="type"></code>t </pre>
<div class="info">
Sets of Unicode characters, implemented as sets of intervals.
   The signature is mostly same to Set.S in stdlib<br>
</div>

<pre><span class="keyword">val</span> <a name="VALempty"></a>empty : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a></code></pre><pre><span class="keyword">val</span> <a name="VALis_empty"></a>is_empty : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> bool</code></pre><pre><span class="keyword">val</span> <a name="VALmem"></a>mem : <code class="type"><a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> bool</code></pre><pre><span class="keyword">val</span> <a name="VALadd"></a>add : <code class="type"><a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><div class="info">
<code class="code">add_range u1 u2 s</code> adds the characters in the range <code class="code">u1</code> - <code class="code">u2</code>
   to <code class="code">s</code>. The range is determined by the code point order.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALadd_range"></a>add_range : <code class="type"><a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -><br>       <a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><pre><span class="keyword">val</span> <a name="VALsingleton"></a>singleton : <code class="type"><a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><pre><span class="keyword">val</span> <a name="VALremove"></a>remove : <code class="type"><a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><div class="info">
<code class="code">remove_range u1 u2 s</code> removes the characters in the range <code class="code">u1</code> - <code class="code">u2</code>
   from <code class="code">s</code>. The range is determined by the code point order.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALremove_range"></a>remove_range : <code class="type"><a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -><br>       <a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><pre><span class="keyword">val</span> <a name="VALunion"></a>union : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><pre><span class="keyword">val</span> <a name="VALinter"></a>inter : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><pre><span class="keyword">val</span> <a name="VALdiff"></a>diff : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><div class="info">
<code class="code">compl s</code> returns the compliment of <code class="code">s</code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALcompl"></a>compl : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><pre><span class="keyword">val</span> <a name="VALcompare"></a>compare : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> int</code></pre><pre><span class="keyword">val</span> <a name="VALequal"></a>equal : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> bool</code></pre><pre><span class="keyword">val</span> <a name="VALsubset"></a>subset : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> bool</code></pre><div class="info">
<code class="code">from u s</code> returns the set of elements of <code class="code">s</code>
   whose code points are equal or greater than <code class="code">u</code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALfrom"></a>from : <code class="type"><a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><div class="info">
<code class="code">after u s</code> returns the set of elements of <code class="code">s</code>
   whose code points are greater than <code class="code">u</code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALafter"></a>after : <code class="type"><a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><div class="info">
<code class="code">until u s</code> returns the set of elements of <code class="code">s</code>
   whose code points are equal or smaller than <code class="code">u</code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALuntil"></a>until : <code class="type"><a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><div class="info">
<code class="code">until u s</code> returns the set of elements of <code class="code">s</code>
   whose code points are smaller than <code class="code">u</code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALbefore"></a>before : <code class="type"><a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><pre><span class="keyword">val</span> <a name="VALiter"></a>iter : <code class="type">(<a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> unit) -> <a href="Main.Type.USet.html#TYPEt">t</a> -> unit</code></pre><div class="info">
<code class="code">iter_range proc s</code> feeds the intervals contained in <code class="code">s</code> to
   <code class="code">proc</code> in increasing order. The intervals given to <code class="code">proc</code>
   are always separated by the character not in <code class="code">s</code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALiter_range"></a>iter_range : <code class="type">(<a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> <a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> unit) -> <a href="Main.Type.USet.html#TYPEt">t</a> -> unit</code></pre><pre><span class="keyword">val</span> <a name="VALfold"></a>fold : <code class="type">(<a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> 'a -> 'a) -> <a href="Main.Type.USet.html#TYPEt">t</a> -> 'a -> 'a</code></pre><div class="info">
<code class="code">fold_range f s x</code> is equivalent to
   <code class="code">f u_i u_(i+1) (... (f u_3 u_4 (f u_1 u_2 x)))</code> if <code class="code">s</code> is consisted of
   the intervals <code class="code">u1</code>-<code class="code">u2</code>, <code class="code">u3</code>-<code class="code">u4</code>, ..., <code class="code">u_i</code>-<code class="code">u_(i + 1)</code>
   in increasing order. The intervals given to <code class="code">proc</code>
   are always separated by the character not in <code class="code">s</code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALfold_range"></a>fold_range : <code class="type">(<a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> <a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> 'a -> 'a) -><br>       <a href="Main.Type.USet.html#TYPEt">t</a> -> 'a -> 'a</code></pre><pre><span class="keyword">val</span> <a name="VALfor_all"></a>for_all : <code class="type">(<a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> bool) -> <a href="Main.Type.USet.html#TYPEt">t</a> -> bool</code></pre><pre><span class="keyword">val</span> <a name="VALexists"></a>exists : <code class="type">(<a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> bool) -> <a href="Main.Type.USet.html#TYPEt">t</a> -> bool</code></pre><pre><span class="keyword">val</span> <a name="VALfilter"></a>filter : <code class="type">(<a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> bool) -> <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><pre><span class="keyword">val</span> <a name="VALpartition"></a>partition : <code class="type">(<a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> -> bool) -><br>       <a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a> * <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><pre><span class="keyword">val</span> <a name="VALcardinal"></a>cardinal : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> int</code></pre><pre><span class="keyword">val</span> <a name="VALelements"></a>elements : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> list</code></pre><div class="info">
The list of the intervals contained in the set.
   The returned intervals are always separated
   by the character not in <code class="code">s</code>.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALranges"></a>ranges : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> (<a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a> * <a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a>) list</code></pre><pre><span class="keyword">val</span> <a name="VALmin_elt"></a>min_elt : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a></code></pre><pre><span class="keyword">val</span> <a name="VALmax_elt"></a>max_elt : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a></code></pre><div class="info">
Returns a element roughly in the middle of the set.
   It is not guaranteed to return the same element for
   the sets with the same elements<br>
</div>
<pre><span class="keyword">val</span> <a name="VALchoose"></a>choose : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.UChar.html#TYPEt">Main.Type.UChar.t</a></code></pre><pre><span class="keyword">val</span> <a name="VALuset_of_iset"></a>uset_of_iset : <code class="type"><a href="Main.Type.ISet.html#TYPEt">Main.Type.ISet.t</a> -> <a href="Main.Type.USet.html#TYPEt">t</a></code></pre><pre><span class="keyword">val</span> <a name="VALiset_of_uset"></a>iset_of_uset : <code class="type"><a href="Main.Type.USet.html#TYPEt">t</a> -> <a href="Main.Type.ISet.html#TYPEt">Main.Type.ISet.t</a></code></pre></body></html>