blob: c61efbb2641c5355007178096bb0480440f6e5ae (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
|
#include <string.h>
#include "macros.h"
#include "mbstring.h"
bool
u8haspfx(struct u8view sv, struct u8view pfx)
{
return sv.len >= pfx.len && memeq(sv.p, pfx.p, pfx.len);
}
|