Hubbub
Functions
string.c File Reference
#include <stddef.h>
#include <inttypes.h>
#include <stdbool.h>
#include <string.h>

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)
 Check that one string is exactly equal to another. More...
 
bool hubbub_string_match_ci (const uint8_t *a, size_t a_len, const uint8_t *b, size_t b_len)
 Check that one string is case-insensitively equal to another. More...
 

Function Documentation

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

Check that one string is exactly equal to another.

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 
)

Check that one string is case-insensitively equal to another.

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().