Report a bug
		
				If you spot a problem with this page, click here to create a Bugzilla issue.
		
			Improve this page
		
			Quickly fork, edit online, and submit a pull request for this page.
			Requires a signed-in GitHub account. This works well for small changes.
			If you'd like to make larger changes you may want to consider using
			a local clone.
		
	core.internal.string
String manipulation and comparison utilities.
License: 
Authors: 
Sean Kelly, Walter Bright
Source core/internal/string.d
- T[]unsignedToTempString(uint radix = 10, bool upperCase = false, T)(ulongvalue, return scope T[]buf)
 if (radix >= 2 && (radix <= 36) && (is(T == char) || is(T == wchar) || is(T == dchar)));
- Converts an unsigned integer value to a string of characters.Can be used when compiling with -betterC. Does not allocate memory.Parameters:T char, wchar or dchar ulong valuethe unsigned integer value to convert T[] bufthe pre-allocated buffer used to store the result radix the numeric base to use in the conversion 2 through 36 (defaults to 10) upperCase use upper case letters for radices 11 - 36 Returns:The unsigned integer value as a string of characters
- autounsignedToTempString(uint radix = 10)(ulongvalue);
- Converts an unsigned integer value to a string of characters.This implementation is a template so it can be used when compiling with -betterC.Parameters:ulong valuethe unsigned integer value to convert radix the numeric base to use in the conversion (defaults to 10) Returns:The unsigned integer value as a string of characters
- intnumDigits(uint radix = 10)(ulongvalue)
 if (radix >= 2 && (radix <= 36));
- Determine number of digits that will result from a conversion of value to a string.Parameters:ulong valuenumber to convert radix radix Returns:number of digits
Copyright © 1999-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:27:34 2025