webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
Classes | Public Types | Public Member Functions | Protected Member Functions | Static Protected Member Functions | Protected Attributes | List of all members
WebCore::VTTScanner Class Reference

#include <VTTScanner.h>

Classes

class  Run
 

Public Types

typedef const LCharPosition
 

Public Member Functions

 VTTScanner (const String &line)
 
bool isAt (Position checkPosition) const
 
bool isAtEnd () const
 
bool match (char c) const
 
bool scan (char)
 
bool scan (const LChar *characters, size_t charactersCount)
 
template<unsigned charactersCount>
bool scan (const char(&characters)[charactersCount])
 
template<bool characterPredicate>
void skipWhile ()
 
template<bool characterPredicate>
void skipUntil ()
 
template<bool characterPredicate>
Run collectWhile ()
 
template<bool characterPredicate>
Run collectUntil ()
 
bool scanRun (const Run &, const String &toMatch)
 
void skipRun (const Run &)
 
String extractString (const Run &)
 
String restOfInputAsString ()
 
unsigned scanDigits (int &number)
 
bool scanFloat (float &number, bool *isNegative=nullptr)
 

Protected Member Functions

Position position () const
 
Position end () const
 
void seekTo (Position)
 
UChar currentChar () const
 
void advance (unsigned amount=1)
 

Static Protected Member Functions

template<bool characterPredicate>
static bool LCharPredicateAdapter (LChar c)
 

Protected Attributes

union {
   const LChar *   characters8
 
   const UChar *   characters16
 
m_data
 
union {
   const LChar *   characters8
 
   const UChar *   characters16
 
m_end
 
bool m_is8Bit
 

Member Typedef Documentation

◆ Position

Constructor & Destructor Documentation

◆ VTTScanner()

WebCore::VTTScanner::VTTScanner ( const String line)
explicit

Member Function Documentation

◆ advance()

void WebCore::VTTScanner::advance ( unsigned  amount = 1)
inlineprotected

◆ collectUntil()

template<bool characterPredicate>
VTTScanner::Run WebCore::VTTScanner::collectUntil ( )
inline

◆ collectWhile()

template<bool characterPredicate>
VTTScanner::Run WebCore::VTTScanner::collectWhile ( )
inline

◆ currentChar()

UChar WebCore::VTTScanner::currentChar ( ) const
inlineprotected

◆ end()

Position WebCore::VTTScanner::end ( ) const
inlineprotected

◆ extractString()

String WebCore::VTTScanner::extractString ( const Run run)

◆ isAt()

bool WebCore::VTTScanner::isAt ( Position  checkPosition) const
inline

◆ isAtEnd()

bool WebCore::VTTScanner::isAtEnd ( ) const
inline

◆ LCharPredicateAdapter()

template<bool characterPredicate>
static bool WebCore::VTTScanner::LCharPredicateAdapter ( LChar  c)
inlinestaticprotected

◆ match()

bool WebCore::VTTScanner::match ( char  c) const
inline

◆ position()

Position WebCore::VTTScanner::position ( ) const
inlineprotected

◆ restOfInputAsString()

String WebCore::VTTScanner::restOfInputAsString ( )

◆ scan() [1/3]

bool WebCore::VTTScanner::scan ( char  c)

◆ scan() [2/3]

bool WebCore::VTTScanner::scan ( const LChar characters,
size_t  charactersCount 
)

◆ scan() [3/3]

template<unsigned charactersCount>
bool WebCore::VTTScanner::scan ( const char(&)  characters[charactersCount])
inline

◆ scanDigits()

unsigned WebCore::VTTScanner::scanDigits ( int &  number)

◆ scanFloat()

bool WebCore::VTTScanner::scanFloat ( float &  number,
bool *  isNegative = nullptr 
)

◆ scanRun()

bool WebCore::VTTScanner::scanRun ( const Run run,
const String toMatch 
)

◆ seekTo()

void WebCore::VTTScanner::seekTo ( Position  position)
inlineprotected

◆ skipRun()

void WebCore::VTTScanner::skipRun ( const Run run)

◆ skipUntil()

template<bool characterPredicate>
void WebCore::VTTScanner::skipUntil ( )
inline

◆ skipWhile()

template<bool characterPredicate>
void WebCore::VTTScanner::skipWhile ( )
inline

Member Data Documentation

◆ characters16

const UChar* WebCore::VTTScanner::characters16

◆ characters8

const LChar* WebCore::VTTScanner::characters8

◆ m_data

union { ... } WebCore::VTTScanner::m_data

◆ m_end

union { ... } WebCore::VTTScanner::m_end

◆ m_is8Bit

bool WebCore::VTTScanner::m_is8Bit
protected

The documentation for this class was generated from the following files: