ref: 1e0a35297dac2f17ea7fb0a59c7051276435b6f4
dir: /misc.c/
#include <u.h> #include <libc.h> #include <bio.h> #include "pdf.h" /* 7.2.2 whitespace */ int isws(int c) { return /* \0 is missing on purpose */ c == '\t' || c == '\n' || c == '\f' || c == '\r' || c == ' '; } /* 7.2.2 delimeters */ int isdelim(int c) { return c == '(' || c == ')' || c == '<' || c == '>' || c == '[' || c == ']' || c == '{' || c == '}' || c == '/' || c == '%'; }