-
Notifications
You must be signed in to change notification settings - Fork 0
/
Std.html
31 lines (31 loc) · 6.29 KB
/
Std.html
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
<!DOCTYPE html>
<html lang="en"><!-- use theme color or fallback -->
<!--use textcolor from settings, otherwise create a contrasting color to theme color-->
<head><meta charset="utf-8"/><link href="./bootstrap/css/bootstrap.min.css" rel="stylesheet"/><link href="./bootstrap/css/bootstrap-responsive.min.css" rel="stylesheet"/><link href="./bootstrap/css/bootstrap-select.min.css" rel="stylesheet"/><link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700,700italic,400italic" rel="stylesheet" type="text/css"/><link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:200,600,600italic,400" rel="stylesheet" type="text/css"/><link href="https://netdna.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.css" rel="stylesheet" type="text/css"/><script src="./jquery-1.9.1.min.js"></script><script src="./bootstrap/js/bootstrap.min.js"></script><script src="./bootstrap/js/bootstrap-select.min.js"></script><link href="./styles.css" rel="stylesheet"/><link href="./extra-styles.css" rel="stylesheet"/><link href="./haxe-nav.css" rel="stylesheet"/><script>var dox = {rootPath: "./",platforms: ["api"]};</script><script src="./nav.js"></script><script src="./index.js"></script><link rel="icon" href="./favicon.ico" type="image/x-icon"/><title>Std</title><meta name="description" content="The Std class provides standard methods for manipulating basic types."/></head><body><style>
.navbar .brand {
display: inline-block;
float: none;
text-shadow: 0 0 0 transparent;
</style><nav class="nav"><div class="navbar"><div class="navbar-inner" style="background:#FAFAFA; border-bottom:1px solid rgba(0,0,0,.09)"><div class="container"><a class="brand" style="color:#000000" href="./">API Documentation</a></div></div></div></nav><div class="container main-content"><div class="row-fluid"><div class="span3"><div class="well sidebar-nav"><form class="form-search" id="searchForm"><div class="input-prepend input-block-level"><span class="add-on"><i class="icon-search"></i></span><input id="search" type="text" placeholder="Filter (Ctrl+P)" autocomplete="off"/></div></form></div><div class="well sidebar-nav" id="explorer"><div id="nav"></div></div></div><div class="span9"><div class="page-header"><h1><small>class</small> Std</h1><h4><small><a href="./">no package</a></small></h4> <span class="label label-meta label-meta-keep" title="Causes a field or type to be kept by DCE.">@:keep</span><span class="label label-meta label-meta-directlyUsed" title="Marks types that are directly referenced by non-extern code.">@:directlyUsed</span><span class="label label-meta label-meta-keepInit" title="Causes a class to be kept by DCE even if all its field are removed.">@:keepInit</span><span class="label label-meta label-meta-coreApi" title="Identifies this class as a core API class (forces API check).">@:coreApi</span></div><div class="body"><div class="doc doc-main"><p>The Std class provides standard methods for manipulating basic types.</p></div><h3 class="section">Static methods</h3><div class="fields"><div class="field "><a name="parseInt"></a><h3 class="anchor"><code><span class="label label-meta label-meta-has_untyped" title="Used by the typer to mark fields that have untyped expressions.">@:has_untyped</span><span class="label label-static">static</span><a href="#parseInt"><span class="identifier">parseInt</span></a>(<span style="white-space:nowrap">x:<a class="type" title="String - The basic String class." href="./String.html">String</a></span>):<a class="type" title="Null - Null&lt;T&gt; is a wrapper that can be used to make the basic types Int, Float and Bool nullable on static targets." href="./Null.html">Null</a><<a class="type" title="Int - The standard Int type." href="./Int.html">Int</a>></code></h3><div class="doc"><p>Converts a <code><a href="./String.html">String</a></code> to an <code><a href="./Int.html">Int</a></code>.</p>
<p>Leading whitespaces are ignored.</p>
<p>If <code>x</code> starts with 0x or 0X, hexadecimal notation is recognized where the following digits may
contain 0-9 and A-F.</p>
<p>Otherwise <code>x</code> is read as decimal number with 0-9 being allowed characters. <code>x</code> may also start with
a - to denote a negative value.</p>
<p>In decimal mode, parsing continues until an invalid character is detected, in which case the
result up to that point is returned. For hexadecimal notation, the effect of invalid characters
is unspecified.</p>
<p>Leading 0s that are not part of the 0x/0X hexadecimal notation are ignored, which means octal
notation is not supported.</p>
<p>If <code>x</code> is null, the result is unspecified.
If <code>x</code> cannot be parsed as integer, the result is <code>null</code>.</p></div></div><div class="field "><a name="string"></a><h3 class="anchor"><code><span class="label label-static">static</span><a href="#string"><span class="identifier">string</span></a>(<span style="white-space:nowrap">s:<a class="type" title="Dynamic - Dynamic is a special type which is compatible with all other types." href="./Dynamic.html">Dynamic</a></span>):<a class="type" title="String - The basic String class." href="./String.html">String</a></code></h3><div class="doc"><p>Converts any value to a String.</p>
<p>If <code>s</code> is of <code><a href="./String.html">String</a></code>, <code><a href="./Int.html">Int</a></code>, <code><a href="./Float.html">Float</a></code> or <code><a href="./Bool.html">Bool</a></code>, its value is returned.</p>
<p>If <code>s</code> is an instance of a class and that class or one of its parent classes has
a <code>toString</code> method, that method is called. If no such method is present, the result
is unspecified.</p>
<p>If <code>s</code> is an enum constructor without argument, the constructor's name is returned. If
arguments exists, the constructor's name followed by the String representations of
the arguments is returned.</p>
<p>If <code>s</code> is a structure, the field names along with their values are returned. The field order
and the operator separating field names and values are unspecified.</p>
<p>If s is null, "null" is returned.</p></div></div></div></div></div></div></div><footer class="section site-footer" style="background:#FAFAFA"><div class="container"><div class="copyright"><p style="color:#000000">© 2020 </p></div></div></footer><script src=".//highlighter.js"></script><link href="./highlighter.css" rel="stylesheet"/></body></html>