Loading...
Searching...
No Matches
juce::CppTokeniserFunctions::StringIterator Struct Reference

Detailed Description

A class that can be passed to the CppTokeniserFunctions functions in order to parse a String.

Public Member Functions

 StringIterator (const String &s) noexcept
 StringIterator (String::CharPointerType s) noexcept
juce_wchar nextChar () noexcept
juce_wchar peekNextChar () noexcept
void skip () noexcept
void skipWhitespace () noexcept
void skipToEndOfLine () noexcept
bool isEOF () const noexcept

Public Attributes

String::CharPointerType t
int numChars = 0

Constructors and Destructors

◆ StringIterator() [1/2]

juce::CppTokeniserFunctions::StringIterator::StringIterator ( const String & s)
noexcept

◆ StringIterator() [2/2]

juce::CppTokeniserFunctions::StringIterator::StringIterator ( String::CharPointerType s)
noexcept

Member Functions

◆ nextChar()

juce_wchar juce::CppTokeniserFunctions::StringIterator::nextChar ( )
noexcept

References isEOF(), numChars, and t.

◆ peekNextChar()

juce_wchar juce::CppTokeniserFunctions::StringIterator::peekNextChar ( )
noexcept

References t.

◆ skip()

void juce::CppTokeniserFunctions::StringIterator::skip ( )
noexcept

References isEOF(), numChars, and t.

Referenced by skipToEndOfLine(), and skipWhitespace().

◆ skipWhitespace()

void juce::CppTokeniserFunctions::StringIterator::skipWhitespace ( )
noexcept

References skip(), and t.

◆ skipToEndOfLine()

void juce::CppTokeniserFunctions::StringIterator::skipToEndOfLine ( )
noexcept

References skip(), and t.

◆ isEOF()

bool juce::CppTokeniserFunctions::StringIterator::isEOF ( ) const
noexcept

References t.

Referenced by nextChar(), and skip().

Member Data Documentation

◆ t

String::CharPointerType juce::CppTokeniserFunctions::StringIterator::t

◆ numChars

int juce::CppTokeniserFunctions::StringIterator::numChars = 0

Referenced by nextChar(), and skip().

linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram