Symbol: lex
crypto/openssl/ssl/quic/qlog.c
531
static int lex_init(struct lexer *lex, const char *in, size_t in_len)
crypto/openssl/ssl/quic/qlog.c
536
lex->p = in;
crypto/openssl/ssl/quic/qlog.c
537
lex->term_end = in;
crypto/openssl/ssl/quic/qlog.c
538
lex->end = in + in_len;
crypto/openssl/ssl/quic/qlog.c
542
static int lex_do(struct lexer *lex)
crypto/openssl/ssl/quic/qlog.c
544
const char *p = lex->term_end, *end = lex->end, *term_end;
crypto/openssl/ssl/quic/qlog.c
550
lex->p = end;
crypto/openssl/ssl/quic/qlog.c
551
lex->term_end = end;
crypto/openssl/ssl/quic/qlog.c
558
lex->p = p;
crypto/openssl/ssl/quic/qlog.c
559
lex->term_end = term_end;
crypto/openssl/ssl/quic/qlog.c
563
static int lex_eot(struct lexer *lex)
crypto/openssl/ssl/quic/qlog.c
565
return lex->p == lex->term_end;
crypto/openssl/ssl/quic/qlog.c
568
static int lex_peek_char(struct lexer *lex)
crypto/openssl/ssl/quic/qlog.c
570
return lex_eot(lex) ? -1 : *lex->p;
crypto/openssl/ssl/quic/qlog.c
573
static int lex_skip_char(struct lexer *lex)
crypto/openssl/ssl/quic/qlog.c
575
if (lex_eot(lex))
crypto/openssl/ssl/quic/qlog.c
578
++lex->p;
crypto/openssl/ssl/quic/qlog.c
582
static int lex_match(struct lexer *lex, const char *s, size_t s_len)
crypto/openssl/ssl/quic/qlog.c
584
if ((size_t)(lex->term_end - lex->p) != s_len)
crypto/openssl/ssl/quic/qlog.c
587
if (memcmp(lex->p, s, s_len))
crypto/openssl/ssl/quic/qlog.c
593
static void lex_get_rest(struct lexer *lex, const char **str, size_t *str_l)
crypto/openssl/ssl/quic/qlog.c
595
*str = lex->p;
crypto/openssl/ssl/quic/qlog.c
596
*str_l = lex->term_end - lex->p;
crypto/openssl/ssl/quic/qlog.c
599
static int lex_extract_to(struct lexer *lex, char c,
crypto/openssl/ssl/quic/qlog.c
602
const char *p = lex->p, *term_end = lex->term_end, *s;
crypto/openssl/ssl/quic/qlog.c
611
lex->p = ++s;
crypto/openssl/ssl/quic/qlog.c
653
static int lex_fail(struct lexer *lex, const char *msg)
crypto/openssl/ssl/quic/qlog.c
659
lex->p = lex->term_end = lex->end;
crypto/openssl/ssl/quic/qlog.c
686
struct lexer lex = { 0 };
crypto/openssl/ssl/quic/qlog.c
694
if (!lex_init(&lex, filter, strlen(filter)))
crypto/openssl/ssl/quic/qlog.c
697
while (lex_do(&lex)) {
crypto/openssl/ssl/quic/qlog.c
698
c = lex_peek_char(&lex);
crypto/openssl/ssl/quic/qlog.c
701
lex_skip_char(&lex);
crypto/openssl/ssl/quic/qlog.c
703
c = lex_peek_char(&lex);
crypto/openssl/ssl/quic/qlog.c
705
return lex_fail(&lex, "expected alphanumeric name or '*'"
crypto/openssl/ssl/quic/qlog.c
708
return lex_fail(&lex, "expected +/- or alphanumeric name or '*'");
crypto/openssl/ssl/quic/qlog.c
713
if (lex_match(&lex, "*", 1)) {
crypto/openssl/ssl/quic/qlog.c
718
if (!lex_extract_to(&lex, ':', &cat, &cat_l))
crypto/openssl/ssl/quic/qlog.c
719
return lex_fail(&lex, "expected ':' after category name");
crypto/openssl/ssl/quic/qlog.c
721
lex_get_rest(&lex, &event, &event_l);
crypto/openssl/ssl/quic/qlog.c
723
return lex_fail(&lex, "expected alphanumeric category name or '*'");
crypto/openssl/ssl/quic/qlog.c
725
return lex_fail(&lex, "expected alphanumeric event name or '*'");
lib/libfetch/http.c
755
http_header_lex_t lex;
lib/libfetch/http.c
769
lex = http_header_lex(&cp, key);
lib/libfetch/http.c
770
if (lex != HTTPHL_WORD)
lib/libfetch/http.c
799
lex = http_header_lex(&cp, key);
lib/libfetch/http.c
800
if (lex != HTTPHL_WORD)
lib/libfetch/http.c
804
lex = http_header_lex(&cp, buf);
lib/libfetch/http.c
805
if (lex != '=')
lib/libfetch/http.c
809
lex = http_header_lex(&cp, value);
lib/libfetch/http.c
810
if (lex != HTTPHL_WORD && lex != HTTPHL_STRING)
lib/libfetch/http.c
836
lex = http_header_lex(&cp, key);
lib/libfetch/http.c
841
if (lex == HTTPHL_WORD)
lib/libfetch/http.c
844
if (lex == HTTPHL_END) {
lib/libfetch/http.c
851
if (lex != ',')
usr.bin/mail/extern.h
155
lex(char *);
usr.bin/mail/lex.c
313
com = lex(word);
usr.bin/mail/list.c
503
struct lex *lp;