Math.NET Numerics
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

77 lines
5.7 KiB

<HTML><HEAD><TITLE>Microsoft.FSharp.Compatibility.OCaml.Filename</TITLE><link rel="stylesheet" type="text/css"href="../msdn.css"></link></HEAD><BODY>
<br><dl>
<dt></dt><dd>
<h1>[<a href='../namespaces.html'>Home</a>] Module <a href='Microsoft.FSharp.Compatibility.html'>Microsoft.FSharp.Compatibility</a>.<a href='Microsoft.FSharp.Compatibility.OCaml.html'>OCaml</a>.Filename </h1><br>
</dd>
<dt></dt><dd>
<table>
<tr valign='top'><td><summary>
Common filename operations. This module is included to make it possible to cross-compile
code with other ML compilers. See also <tt>System.IO.Path</tt>
</summary>
<dt><h3>Values</h3></dt><dd>
<table width="100%%">
<tr><th width=60%>Value</th><th>Description</th></tr>
<tr valign="top"><td><pre>val basename : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
"dirname" and "basename" decompose a filename into a directory name
and a filename, i.e. "concat (dirname s) (basename s) = s"
</summary></td></tr>
<tr valign="top"><td><pre>val check_suffix : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a></pre></td><td><summary>
"check_suffix f s" returns true if filename "f" ends in suffix "s",
e.g. check_suffix "abc.fs" ".fs" returns true.
</summary></td></tr>
<tr valign="top"><td><pre>val chop_extension : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
"chop_extension f" removes the extension from the given
filename. Raises ArgumentException if no extension is present.
</summary></td></tr>
<tr valign="top"><td><pre>val chop_suffix : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
Assuming "check_suffix f s" holds, "chop_suffix f s" returns the
filename "f" with the suffix "s" removed.
</summary></td></tr>
<tr valign="top"><td><pre>val concat : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
"concat a b" returns System.IO.Path.Combine(a,b), i.e. the
two names conjoined by the appropriate directory separator character
for this architecture.
</summary></td></tr>
<tr valign="top"><td><pre>val current_dir_name : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
The name used for the current directory on this OS.
</summary></td></tr>
<tr valign="top"><td><pre>val dirname : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
"dirname" and "basename" decompose a filename into a directory name
and a filename, i.e. "concat (dirname s) (basename s) = s"
</summary></td></tr>
<tr valign="top"><td><pre>val has_extension : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a></pre></td><td><summary>
Return true if the filename has a "." extension
</summary></td></tr>
<tr valign="top"><td><pre>val is_implicit : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a></pre></td><td><summary>
Returns true if the path is relative to the current directory but does not begin with
an explicit "." or ".."
</summary></td></tr>
<tr valign="top"><td><pre>val is_relative : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__bool.html'>bool</a></pre></td><td><summary>
Is the path is relative to the current directory or absolute.
</summary></td></tr>
<tr valign="top"><td><pre>val parent_dir_name : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
"parent_dir_name" returns the name for the directory above the current directory on
this OS.
</summary></td></tr>
<tr valign="top"><td><pre>val quote : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
"quote s" is designed for use to quote a filename when using it
for a system command. It returns ("\'" ^ s ^ "\'").
</summary></td></tr>
<tr valign="top"><td><pre>val temp_file : <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a> -> <a href='../FSharp.Core/Microsoft.FSharp.Core.type__string.html'>string</a></pre></td><td><summary>
"temp_file f s" returns a hitherto unused new file name. "f" and "s"
are hints as to a suitable file name and suffix for the file.
</summary></td></tr>
</table>
</dd>
</td></tr>
<tr valign='top'><td>
<dt><h3>See Also</h3></dt><dd>
<a href="Microsoft.FSharp.Compatibility.OCaml.html">Microsoft.FSharp.Compatibility.OCaml</a> </dd>
</td></tr>
</table>
</dd>
</dl>
<br /> <br/><p><i>Documentation for assembly FSharp.PowerPack, version 1.9.6.16, generated using <a href='http://research.microsoft.com/fsharp/'>F# Programming Language</a> version 1.9.6.16</i></p>
</BODY></HTML>