1 /* textcodes.h
2 
3    Copyright 2009 Taco Hoekwater <taco@luatex.org>
4 
5    This file is part of LuaTeX.
6 
7    LuaTeX is free software; you can redistribute it and/or modify it under
8    the terms of the GNU General Public License as published by the Free
9    Software Foundation; either version 2 of the License, or (at your
10    option) any later version.
11 
12    LuaTeX is distributed in the hope that it will be useful, but WITHOUT
13    ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14    FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public
15    License for more details.
16 
17    You should have received a copy of the GNU General Public License along
18    with LuaTeX; if not, see <http://www.gnu.org/licenses/>. */
19 
20 
21 #ifndef TEXTCODES_H
22 #  define TEXTCODES_H
23 
24 
25 void set_lc_code(int n, halfword v, quarterword gl);
26 halfword get_lc_code(int n);
27 void set_uc_code(int n, halfword v, quarterword gl);
28 halfword get_uc_code(int n);
29 void set_sf_code(int n, halfword v, quarterword gl);
30 halfword get_sf_code(int n);
31 void set_cat_code(int h, int n, halfword v, quarterword gl);
32 halfword get_cat_code(int h, int n);
33 void unsave_cat_codes(int h, quarterword gl);
34 int valid_catcode_table(int h);
35 void initex_cat_codes(int h);
36 void unsave_text_codes(quarterword grouplevel);
37 void initialize_text_codes(void);
38 void dump_text_codes(void);
39 void undump_text_codes(void);
40 void copy_cat_codes(int from, int to);
41 void free_math_codes(void);
42 void free_text_codes(void);
43 
44 
45 #endif
46