Sophie

Sophie

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

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="ISet.html">
<link rel="next" href="Main.html">
<link rel="Up" href="index.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>Locale</title>
</head>
<body>
<div class="navbar"><a href="ISet.html">Previous</a>
&nbsp;<a href="index.html">Up</a>
&nbsp;<a href="Main.html">Next</a>
</div>
<center><h1>Module <a href="type_Locale.html">Locale</a></h1></center>
<br>
<pre><span class="keyword">module</span> Locale: <code class="code">sig</code> <a href="Locale.html">..</a> <code class="code">end</code></pre>Camomile has a locale system similar to Java.
   A locale is a string with a form as
   "&lt;LANG&gt;_&lt;COUNTRY&gt;_&lt;MODIFIER&gt;..." where &lt;LANG&gt; is 
   a 2-letter ISO 639 language code, &lt;COUNTRY&gt; is a 2-letter ISO 3166
   country code.  Some field may not present.<br>
<hr width="100%">
<pre><span class="keyword">type</span> <a name="TYPEt"></a><code class="type"></code>t = <code class="type">string</code> </pre>
<div class="info">
Type of locales.<br>
</div>

<pre><span class="keyword">val</span> <a name="VALread"></a>read : <code class="type">string -> string -> (Pervasives.in_channel -> 'a) -> string -> 'a</code></pre><div class="info">
<code class="code">read root suffix reader locale</code>
   reads locale information using <code class="code">reader</code>.  
   Locale data is supposed to reside in <code class="code">root</code> directory with 
   the name <code class="code">locale</code>.<code class="code">suffix</code>.
   <code class="code">reader</code> takes <code class="code">in_channel</code> as an argument and read data from in_channel.
   If data is not found, then <code class="code">reader</code> should raise Not_found.
   If the file is not found or <code class="code">reader</code> raises Not_found, then 
   more generic locales are tried.
   For example, if fr_CA.<code class="code">suffix</code> is not found, then <code class="code">read</code> tries fr.<code class="code">suffix</code>.
   If fr.<code class="code">suffix</code> is also not found, then the file <code class="code">root</code>.<code class="code">suffix</code> is tried.
   Still the data is not found, then <code class="code">Not_found</code> is raised.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALcontain"></a>contain : <code class="type">string -> string -> bool</code></pre><div class="info">
<code class="code">contain loc1 loc2</code> :
   If <code class="code">loc1</code> is contained in <code class="code">loc2</code> then true otherwise false.
   For example, "fr" is contained in "fr_CA" while "en_CA" 
   does not contain "fr"<br>
</div>
</body></html>