<!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=utf-8" http-equiv="Content-Type"> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="Start" href="index.html"> <link rel="Up" href="index.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="StringCodepointSplitter" rel="Chapter" href="StringCodepointSplitter.html"><title>StringCodepointSplitter</title> </head> <body> <div class="navbar"> <a class="up" href="index.html" title="Index">Up</a> </div> <h1>Module <a href="type_StringCodepointSplitter.html">StringCodepointSplitter</a></h1> <pre><span id="MODULEStringCodepointSplitter"><span class="keyword">module</span> StringCodepointSplitter</span>: <code class="code">sig</code> <a href="StringCodepointSplitter.html">..</a> <code class="code">end</code></pre><hr width="100%"> <p>The Module needs <code class="code">Uutf</code> Module.</p> <p>It only contains <code class="code">split_string_by_unicode_codepoint</code>, which splits an OCaml string <code class="code">str</code> to a <code class="code">string list</code></p> <pre><span id="VALsplit_string_by_unicode_codepoint"><span class="keyword">val</span> split_string_by_unicode_codepoint</span> : <code class="type">string -> string list</code></pre><div class="info "> <div class="info-desc"> <p>Split an OCaml string <code class="code">str</code> to a <code class="code">string list</code></p> <p><b>Arguments</b></p> <ul> <li><code class="code">str</code> the string to be splitted. </li> </ul> <p><b>Example</b></p> <pre class="codepre"><code class="code">let example= "m̄知 who you're." (*don't know who you are*) in List.map (fun x -> print_string (x ^ ", ")) (split_string_by_unicode_codepoint example);; (*it will output : "m, ̄, 知, , w, h, o, , y, o, u, ', r, e, ., "*)</code></pre></div> </div> </body></html>