23 return !strcmp(tag1.
str, tag2.
str);
34 etag->
weak = !strncmp(str,
"W/", 2);
42 if (len >= 2 && str[0] ==
'"' && str[len - 1] ==
'"')
45 return etag->
str !=
nullptr;
bool etagIsWeakEqual(const ETag &tag1, const ETag &tag2)
whether etags are weak-equal
int etagParseInit(ETag *etag, const char *str)
static bool etagStringsMatch(const ETag &tag1, const ETag &tag2)
whether etag strings match
bool etagIsStrongEqual(const ETag &tag1, const ETag &tag2)
whether etags are strong-equal
int weak
true if it is a weak validator
const char * str
quoted-string