beta-0.89.2
[luatex.git] / source / texk / web2c / luatexdir / tex / textcodes.h
blob759d9ee740ed979748f31c61b18a8a55e5410db4
1 /* textcodes.h
3 Copyright 2009 Taco Hoekwater <taco@luatex.org>
5 This file is part of LuaTeX.
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.
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.
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/>.
22 #ifndef TEXTCODES_H
23 # define TEXTCODES_H
25 void set_cat_code(int h, int n, halfword v, quarterword gl);
26 halfword get_cat_code(int h, int n);
27 int valid_catcode_table(int h);
28 void unsave_cat_codes(int h, quarterword gl);
29 void copy_cat_codes(int from, int to);
30 void initex_cat_codes(int h);
32 void set_lc_code(int n, halfword v, quarterword gl);
33 halfword get_lc_code(int n);
35 void set_uc_code(int n, halfword v, quarterword gl);
36 halfword get_uc_code(int n);
38 void set_sf_code(int n, halfword v, quarterword gl);
39 halfword get_sf_code(int n);
41 void set_hj_code(int l, int n, halfword v, quarterword gl);
42 halfword get_hj_code(int l, int n);
43 void hj_codes_from_lc_codes(int h);
45 void initialize_text_codes(void);
46 void unsave_text_codes(quarterword grouplevel);
48 void dump_text_codes(void);
49 void undump_text_codes(void);
51 void free_math_codes(void);
52 void free_text_codes(void);
54 #endif