View source code
							
							
						
								Display the source code in std/ascii.d from which this
								page was generated on github.
							
						
							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
								local clone.
							
						Module std.ascii
Functions which operate on ASCII characters.
All of the functions in std.ascii accept Unicode characters but
    effectively ignore them if they're not ASCII. All isX functions return
    false for non-ASCII characters, and all toX functions do nothing
    to non-ASCII characters.
    For functions which operate on Unicode characters, see
    std.
| Category | Functions | 
|---|---|
| Validation |         isAlpha
        isAlphaNum
        isASCII
        isControl
        isDigit
        isGraphical
        isHexDigit
        isOctalDigit
        isPrintable
        isPunctuation
        isUpper
        isWhite
 | 
| Conversions |         toLower
        toUpper
 | 
| Constants |         digits
        fullHexDigits
        hexDigits
        letters
        lowercase
        lowerHexDigits
        newline
        octalDigits
        uppercase
        whitespace
 | 
| Enums |         ControlChar
        LetterCase
 | 
References
Functions
| Name | Description | 
|---|---|
								
									isAlpha(c)
								
							 | 
							|
								
									isAlphaNum(c)
								
							 | 
							|
								
									isASCII(c)
								
							 | 
							|
								
									isControl(c)
								
							 | 
							|
								
									isDigit(c)
								
							 | 
							|
								
									isGraphical(c)
								
							 | 
							|
								
									isHexDigit(c)
								
							 | 
							|
								
									isLower(c)
								
							 | 
							|
								
									isOctalDigit(c)
								
							 | 
							|
								
									isPrintable(c)
								
							 | 
							|
								
									isPunctuation(c)
								
							 | 
							|
								
									isUpper(c)
								
							 | 
							|
								
									isWhite(c)
								
							 | 
							|
								
									toLower(c)
								
							 | 
							Converts an ASCII letter to lowercase. | 
								
									toUpper(c)
								
							 | 
							Converts an ASCII letter to uppercase. | 
Enums
| Name | Description | 
|---|---|
								
									ControlChar
								
							 | 
							All control characters in the ASCII table (source). | 
								
									LetterCase
								
							 | 
							Letter case specifier. | 
Global variables
| Name | Type | Description | 
|---|---|---|
								
									digits
								
							 | 
							
								immutable(char[])
							 | 
							0 .. 9 | 
								
									fullHexDigits
								
							 | 
							
								immutable(char[])
							 | 
							0 .. 9A .. Fa .. f | 
								
									hexDigits
								
							 | 
							
								immutable(char[])
							 | 
							0 .. 9A .. F | 
								
									letters
								
							 | 
							
								immutable(char[])
							 | 
							A .. Za .. z | 
								
									lowercase
								
							 | 
							
								immutable(char[])
							 | 
							a .. z | 
								
									lowerHexDigits
								
							 | 
							
								immutable(char[])
							 | 
							0 .. 9a .. f | 
								
									newline
								
							 | 
							
								immutable(char[])
							 | 
							Newline sequence for this system. | 
								
									octalDigits
								
							 | 
							
								immutable(char[])
							 | 
							0 .. 7 | 
								
									uppercase
								
							 | 
							
								immutable(char[])
							 | 
							A .. Z | 
								
									whitespace
								
							 | 
							
								immutable(char[])
							 | 
							ASCII whitespace | 
Authors
License
					Copyright © 1999-2024 by the D Language Foundation | Page generated by ddox.