summaryrefslogtreecommitdiff
path: root/utilities/diatheke/corediatheke.h
blob: 833825eda634bfe29559f444c86737394f3a9c32 (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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/******************************************************************************
 *
 *  corediatheke.h -	
 *
 * $Id: corediatheke.h 2900 2013-07-16 07:48:52Z chrislit $
 *
 * Copyright 2001-2013 CrossWire Bible Society (http://www.crosswire.org)
 *	CrossWire Bible Society
 *	P. O. Box 2528
 *	Tempe, AZ  85280-2528
 *
 * This program is free software; you can redistribute it and/or modify it
 * under the terms of the GNU General Public License as published by the
 * Free Software Foundation version 2.
 *
 * 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.
 *
 */

/******************************************************************************
 * Diatheke 4.5 by Chris Little <chrislit@crosswire.org>
 * http://www.crosswire.org/sword/diatheke
 */

#include <stdio.h>
#include <iostream>

#include "diathekemgr.h"
#include <localemgr.h>

#define QT_BIBLE 1
#define QT_COMM 2
#define QT_LD 3
#define QT_SEARCH 4
#define QT_SYSTEM 5
#define QT_INFO 6

#define OP_NONE 0
#define OP_STRONGS 1
#define OP_FOOTNOTES (1<<1)
#define OP_HEADINGS (1<<2)
#define OP_MORPH (1<<3)
#define OP_CANTILLATION (1<<4)
#define OP_HEBREWPOINTS (1<<5)
#define OP_GREEKACCENTS (1<<6)
#define OP_TRANSLITERATOR (1<<7)
#define OP_LEMMAS (1<<8)
#define OP_SCRIPREF (1<<9)
#define OP_ARSHAPE (1<<10)
#define OP_BIDI (1<<11)
#define OP_VARIANTS (1<<12)
#define OP_REDLETTERWORDS (1<<13)
#define OP_ARABICPOINTS (1<<14)
#define OP_GLOSSES (1<<15)
#define OP_XLIT (1<<16)
#define OP_ENUM (1<<17)

#define ST_NONE 0
#define ST_REGEX 1     //  0
#define ST_PHRASE 2    // -1
#define ST_MULTIWORD 3 // -2

using namespace std;

int hasalpha (char * string);
void doquery(unsigned long maxverses, unsigned char outputformat, unsigned char outputencoding, unsigned long optionfilters, unsigned char searchtype, const char *range, const char *text, const char *locale, const char *ref, ostream* output, const char* script, signed char variants);