Iterates the text in a CodeDocument.
More...
#include <juce_CodeDocument.h>
Iterates the text in a CodeDocument.
This class lets you read characters from a CodeDocument. It's designed to be used by a CodeTokeniser object.
- See also
- CodeDocument
◆ Iterator() [1/2]
juce::CodeDocument::Iterator::Iterator |
( |
const CodeDocument & |
document | ) |
|
|
noexcept |
◆ Iterator() [2/2]
juce::CodeDocument::Iterator::Iterator |
( |
const Iterator & |
| ) |
|
|
default |
◆ ~Iterator()
juce::CodeDocument::Iterator::~Iterator |
( |
| ) |
|
|
noexcept |
◆ getLine()
int juce::CodeDocument::Iterator::getLine |
( |
| ) |
const |
|
inlinenoexcept |
Returns the line number of the next character.
◆ getPosition()
int juce::CodeDocument::Iterator::getPosition |
( |
| ) |
const |
|
inlinenoexcept |
Returns the position as the number of characters from the start of the document.
◆ isEOF()
bool juce::CodeDocument::Iterator::isEOF |
( |
| ) |
const |
|
noexcept |
Returns true if the iterator has reached the end of the document.
◆ nextChar()
juce_wchar juce::CodeDocument::Iterator::nextChar |
( |
| ) |
|
|
noexcept |
Reads the next character and returns it.
- See also
- peekNextChar
◆ operator=()
◆ peekNextChar()
juce_wchar juce::CodeDocument::Iterator::peekNextChar |
( |
| ) |
const |
|
noexcept |
Reads the next character without advancing the current position.
◆ skip()
void juce::CodeDocument::Iterator::skip |
( |
| ) |
|
|
noexcept |
Advances the position by one character.
◆ skipToEndOfLine()
void juce::CodeDocument::Iterator::skipToEndOfLine |
( |
| ) |
|
|
noexcept |
Skips forward until the next character will be the first character on the next line.
◆ skipWhitespace()
void juce::CodeDocument::Iterator::skipWhitespace |
( |
| ) |
|
|
noexcept |
Skips over any whitespace characters until the next character is non-whitespace.
◆ charPointer
◆ document
◆ line
int juce::CodeDocument::Iterator::line = 0 |
|
private |
◆ position
int juce::CodeDocument::Iterator::position = 0 |
|
private |
The documentation for this class was generated from the following file: