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