quick & dirty text-to-unsigned int converter. Use only when you know what the content is, or use parse() or convert() instead.
Consume a number from the input without converting it. Argument 'fp' enables floating-point consumption. Supports hex input for numbers which are prefixed appropriately
Convert the provided 'digits' into an integer value, without checking for a sign or radix. The radix defaults to decimal (10).
Supports format specifications via an array, where format follows the notation given below:
quick & dirty unsigned to text converter, where the provided output must be large enough to house the result (10 digits in the largest case). For mainstream use, consider utilizing format() instead.
Parse an integer value from the provided 'digits' string.
Parse an integer value from the provided 'digits' string.
Parse an integer value from the provided 'digits' string.
Wrapper to make life simpler. Returns a text version of the provided value.
Wrapper to make life simpler. Returns a text version of the provided value.
Wrapper to make life simpler. Returns a text version of the provided value.
Parse an unsignedinteger value from the provided 'digits' string.
Strip leading whitespace, extract an optional +/- sign, and an optional radix prefix. If the radix value matches an optional prefix, or the radix is zero, the prefix will be consumed and assigned. Where the radix is non zero and does not match an explicit prefix, the latter will remain unconsumed. Otherwise, radix will default to 10.
Tango Dual License: 3-Clause BSD License / Academic Free License v3.0. See LICENSE_TANGO.txt for details.
Copyright (c) 2004 Kris Bell. Some parts copyright (c) 2009-2016 dunnhumby Germany GmbH. All rights reserved.
Initial release: Nov 2005
A set of functions for converting between string and integer values.
Applying the D "import alias" mechanism to this module is highly recommended, in order to limit namespace pollution: