summaryrefslogtreecommitdiff
path: root/src/byte_class.h
blob: 0f813312d0009c877b48095ef4743fc1ba70d35b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * Copyright 2018 Vincent Sanders <vince@netsurf-browser.org>
 *
 * This file is part of libnspdf.
 *
 * Licensed under the MIT License,
 *                http://www.opensource.org/licenses/mit-license.php
 */

/**
 * \file
 * NetSurf PDF library byte classification
 */

#ifndef NSPDF__BYTE_CLASS_H_
#define NSPDF__BYTE_CLASS_H_

#define BC_RGLR 0 /* regular character */
#define BC_WSPC 1 /* character is whitespace */
#define BC_EOLM (1<<1) /* character signifies end of line */
#define BC_OCTL (1<<2) /* character is octal */
#define BC_DCML (1<<3) /* character is decimal */
#define BC_HEXL (1<<4) /* character is hexadecimal */
#define BC_DELM (1<<5) /* character is a delimiter */
#define BC_CMNT (1<<6) /* character is a comment */

const uint8_t *bclass;

#endif