Herb C Reference
Loading...
Searching...
No Matches
lexer_peek_helpers.c File Reference
#include "include/lexer_peek_helpers.h"
#include "include/lexer_struct.h"
#include "include/macros.h"
#include <ctype.h>
#include <stdbool.h>

Functions

char lexer_backtrack (const lexer_T *lexer, const int offset)
 
char lexer_peek (const lexer_T *lexer, const int offset)
 
bool lexer_peek_for (const lexer_T *lexer, const int offset, const char *pattern, const bool case_insensitive)
 
bool lexer_peek_for_doctype (const lexer_T *lexer, const int offset)
 
bool lexer_peek_for_html_comment_start (const lexer_T *lexer, const int offset)
 
bool lexer_peek_for_html_comment_end (const lexer_T *lexer, const int offset)
 
bool lexer_peek_erb_close_tag (const lexer_T *lexer, const int offset)
 
bool lexer_peek_erb_dash_close_tag (const lexer_T *lexer, const int offset)
 
bool lexer_peek_erb_percent_close_tag (const lexer_T *lexer, const int offset)
 
bool lexer_peek_erb_end (const lexer_T *lexer, const int offset)
 

Function Documentation

◆ lexer_backtrack()

char lexer_backtrack ( const lexer_T lexer,
const int  offset 
)

◆ lexer_peek()

char lexer_peek ( const lexer_T lexer,
const int  offset 
)

◆ lexer_peek_for()

bool lexer_peek_for ( const lexer_T lexer,
const int  offset,
const char *  pattern,
const bool  case_insensitive 
)

◆ lexer_peek_for_doctype()

bool lexer_peek_for_doctype ( const lexer_T lexer,
const int  offset 
)

◆ lexer_peek_for_html_comment_start()

bool lexer_peek_for_html_comment_start ( const lexer_T lexer,
const int  offset 
)

◆ lexer_peek_for_html_comment_end()

bool lexer_peek_for_html_comment_end ( const lexer_T lexer,
const int  offset 
)

◆ lexer_peek_erb_close_tag()

bool lexer_peek_erb_close_tag ( const lexer_T lexer,
const int  offset 
)

◆ lexer_peek_erb_dash_close_tag()

bool lexer_peek_erb_dash_close_tag ( const lexer_T lexer,
const int  offset 
)

◆ lexer_peek_erb_percent_close_tag()

bool lexer_peek_erb_percent_close_tag ( const lexer_T lexer,
const int  offset 
)

◆ lexer_peek_erb_end()

bool lexer_peek_erb_end ( const lexer_T lexer,
const int  offset 
)