Main Page | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Class Members | File Members | Related Pages

Atoi.d File Reference

Go to the source code of this file.

Functions

struct AtoiTemplate (T)
typedef AtoiTemplate (char) Atoi

Variables

module mango convert Atoi


Detailed Description

Copyright (c) 2004 Kris Bell

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for damages of any kind arising from the use of this software.

Permission is hereby granted to anyone to use this software for any purpose, including commercial applications, and to alter it and/or redistribute it freely, subject to the following restrictions:

1. The origin of this software must not be misrepresented; you must not claim that you wrote the original software. If you use this software in a product, an acknowledgment within documentation of said product would be appreciated but is not required.

2. Altered source versions must be plainly marked as such, and must not be misrepresented as being the original software.

3. This notice may not be removed or altered from any distribution of the source.

4. Derivative works are permitted, but they must carry this notice in full and credit the original source.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Version:
Initial version, Nov 2005
Author:
Kris

Definition in file Atoi.d.


Function Documentation

struct AtoiTemplate  ) 
 

Strip leading whitespace, extract an optional +/- sign, and an optional radix prefix.

This can be used as a precursor to the conversion of digits into a number.

Returns the number of matching characters.

Convert the provided 'digits' into an integer value, without looking for a sign or radix.

Returns the value and updates 'ate' with the number of characters parsed.

Parse an integer value from the provided 'src' string. The string is also inspected for a sign and radix (defaults to 10), which can be overridden by setting 'radix' to non-zero.

Returns the value and updates 'ate' with the number of characters parsed.

Definition at line 46 of file Atoi.d.

References AtoiTemplate(), convert(), and pragma().

Referenced by AtoiTemplate(), DoubleTemplate(), IntegerTemplate(), TextReaderTemplate(), and TokenTemplate().

typedef AtoiTemplate char   ) 
 

Default instance of this template


Variable Documentation

module mango convert Atoi
 

Definition at line 40 of file Atoi.d.


Generated on Sat Dec 24 17:28:34 2005 for Mango by  doxygen 1.4.0