The SWORD Project  1.9.0.svnversion
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
corediatheke.h
Go to the documentation of this file.
1 /******************************************************************************
2  *
3  * corediatheke.h -
4  *
5  * $Id: corediatheke.h 3359 2015-03-22 23:31:43Z refdoc $
6  *
7  * Copyright 2001-2013 CrossWire Bible Society (http://www.crosswire.org)
8  * CrossWire Bible Society
9  * P. O. Box 2528
10  * Tempe, AZ 85280-2528
11  *
12  * This program is free software; you can redistribute it and/or modify it
13  * under the terms of the GNU General Public License as published by the
14  * Free Software Foundation version 2.
15  *
16  * This program is distributed in the hope that it will be useful, but
17  * WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * General Public License for more details.
20  *
21  */
22 
23 /******************************************************************************
24  * Diatheke 4.5 by Chris Little <chrislit@crosswire.org>
25  * http://www.crosswire.org/sword/diatheke
26  */
27 
28 #include <stdio.h>
29 #include <iostream>
30 
31 #include "diathekemgr.h"
32 #include <localemgr.h>
33 #include <swlocale.h>
34 
35 #define QT_BIBLE 1
36 #define QT_COMM 2
37 #define QT_LD 3
38 #define QT_SEARCH 4
39 #define QT_SYSTEM 5
40 #define QT_INFO 6
41 
42 #define OP_NONE 0
43 #define OP_STRONGS 1
44 #define OP_FOOTNOTES (1<<1)
45 #define OP_HEADINGS (1<<2)
46 #define OP_MORPH (1<<3)
47 #define OP_CANTILLATION (1<<4)
48 #define OP_HEBREWPOINTS (1<<5)
49 #define OP_GREEKACCENTS (1<<6)
50 #define OP_TRANSLITERATOR (1<<7)
51 #define OP_LEMMAS (1<<8)
52 #define OP_SCRIPREF (1<<9)
53 #define OP_ARSHAPE (1<<10)
54 #define OP_BIDI (1<<11)
55 #define OP_VARIANTS (1<<12)
56 #define OP_REDLETTERWORDS (1<<13)
57 #define OP_ARABICPOINTS (1<<14)
58 #define OP_GLOSSES (1<<15)
59 #define OP_XLIT (1<<16)
60 #define OP_ENUM (1<<17)
61 #define OP_MORPHSEG (1<<18)
62 #define OP_INTROS (1<<19)
63 
64 #define ST_NONE 0
65 #define ST_REGEX 1 // 0
66 #define ST_PHRASE 2 // -1
67 #define ST_MULTIWORD 3 // -2
68 #define ST_ENTRYATTRIB 4 // -3
69 #define ST_CLUCENE 5 // -4
70 #define ST_MULTILEMMA 6 // -5
71 
72 
73 
74 using namespace std;
75 
76 int hasalpha (char * string);
77 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);
int hasalpha(char *string)
int range
Definition: regex.c:5043
void doquery(unsigned long maxverses=-1, unsigned char outputformat=FMT_PLAIN, unsigned char outputencoding=ENC_UTF8, unsigned long optionfilters=0, unsigned char searchtype=ST_NONE, const char *range=0, const char *text=0, const char *locale=0, const char *ref=0, ostream *output=&cout, const char *script=0, signed char variants=0)