File: Xmlm.String.html

package info (click to toggle)
xmlm 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze
  • size: 424 kB
  • ctags: 670
  • sloc: ml: 1,770; sh: 90; makefile: 19
file content (58 lines) | stat: -rw-r--r-- 3,868 bytes parent folder | download
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
<!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="next" href="Xmlm.Buffer.html">
<link rel="Up" href="Xmlm.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 modules" rel=Appendix href="index_modules.html">
<link title="Index of module types" rel=Appendix href="index_module_types.html">
<link title="Xmlm" rel="Chapter" href="Xmlm.html"><title>Xmlm.String</title>
</head>
<body>
<div class="navbar">&nbsp;<a href="Xmlm.html">Up</a>
&nbsp;<a href="Xmlm.Buffer.html">Next</a>
</div>
<center><h1>Module type <a href="type_Xmlm.String.html">Xmlm.String</a></h1></center>
<br>
<pre><span class="keyword">module type</span> String = <code class="code"><span class="keyword">sig</span></code> <a href="Xmlm.String.html">..</a> <code class="code"><span class="keyword">end</span></code></pre>Input signature for strings.<br>
<hr width="100%">
<pre><span class="keyword">type</span> <a name="TYPEt"></a><code class="type"></code>t </pre>
<div class="info">
The type for strings.<br>
</div>

<pre><span class="keyword">val</span> <a name="VALempty"></a>empty : <code class="type"><a href="Xmlm.String.html#TYPEt">t</a></code></pre><div class="info">
The empty string.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALlength"></a>length : <code class="type"><a href="Xmlm.String.html#TYPEt">t</a> -> int</code></pre><div class="info">
Returns the length of the string.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALappend"></a>append : <code class="type"><a href="Xmlm.String.html#TYPEt">t</a> -> <a href="Xmlm.String.html#TYPEt">t</a> -> <a href="Xmlm.String.html#TYPEt">t</a></code></pre><div class="info">
Concatenates two strings.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALlowercase"></a>lowercase : <code class="type"><a href="Xmlm.String.html#TYPEt">t</a> -> <a href="Xmlm.String.html#TYPEt">t</a></code></pre><div class="info">
New string with uppercase letter translated
      to lowercase (correctness is only needed for ASCII
      <a href="http://www.unicode.org/glossary/#code_point">code point</a>).<br>
</div>
<pre><span class="keyword">val</span> <a name="VALiter"></a>iter : <code class="type">(int -> unit) -> <a href="Xmlm.String.html#TYPEt">t</a> -> unit</code></pre><div class="info">
Iterates over the unicode 
      <a href="http://www.unicode.org/glossary/#code_point">code point</a>
      of the given string.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALof_string"></a>of_string : <code class="type"><a href="Xmlm.html#TYPEstd_string">Xmlm.std_string</a> -> <a href="Xmlm.String.html#TYPEt">t</a></code></pre><div class="info">
String from an OCaml string.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALto_utf_8"></a>to_utf_8 : <code class="type">('a -> <a href="Xmlm.html#TYPEstd_string">Xmlm.std_string</a> -> 'a) -> 'a -> <a href="Xmlm.String.html#TYPEt">t</a> -> 'a</code></pre><div class="info">
<code class="code">to_utf_8 f v s</code>, is <code class="code">f (... (f (f v s1) s2) ...) sn</code>. Where the
      concatenation of <code class="code">s1</code>, <code class="code">s2</code>, ... <code class="code">sn</code> is <code class="code">s</code> as an UTF-8 stream.<br>
</div>
<pre><span class="keyword">val</span> <a name="VALcompare"></a>compare : <code class="type"><a href="Xmlm.String.html#TYPEt">t</a> -> <a href="Xmlm.String.html#TYPEt">t</a> -> int</code></pre><div class="info">
String comparison. Binary comparison is sufficent.<br>
</div>
</body></html>