View source code
							
							
						
								Display the source code in std/csv.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.
							
						Function std.csv.csvNextToken
Lower level control over parsing CSV
						
				void csvNextToken(Range, Malformed ErrorLevel = Malformed
				  ref Range input,
				
				  ref Output ans,
				
				  Separator sep,
				
				  Separator quote,
				
				  bool startQuoted = false
				
				)
				
				if (isSomeChar!Separator && isInputRange!Range && is(Unqual!(ElementType!Range) == dchar) && isOutputRange!(Output, dchar));
						
					
				This function consumes the input. After each call the input will start with either a delimiter or record break (\n, \r\n, \r) which must be removed for subsequent calls.
Parameters
| Name | Description | 
|---|---|
| input | Any CSV input | 
| ans | The first field in the input | 
| sep | The character to represent a comma in the specification | 
| quote | The character to represent a quote in the specification | 
| startQuoted | Whether the input should be considered to already be in quotes | 
Throws
IncompleteCellException When a quote is found in an unquoted
       field, data continues after a closing quote, or the quoted field was
       not closed before data was empty.
Example
import stdAuthors
Jesse Phillips
License
					Copyright © 1999-2022 by the D Language Foundation | Page generated by ddox.