JUCE  v5.1.1-3-g1a0b28c73
JUCE API
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 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
 
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]

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

◆ StringIterator() [2/2]

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

Member Function Documentation

◆ isEOF()

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

References CharPointer_UTF8::isEmpty(), and t.

Referenced by nextChar(), and skip().

◆ nextChar()

juce_wchar CppTokeniserFunctions::StringIterator::nextChar ( )
inlinenoexcept

◆ peekNextChar()

juce_wchar CppTokeniserFunctions::StringIterator::peekNextChar ( )
inlinenoexcept

References t.

◆ skip()

void CppTokeniserFunctions::StringIterator::skip ( )
inlinenoexcept

References isEOF(), numChars, and t.

Referenced by skipToEndOfLine(), and skipWhitespace().

◆ skipToEndOfLine()

void CppTokeniserFunctions::StringIterator::skipToEndOfLine ( )
inlinenoexcept

References skip(), and t.

◆ skipWhitespace()

void CppTokeniserFunctions::StringIterator::skipWhitespace ( )
inlinenoexcept

Member Data Documentation

◆ numChars

int CppTokeniserFunctions::StringIterator::numChars

Referenced by nextChar(), and skip().

◆ t

String::CharPointerType CppTokeniserFunctions::StringIterator::t

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