JUCE  v5.4.1-191-g0ab5e696f
JUCE API
Looking for a senior C++ dev?
I'm looking for work. Hire me!
juce::CppTokeniserFunctions::StringIterator Struct Reference

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

#include <juce_CPlusPlusCodeTokeniserFunctions.h>

Collaboration diagram for juce::CppTokeniserFunctions::StringIterator:

Public Member Functions

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

Public Attributes

int numChars = 0
 
String::CharPointerType t
 

Detailed Description

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

Constructor & Destructor Documentation

◆ StringIterator() [1/2]

juce::CppTokeniserFunctions::StringIterator::StringIterator ( const String s)
inlinenoexcept

◆ StringIterator() [2/2]

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

Member Function Documentation

◆ isEOF()

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

References juce::CharPointer_UTF8::isEmpty(), and t.

Referenced by nextChar(), and skip().

◆ nextChar()

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

◆ peekNextChar()

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

References t.

◆ skip()

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

References isEOF(), numChars, and t.

Referenced by skipToEndOfLine(), and skipWhitespace().

◆ skipToEndOfLine()

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

References skip(), and t.

◆ skipWhitespace()

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

Member Data Documentation

◆ numChars

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

Referenced by nextChar(), and skip().

◆ t

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

The documentation for this struct was generated from the following file: