File: ProcessFile.h

package info (click to toggle)
yudit 2.5.4-2
  • links: PTS
  • area: main
  • in suites: woody
  • size: 8,528 kB
  • ctags: 8,403
  • sloc: cpp: 59,394; ansic: 2,585; perl: 2,398; makefile: 864; sh: 321
file content (53 lines) | stat: -rw-r--r-- 1,807 bytes parent folder | download
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
/** 
 *  Yudit Unicode Editor Source File
 *
 *  GNU Copyright (C) 2002  Gaspar Sinai <gsinai@yudit.org>  
 *  GNU Copyright (C) 2001  Gaspar Sinai <gsinai@yudit.org>  
 *  GNU Copyright (C) 2000  Gaspar Sinai <gsinai@yudit.org>  
 *
 *  This program is free software; you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License, version 2,
 *  dated June 1991. See file COPYYING for details.
 *
 *  This program is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with this program; if not, write to the Free Software
 *  Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 */
 
#ifndef ProcessFile_h
#define ProcessFile_h

#include "stoolkit/SBMap.h"

#define MAX_COMMENT_SIZE	2048
#define MAX_NMAPS 		256

class SBMapItemVector
{
public:
	SBMapItemVector();
	// For kmaps
	SBMapItemVector(int _size, const char** _names, int _reverse);

	~SBMapItemVector();

	int addKLine (int index, const char* line, const unsigned char* comment, int commentSize, int reverse);

	int		count;
	SBMapItem* 	maps[MAX_NMAPS];
};


SBMapItemVector* processUNI (const char* filename, SInputStream& file, int nocomment, int hilo, int keysize, int from, int to, int reverse, char* comment, char* name, int* type);

SBMapItemVector* processMYS (const char* filename, SInputStream& file, int nocomment, int reverse, char* comment, char*name, int* type);

SBMapItemVector* processKMap (const char* filename, SInputStream& file, int nocomment, int reverse, char* comment, char*name, int* type);


#endif /* ProcessFile_h */