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

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

Function Documentation

◆ hubbub_string_match()

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

◆ hubbub_string_match_ci()

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