blob: 929847d5850c457949923c5e48280a9d962814fe [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>mxnet: /work/mxnet/3rdparty/dmlc-core/include/dmlc/strtonum.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">mxnet
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
initMenu('',true,false,'search.php','Search');
$(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
onmouseover="return searchBox.OnSearchSelectShow()"
onmouseout="return searchBox.OnSearchSelectHide()"
onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>
<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0"
name="MSearchResults" id="MSearchResults">
</iframe>
</div>
<div id="nav-path" class="navpath">
<ul>
<li class="navelem"><a class="el" href="dir_8cab8f464681f7cc51cee77e79a434cd.html">3rdparty</a></li><li class="navelem"><a class="el" href="dir_82e31a22178767beedddc7597fd1ecb6.html">dmlc-core</a></li><li class="navelem"><a class="el" href="dir_7dd5b88db83ff474628c03c453739a90.html">include</a></li><li class="navelem"><a class="el" href="dir_e30967e3ab51f65ad4b50dd298ccf4e7.html">dmlc</a></li> </ul>
</div>
</div><!-- top -->
<div class="header">
<div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#func-members">Functions</a> &#124;
<a href="#var-members">Variables</a> </div>
<div class="headertitle">
<div class="title">strtonum.h File Reference</div> </div>
</div><!--header-->
<div class="contents">
<p>A faster implementation of strtof and strtod.
<a href="#details">More...</a></p>
<div class="textblock"><code>#include &lt;type_traits&gt;</code><br />
<code>#include &lt;string&gt;</code><br />
<code>#include &lt;limits&gt;</code><br />
<code>#include &lt;cstdint&gt;</code><br />
<code>#include &quot;<a class="el" href="3rdparty_2dmlc-core_2include_2dmlc_2base_8h_source.html">./base.h</a>&quot;</code><br />
<code>#include &quot;./logging.h&quot;</code><br />
</div><div class="textblock"><div class="dynheader">
Include dependency graph for strtonum.h:</div>
<div class="dyncontent">
<div class="center"><img src="strtonum_8h__incl.png" border="0" usemap="#_2work_2mxnet_23rdparty_2dmlc-core_2include_2dmlc_2strtonum_8h" alt=""/></div>
<!-- MAP 0 -->
</div>
</div><div class="textblock"><div class="dynheader">
This graph shows which files directly or indirectly include this file:</div>
<div class="dyncontent">
<div class="center"><img src="strtonum_8h__dep__incl.png" border="0" usemap="#_2work_2mxnet_23rdparty_2dmlc-core_2include_2dmlc_2strtonum_8hdep" alt=""/></div>
<!-- MAP 1 -->
</div>
</div>
<p><a href="strtonum_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdmlc_1_1Str2T.html">dmlc::Str2T&lt; T &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Interface class that defines a single method <a class="el" href="classdmlc_1_1Str2T.html#aca32f0e0494f795c76ba5447671045c4" title="Convert a string into type T.">get()</a> to convert a string into type T. Define template specialization of this class to define the conversion method for a particular type. <a href="classdmlc_1_1Str2T.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdmlc_1_1Str2T_3_01int32__t_01_4.html">dmlc::Str2T&lt; int32_t &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template specialization of Str2T&lt;&gt; interface for signed 32-bit integer. <a href="classdmlc_1_1Str2T_3_01int32__t_01_4.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdmlc_1_1Str2T_3_01uint32__t_01_4.html">dmlc::Str2T&lt; uint32_t &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template specialization of Str2T&lt;&gt; interface for unsigned 32-bit integer. <a href="classdmlc_1_1Str2T_3_01uint32__t_01_4.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdmlc_1_1Str2T_3_01int64__t_01_4.html">dmlc::Str2T&lt; int64_t &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template specialization of Str2T&lt;&gt; interface for signed 64-bit integer. <a href="classdmlc_1_1Str2T_3_01int64__t_01_4.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdmlc_1_1Str2T_3_01uint64__t_01_4.html">dmlc::Str2T&lt; uint64_t &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template specialization of Str2T&lt;&gt; interface for unsigned 64-bit integer. <a href="classdmlc_1_1Str2T_3_01uint64__t_01_4.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdmlc_1_1Str2T_3_01float_01_4.html">dmlc::Str2T&lt; float &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template specialization of Str2T&lt;&gt; interface for float type. <a href="classdmlc_1_1Str2T_3_01float_01_4.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classdmlc_1_1Str2T_3_01double_01_4.html">dmlc::Str2T&lt; double &gt;</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Template specialization of Str2T&lt;&gt; interface for double type. <a href="classdmlc_1_1Str2T_3_01double_01_4.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:namespacedmlc"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html">dmlc</a></td></tr>
<tr class="memdesc:namespacedmlc"><td class="mdescLeft">&#160;</td><td class="mdescRight">namespace for dmlc <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a52dcf01c9ba22be9b08e455194fb2ab3"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a52dcf01c9ba22be9b08e455194fb2ab3">dmlc::isspace</a> (char c)</td></tr>
<tr class="memdesc:a52dcf01c9ba22be9b08e455194fb2ab3"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inline implementation of <a class="el" href="namespacedmlc.html#a52dcf01c9ba22be9b08e455194fb2ab3" title="Inline implementation of isspace(). Tests whether the given character is a whitespace letter.">isspace()</a>. Tests whether the given character is a whitespace letter. <a href="namespacedmlc.html#a52dcf01c9ba22be9b08e455194fb2ab3">More...</a><br /></td></tr>
<tr class="separator:a52dcf01c9ba22be9b08e455194fb2ab3"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a382379acc79620379a9f7ee29ad5caaf"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a382379acc79620379a9f7ee29ad5caaf">dmlc::isblank</a> (char c)</td></tr>
<tr class="memdesc:a382379acc79620379a9f7ee29ad5caaf"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inline implementation of <a class="el" href="namespacedmlc.html#a382379acc79620379a9f7ee29ad5caaf" title="Inline implementation of isblank(). Tests whether the given character is a space or tab character.">isblank()</a>. Tests whether the given character is a space or tab character. <a href="namespacedmlc.html#a382379acc79620379a9f7ee29ad5caaf">More...</a><br /></td></tr>
<tr class="separator:a382379acc79620379a9f7ee29ad5caaf"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5dab1c816301d0261e96d002ab157d3a"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a5dab1c816301d0261e96d002ab157d3a">dmlc::isdigit</a> (char c)</td></tr>
<tr class="memdesc:a5dab1c816301d0261e96d002ab157d3a"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inline implementation of <a class="el" href="namespacedmlc.html#a5dab1c816301d0261e96d002ab157d3a" title="Inline implementation of isdigit(). Tests whether the given character is a decimal digit.">isdigit()</a>. Tests whether the given character is a decimal digit. <a href="namespacedmlc.html#a5dab1c816301d0261e96d002ab157d3a">More...</a><br /></td></tr>
<tr class="separator:a5dab1c816301d0261e96d002ab157d3a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8234006cb1d67dcba5f9f856fe805c19"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a8234006cb1d67dcba5f9f856fe805c19">dmlc::isalpha</a> (char c)</td></tr>
<tr class="memdesc:a8234006cb1d67dcba5f9f856fe805c19"><td class="mdescLeft">&#160;</td><td class="mdescRight">Inline implementation of <a class="el" href="namespacedmlc.html#a8234006cb1d67dcba5f9f856fe805c19" title="Inline implementation of isalpha(). Tests whether the given character is an alphabet letter.">isalpha()</a>. Tests whether the given character is an alphabet letter. <a href="namespacedmlc.html#a8234006cb1d67dcba5f9f856fe805c19">More...</a><br /></td></tr>
<tr class="separator:a8234006cb1d67dcba5f9f856fe805c19"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aadc240ae898cb7f29bd88c5bd96bd3cb"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#aadc240ae898cb7f29bd88c5bd96bd3cb">dmlc::isdigitchars</a> (char c)</td></tr>
<tr class="memdesc:aadc240ae898cb7f29bd88c5bd96bd3cb"><td class="mdescLeft">&#160;</td><td class="mdescRight">Tests whether the given character is a valid letter in the string representation of a floating-point value, i.e. decimal digits, signs (+/-), decimal point (.), or exponent marker (e/E). <a href="namespacedmlc.html#aadc240ae898cb7f29bd88c5bd96bd3cb">More...</a><br /></td></tr>
<tr class="separator:aadc240ae898cb7f29bd88c5bd96bd3cb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade80237502ab5ae86b9c1454a09c66ee"><td class="memTemplParams" colspan="2">template&lt;typename FloatType , bool CheckRange = false&gt; </td></tr>
<tr class="memitem:ade80237502ab5ae86b9c1454a09c66ee"><td class="memTemplItemLeft" align="right" valign="top">FloatType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#ade80237502ab5ae86b9c1454a09c66ee">dmlc::ParseFloat</a> (const char *nptr, char **endptr)</td></tr>
<tr class="memdesc:ade80237502ab5ae86b9c1454a09c66ee"><td class="mdescLeft">&#160;</td><td class="mdescRight">Common implementation for <a class="el" href="namespacedmlc.html#a93c2c8f7859b02cecb9c094cddd91af9" title="A faster implementation of strtof(). See documentation of std::strtof() for more information....">dmlc::strtof()</a> and <a class="el" href="namespacedmlc.html#a345b262c3cbb6d700c22c4d69d46db6e" title="A faster implementation of strtod(). See documentation of std::strtof() for more information....">dmlc::strtod()</a> TODO: the current version does not support hex number. <a href="namespacedmlc.html#ade80237502ab5ae86b9c1454a09c66ee">More...</a><br /></td></tr>
<tr class="separator:ade80237502ab5ae86b9c1454a09c66ee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a93c2c8f7859b02cecb9c094cddd91af9"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a93c2c8f7859b02cecb9c094cddd91af9">dmlc::strtof</a> (const char *nptr, char **endptr)</td></tr>
<tr class="memdesc:a93c2c8f7859b02cecb9c094cddd91af9"><td class="mdescLeft">&#160;</td><td class="mdescRight">A faster implementation of <a class="el" href="namespacedmlc.html#a93c2c8f7859b02cecb9c094cddd91af9" title="A faster implementation of strtof(). See documentation of std::strtof() for more information....">strtof()</a>. See documentation of <a class="el" href="namespacedmlc.html#a93c2c8f7859b02cecb9c094cddd91af9" title="A faster implementation of strtof(). See documentation of std::strtof() for more information....">std::strtof()</a> for more information. Note that this function does not check for overflow. Use <a class="el" href="namespacedmlc.html#a3717fca311a75301eedca7e77e744459" title="A faster implementation of strtof(). See documentation of std::strtof() for more information....">strtof_check_range()</a> to check for overflow. TODO: the current version does not support hex number TODO: the current version does not handle long decimals: you may only have up to 19 digits after the decimal point, and you cannot have too many digits before the decimal point either. <a href="namespacedmlc.html#a93c2c8f7859b02cecb9c094cddd91af9">More...</a><br /></td></tr>
<tr class="separator:a93c2c8f7859b02cecb9c094cddd91af9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3717fca311a75301eedca7e77e744459"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a3717fca311a75301eedca7e77e744459">dmlc::strtof_check_range</a> (const char *nptr, char **endptr)</td></tr>
<tr class="memdesc:a3717fca311a75301eedca7e77e744459"><td class="mdescLeft">&#160;</td><td class="mdescRight">A faster implementation of <a class="el" href="namespacedmlc.html#a93c2c8f7859b02cecb9c094cddd91af9" title="A faster implementation of strtof(). See documentation of std::strtof() for more information....">strtof()</a>. See documentation of <a class="el" href="namespacedmlc.html#a93c2c8f7859b02cecb9c094cddd91af9" title="A faster implementation of strtof(). See documentation of std::strtof() for more information....">std::strtof()</a> for more information. This function will check for overflow. If the converted value is outside the range for the float type, errno is set to ERANGE and HUGE_VALF is returned. TODO: the current version does not support hex number TODO: the current version does not handle long decimals: you may only have up to 19 digits after the decimal point, and you cannot have too many digits before the decimal point either. <a href="namespacedmlc.html#a3717fca311a75301eedca7e77e744459">More...</a><br /></td></tr>
<tr class="separator:a3717fca311a75301eedca7e77e744459"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a345b262c3cbb6d700c22c4d69d46db6e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a345b262c3cbb6d700c22c4d69d46db6e">dmlc::strtod</a> (const char *nptr, char **endptr)</td></tr>
<tr class="memdesc:a345b262c3cbb6d700c22c4d69d46db6e"><td class="mdescLeft">&#160;</td><td class="mdescRight">A faster implementation of <a class="el" href="namespacedmlc.html#a345b262c3cbb6d700c22c4d69d46db6e" title="A faster implementation of strtod(). See documentation of std::strtof() for more information....">strtod()</a>. See documentation of <a class="el" href="namespacedmlc.html#a93c2c8f7859b02cecb9c094cddd91af9" title="A faster implementation of strtof(). See documentation of std::strtof() for more information....">std::strtof()</a> for more information. Note that this function does not check for overflow. Use <a class="el" href="namespacedmlc.html#abd212a404ead6ae94faa2b65b4af796d" title="A faster implementation of strtod(). See documentation of std::strtod() for more information....">strtod_check_range()</a> to check for overflow. TODO: the current version does not support hex number TODO: the current version does not handle long decimals: you may only have up to 19 digits after the decimal point, and you cannot have too many digits before the decimal point either. <a href="namespacedmlc.html#a345b262c3cbb6d700c22c4d69d46db6e">More...</a><br /></td></tr>
<tr class="separator:a345b262c3cbb6d700c22c4d69d46db6e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abd212a404ead6ae94faa2b65b4af796d"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#abd212a404ead6ae94faa2b65b4af796d">dmlc::strtod_check_range</a> (const char *nptr, char **endptr)</td></tr>
<tr class="memdesc:abd212a404ead6ae94faa2b65b4af796d"><td class="mdescLeft">&#160;</td><td class="mdescRight">A faster implementation of <a class="el" href="namespacedmlc.html#a345b262c3cbb6d700c22c4d69d46db6e" title="A faster implementation of strtod(). See documentation of std::strtof() for more information....">strtod()</a>. See documentation of <a class="el" href="namespacedmlc.html#a345b262c3cbb6d700c22c4d69d46db6e" title="A faster implementation of strtod(). See documentation of std::strtof() for more information....">std::strtod()</a> for more information. This function will check for overflow. If the converted value is outside the range for the double type, errno is set to ERANGE and HUGE_VAL is returned. TODO: the current version does not support hex number TODO: the current version does not handle long decimals: you may only have up to 19 digits after the decimal point, and you cannot have too many digits before the decimal point either. <a href="namespacedmlc.html#abd212a404ead6ae94faa2b65b4af796d">More...</a><br /></td></tr>
<tr class="separator:abd212a404ead6ae94faa2b65b4af796d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abe766bbcae14a7ff2720bb248cca0db9"><td class="memTemplParams" colspan="2">template&lt;typename SignedIntType &gt; </td></tr>
<tr class="memitem:abe766bbcae14a7ff2720bb248cca0db9"><td class="memTemplItemLeft" align="right" valign="top">SignedIntType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#abe766bbcae14a7ff2720bb248cca0db9">dmlc::ParseSignedInt</a> (const char *nptr, char **endptr, int base)</td></tr>
<tr class="memdesc:abe766bbcae14a7ff2720bb248cca0db9"><td class="mdescLeft">&#160;</td><td class="mdescRight">A fast string-to-integer convertor, for signed integers TODO: the current version supports only base &lt;= 10. <a href="namespacedmlc.html#abe766bbcae14a7ff2720bb248cca0db9">More...</a><br /></td></tr>
<tr class="separator:abe766bbcae14a7ff2720bb248cca0db9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae5d2f93a1b7b7683df3c674e0c3d1863"><td class="memTemplParams" colspan="2">template&lt;typename UnsignedIntType &gt; </td></tr>
<tr class="memitem:ae5d2f93a1b7b7683df3c674e0c3d1863"><td class="memTemplItemLeft" align="right" valign="top">UnsignedIntType&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#ae5d2f93a1b7b7683df3c674e0c3d1863">dmlc::ParseUnsignedInt</a> (const char *nptr, char **endptr, int base)</td></tr>
<tr class="memdesc:ae5d2f93a1b7b7683df3c674e0c3d1863"><td class="mdescLeft">&#160;</td><td class="mdescRight">A fast string-to-integer convertor, for unsigned integers TODO: the current version supports only base &lt;= 10. <a href="namespacedmlc.html#ae5d2f93a1b7b7683df3c674e0c3d1863">More...</a><br /></td></tr>
<tr class="separator:ae5d2f93a1b7b7683df3c674e0c3d1863"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac63dcf48b6a8ec204720a121f01477e9"><td class="memItemLeft" align="right" valign="top">uint64_t&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#ac63dcf48b6a8ec204720a121f01477e9">dmlc::strtoull</a> (const char *nptr, char **endptr, int base)</td></tr>
<tr class="memdesc:ac63dcf48b6a8ec204720a121f01477e9"><td class="mdescLeft">&#160;</td><td class="mdescRight">A faster implementation of <a class="el" href="namespacedmlc.html#ac63dcf48b6a8ec204720a121f01477e9" title="A faster implementation of strtoull(). See documentation of std::strtoull() for more information....">strtoull()</a>. See documentation of <a class="el" href="namespacedmlc.html#ac63dcf48b6a8ec204720a121f01477e9" title="A faster implementation of strtoull(). See documentation of std::strtoull() for more information....">std::strtoull()</a> for more information. Note that this function does not check for overflow. TODO: the current version supports only base &lt;= 10. <a href="namespacedmlc.html#ac63dcf48b6a8ec204720a121f01477e9">More...</a><br /></td></tr>
<tr class="separator:ac63dcf48b6a8ec204720a121f01477e9"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a46a57f902842152f71261ab44e887017"><td class="memItemLeft" align="right" valign="top">long&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a46a57f902842152f71261ab44e887017">dmlc::atol</a> (const char *p)</td></tr>
<tr class="memdesc:a46a57f902842152f71261ab44e887017"><td class="mdescLeft">&#160;</td><td class="mdescRight">A faster implementation of <a class="el" href="namespacedmlc.html#a46a57f902842152f71261ab44e887017" title="A faster implementation of atol(). See documentation of std::atol() for more information....">atol()</a>. See documentation of <a class="el" href="namespacedmlc.html#a46a57f902842152f71261ab44e887017" title="A faster implementation of atol(). See documentation of std::atol() for more information....">std::atol()</a> for more information. This function will use base 10. Note that this function does not check for overflow. <a href="namespacedmlc.html#a46a57f902842152f71261ab44e887017">More...</a><br /></td></tr>
<tr class="separator:a46a57f902842152f71261ab44e887017"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4c6820d1e6705361c263364b709d15a8"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a4c6820d1e6705361c263364b709d15a8">dmlc::atof</a> (const char *nptr)</td></tr>
<tr class="memdesc:a4c6820d1e6705361c263364b709d15a8"><td class="mdescLeft">&#160;</td><td class="mdescRight">A faster implementation of <a class="el" href="namespacedmlc.html#a4c6820d1e6705361c263364b709d15a8" title="A faster implementation of atof(). Unlike std::atof(), this function returns float type....">atof()</a>. Unlike <a class="el" href="namespacedmlc.html#a4c6820d1e6705361c263364b709d15a8" title="A faster implementation of atof(). Unlike std::atof(), this function returns float type....">std::atof()</a>, this function returns float type. Note that this function does not check for overflow. TODO: the current version does not support hex number TODO: the current version does not handle long decimals: you may only have up to 19 digits after the decimal point, and you cannot have too many digits before the decimal point either. <a href="namespacedmlc.html#a4c6820d1e6705361c263364b709d15a8">More...</a><br /></td></tr>
<tr class="separator:a4c6820d1e6705361c263364b709d15a8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a43a149fb880b527d393975a884255341"><td class="memItemLeft" align="right" valign="top">float&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a43a149fb880b527d393975a884255341">dmlc::stof</a> (const std::string &amp;value, size_t *pos=nullptr)</td></tr>
<tr class="memdesc:a43a149fb880b527d393975a884255341"><td class="mdescLeft">&#160;</td><td class="mdescRight">A faster implementation of <a class="el" href="namespacedmlc.html#a43a149fb880b527d393975a884255341" title="A faster implementation of stof(). See documentation of std::stof() for more information....">stof()</a>. See documentation of <a class="el" href="namespacedmlc.html#a43a149fb880b527d393975a884255341" title="A faster implementation of stof(). See documentation of std::stof() for more information....">std::stof()</a> for more information. This function will test for overflow and invalid arguments. TODO: the current version does not support hex number TODO: the current version does not handle long decimals: you may only have up to 19 digits after the decimal point, and you cannot have too many digits before the decimal point either. <a href="namespacedmlc.html#a43a149fb880b527d393975a884255341">More...</a><br /></td></tr>
<tr class="separator:a43a149fb880b527d393975a884255341"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a5f49479b0736b8709986ead800e1bfdc"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a5f49479b0736b8709986ead800e1bfdc">dmlc::stod</a> (const std::string &amp;value, size_t *pos=nullptr)</td></tr>
<tr class="memdesc:a5f49479b0736b8709986ead800e1bfdc"><td class="mdescLeft">&#160;</td><td class="mdescRight">A faster implementation of <a class="el" href="namespacedmlc.html#a5f49479b0736b8709986ead800e1bfdc" title="A faster implementation of stod(). See documentation of std::stod() for more information....">stod()</a>. See documentation of <a class="el" href="namespacedmlc.html#a5f49479b0736b8709986ead800e1bfdc" title="A faster implementation of stod(). See documentation of std::stod() for more information....">std::stod()</a> for more information. This function will test for overflow and invalid arguments. TODO: the current version does not support hex number TODO: the current version does not handle long decimals: you may only have up to 19 digits after the decimal point, and you cannot have too many digits before the decimal point either. <a href="namespacedmlc.html#a5f49479b0736b8709986ead800e1bfdc">More...</a><br /></td></tr>
<tr class="separator:a5f49479b0736b8709986ead800e1bfdc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a890c9ebefc22941afb32fd849b1b3a3f"><td class="memTemplParams" colspan="2">template&lt;typename T &gt; </td></tr>
<tr class="memitem:a890c9ebefc22941afb32fd849b1b3a3f"><td class="memTemplItemLeft" align="right" valign="top">T&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a890c9ebefc22941afb32fd849b1b3a3f">dmlc::Str2Type</a> (const char *begin, const char *end)</td></tr>
<tr class="memdesc:a890c9ebefc22941afb32fd849b1b3a3f"><td class="mdescLeft">&#160;</td><td class="mdescRight">Convenience function for converting string into type T. <a href="namespacedmlc.html#a890c9ebefc22941afb32fd849b1b3a3f">More...</a><br /></td></tr>
<tr class="separator:a890c9ebefc22941afb32fd849b1b3a3f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac1bd2f744b450d3a7a06fd4e4276f667"><td class="memTemplParams" colspan="2">template&lt;typename T1 , typename T2 &gt; </td></tr>
<tr class="memitem:ac1bd2f744b450d3a7a06fd4e4276f667"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#ac1bd2f744b450d3a7a06fd4e4276f667">dmlc::ParsePair</a> (const char *begin, const char *end, const char **endptr, T1 &amp;v1, T2 &amp;v2)</td></tr>
<tr class="memdesc:ac1bd2f744b450d3a7a06fd4e4276f667"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse colon seperated pair v1[:v2]. <a href="namespacedmlc.html#ac1bd2f744b450d3a7a06fd4e4276f667">More...</a><br /></td></tr>
<tr class="separator:ac1bd2f744b450d3a7a06fd4e4276f667"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ade27d0fd3a6c3e57a64e225a78e56ced"><td class="memTemplParams" colspan="2">template&lt;typename T1 , typename T2 , typename T3 &gt; </td></tr>
<tr class="memitem:ade27d0fd3a6c3e57a64e225a78e56ced"><td class="memTemplItemLeft" align="right" valign="top">int&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#ade27d0fd3a6c3e57a64e225a78e56ced">dmlc::ParseTriple</a> (const char *begin, const char *end, const char **endptr, T1 &amp;v1, T2 &amp;v2, T3 &amp;v3)</td></tr>
<tr class="memdesc:ade27d0fd3a6c3e57a64e225a78e56ced"><td class="mdescLeft">&#160;</td><td class="mdescRight">Parse colon seperated triple v1:v2[:v3]. <a href="namespacedmlc.html#ade27d0fd3a6c3e57a64e225a78e56ced">More...</a><br /></td></tr>
<tr class="separator:ade27d0fd3a6c3e57a64e225a78e56ced"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="var-members"></a>
Variables</h2></td></tr>
<tr class="memitem:a7e6f99de792eaca82bdf6189ba6e0d77"><td class="memItemLeft" align="right" valign="top">const int&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="namespacedmlc.html#a7e6f99de792eaca82bdf6189ba6e0d77">dmlc::kStrtofMaxDigits</a> = 19</td></tr>
<tr class="memdesc:a7e6f99de792eaca82bdf6189ba6e0d77"><td class="mdescLeft">&#160;</td><td class="mdescRight">Maximum number of decimal digits <a class="el" href="namespacedmlc.html#a93c2c8f7859b02cecb9c094cddd91af9" title="A faster implementation of strtof(). See documentation of std::strtof() for more information....">dmlc::strtof()</a> / <a class="el" href="namespacedmlc.html#a345b262c3cbb6d700c22c4d69d46db6e" title="A faster implementation of strtod(). See documentation of std::strtof() for more information....">dmlc::strtod()</a> will process. Trailing digits will be ignored. <a href="namespacedmlc.html#a7e6f99de792eaca82bdf6189ba6e0d77">More...</a><br /></td></tr>
<tr class="separator:a7e6f99de792eaca82bdf6189ba6e0d77"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>A faster implementation of strtof and strtod. </p>
<p>Copyright (c) 2015-2018 by Contributors </p>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Thu Jan 5 2023 03:47:40 for mxnet by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>