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 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Class Poco::NumberParser</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<meta name="author" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="publisher" content="Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="copyright" content="Copyright (c) 2009, Applied Informatics Software Engineering GmbH and Contributors"/>
<meta name="language" content="en"/>
<meta name="date" content="2009-11-24"/>
<meta name="generator" content="PocoDoc"/>
<link rel="stylesheet" href="css/styles.css" type="text/css"/>
</head>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0">
<div class="header">
<h1 class="namespace"><a href="Poco.html" class="namespace">Poco</a></h1>
<h1 class="symbol">class NumberParser</h1>
</div>
<div class="body">
<p>
<b>Library:</b> Foundation<br />
<b>Package:</b> Core<br />
<b>Header:</b> Poco/NumberParser.h</p>
<h2>Description</h2>
<div class="description">
<p>The <a href="Poco.NumberParser.html" title="class Poco::NumberParser">NumberParser</a> class provides static methods for parsing numbers out of strings. </p>
</div>
<h2>Member Summary</h2>
<p><b>Member Functions: </b><a href="Poco.NumberParser.html#9089" title="Poco::NumberParser::parse()">parse</a>, <a href="Poco.NumberParser.html#9104" title="Poco::NumberParser::parse64()">parse64</a>, <a href="Poco.NumberParser.html#9119" title="Poco::NumberParser::parseFloat()">parseFloat</a>, <a href="Poco.NumberParser.html#9099" title="Poco::NumberParser::parseHex()">parseHex</a>, <a href="Poco.NumberParser.html#9114" title="Poco::NumberParser::parseHex64()">parseHex64</a>, <a href="Poco.NumberParser.html#9094" title="Poco::NumberParser::parseUnsigned()">parseUnsigned</a>, <a href="Poco.NumberParser.html#9109" title="Poco::NumberParser::parseUnsigned64()">parseUnsigned64</a>, <a href="Poco.NumberParser.html#9091" title="Poco::NumberParser::tryParse()">tryParse</a>, <a href="Poco.NumberParser.html#9106" title="Poco::NumberParser::tryParse64()">tryParse64</a>, <a href="Poco.NumberParser.html#9121" title="Poco::NumberParser::tryParseFloat()">tryParseFloat</a>, <a href="Poco.NumberParser.html#9101" title="Poco::NumberParser::tryParseHex()">tryParseHex</a>, <a href="Poco.NumberParser.html#9116" title="Poco::NumberParser::tryParseHex64()">tryParseHex64</a>, <a href="Poco.NumberParser.html#9096" title="Poco::NumberParser::tryParseUnsigned()">tryParseUnsigned</a>, <a href="Poco.NumberParser.html#9111" title="Poco::NumberParser::tryParseUnsigned64()">tryParseUnsigned64</a></p>
<h2>Member Functions</h2>
<h3><a name="9089">parse</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static int parse(<br /> const std::string & s<br />);</p>
<div class="description">
<p>Parses an integer value in decimal notation from the given string. Throws a <a href="Poco.SyntaxException.html" title="class Poco::SyntaxException">SyntaxException</a> if the string does not hold a number in decimal notation. </p>
</div>
<h3><a name="9104">parse64</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static <a href="Poco.html#11357" title="Poco::Int64">Int64</a> parse64(<br /> const std::string & s<br />);</p>
<div class="description">
<p>Parses a 64-bit integer value in decimal notation from the given string. Throws a <a href="Poco.SyntaxException.html" title="class Poco::SyntaxException">SyntaxException</a> if the string does not hold a number in decimal notation. </p>
</div>
<h3><a name="9119">parseFloat</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static double parseFloat(<br /> const std::string & s<br />);</p>
<div class="description">
<p>Parses a double value in decimal floating point notation from the given string. Throws a <a href="Poco.SyntaxException.html" title="class Poco::SyntaxException">SyntaxException</a> if the string does not hold a floating-point number in decimal notation. </p>
</div>
<h3><a name="9099">parseHex</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static unsigned parseHex(<br /> const std::string & s<br />);</p>
<div class="description">
<p>Parses an integer value in hexadecimal notation from the given string. Throws a <a href="Poco.SyntaxException.html" title="class Poco::SyntaxException">SyntaxException</a> if the string does not hold a number in hexadecimal notation. </p>
</div>
<h3><a name="9114">parseHex64</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static <a href="Poco.html#11358" title="Poco::UInt64">UInt64</a> parseHex64(<br /> const std::string & s<br />);</p>
<div class="description">
<p>Parses a 64 bit-integer value in hexadecimal notation from the given string. Throws a <a href="Poco.SyntaxException.html" title="class Poco::SyntaxException">SyntaxException</a> if the string does not hold a number in hexadecimal notation. </p>
</div>
<h3><a name="9094">parseUnsigned</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static unsigned parseUnsigned(<br /> const std::string & s<br />);</p>
<div class="description">
<p>Parses an unsigned integer value in decimal notation from the given string. Throws a <a href="Poco.SyntaxException.html" title="class Poco::SyntaxException">SyntaxException</a> if the string does not hold a number in decimal notation. </p>
</div>
<h3><a name="9109">parseUnsigned64</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static <a href="Poco.html#11358" title="Poco::UInt64">UInt64</a> parseUnsigned64(<br /> const std::string & s<br />);</p>
<div class="description">
<p>Parses an unsigned 64-bit integer value in decimal notation from the given string. Throws a <a href="Poco.SyntaxException.html" title="class Poco::SyntaxException">SyntaxException</a> if the string does not hold a number in decimal notation. </p>
</div>
<h3><a name="9091">tryParse</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static bool tryParse(<br /> const std::string & s,<br /> int & value<br />);</p>
<div class="description">
<p>Parses an integer value in decimal notation from the given string. Returns true if a valid integer has been found, false otherwise. </p>
</div>
<h3><a name="9106">tryParse64</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static bool tryParse64(<br /> const std::string & s,<br /> <a href="Poco.html#11357" title="Poco::Int64">Int64</a> & value<br />);</p>
<div class="description">
<p>Parses a 64-bit integer value in decimal notation from the given string. Returns true if a valid integer has been found, false otherwise. </p>
</div>
<h3><a name="9121">tryParseFloat</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static bool tryParseFloat(<br /> const std::string & s,<br /> double & value<br />);</p>
<div class="description">
<p>Parses a double value in decimal floating point notation from the given string. Returns true if a valid floating point number has been found, false otherwise. </p>
</div>
<h3><a name="9101">tryParseHex</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static bool tryParseHex(<br /> const std::string & s,<br /> unsigned & value<br />);</p>
<div class="description">
<p>Parses an unsigned integer value in hexadecimal notation from the given string. Returns true if a valid integer has been found, false otherwise. </p>
</div>
<h3><a name="9116">tryParseHex64</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static bool tryParseHex64(<br /> const std::string & s,<br /> <a href="Poco.html#11358" title="Poco::UInt64">UInt64</a> & value<br />);</p>
<div class="description">
<p>Parses an unsigned 64-bit integer value in hexadecimal notation from the given string. Returns true if a valid integer has been found, false otherwise. </p>
</div>
<h3><a name="9096">tryParseUnsigned</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static bool tryParseUnsigned(<br /> const std::string & s,<br /> unsigned & value<br />);</p>
<div class="description">
<p>Parses an unsigned integer value in decimal notation from the given string. Returns true if a valid integer has been found, false otherwise. </p>
</div>
<h3><a name="9111">tryParseUnsigned64</a> <img src="images/static.gif" alt="static" title="static" style="vertical-align:baseline;" border="0" /> </h3>
<p class="decl">static bool tryParseUnsigned64(<br /> const std::string & s,<br /> <a href="Poco.html#11358" title="Poco::UInt64">UInt64</a> & value<br />);</p>
<div class="description">
<p>Parses an unsigned 64-bit integer value in decimal notation from the given string. Returns true if a valid integer has been found, false otherwise. </p>
</div>
<p class="footer">POCO C++ Libraries 1.3.6-all<br />
Copyright © 2009, <a href="http://pocoproject.org/" target="_blank">Applied Informatics Software Engineering GmbH and Contributors</a></p>
</div>
</body>
</html>
|