Hubbub
Functions
string.h File Reference

Go to the source code of this file.

Functions

bool hubbub_string_match (const uint8_t *a, size_t a_len, const uint8_t *b, size_t b_len)
 Match two strings case-sensitively. More...
 
bool hubbub_string_match_ci (const uint8_t *a, size_t a_len, const uint8_t *b, size_t b_len)
 Match two strings case-insensitively. More...
 

Function Documentation

bool hubbub_string_match ( const uint8_t *  a,
size_t  a_len,
const uint8_t *  b,
size_t  b_len 
)

Match two strings case-sensitively.

Match two strings case-sensitively.

Parameters
aString to compare
a_lenLength of first string
bString to compare
b_lenLength of second string

Definition at line 23 of file string.c.

Referenced by adjust_foreign_attributes(), adjust_mathml_attributes(), adjust_svg_attributes(), adjust_svg_tagname(), handle_in_foreign_content(), and process_meta_in_head().

bool hubbub_string_match_ci ( const uint8_t *  a,
size_t  a_len,
const uint8_t *  b,
size_t  b_len 
)

Match two strings case-insensitively.

Match two strings case-insensitively.

Parameters
aString to compare
a_lenLength of first string
bString to compare
b_lenLength of second string

Definition at line 40 of file string.c.

Referenced by lookup_full_quirks(), process_input_in_table(), and starts_with().