summaryrefslogtreecommitdiff
path: root/engparser.h
diff options
context:
space:
mode:
authorb0ric <b0risov.alexandr@rambler.ru>2009-08-08 20:18:38 +0300
committerb0ric <b0risov.alexandr@rambler.ru>2009-08-08 20:18:38 +0300
commit343357ed1e7907cf4b488058053df280ae63c7bb (patch)
tree201915ed25612180af3745131be66ce19edf1a0b /engparser.h
parent88db5cdceabf042f5e5d5695bf984900f8396225 (diff)
Now words are shown in alphabetical order
Diffstat (limited to 'engparser.h')
-rw-r--r--engparser.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/engparser.h b/engparser.h
index f58b3cb..516193b 100644
--- a/engparser.h
+++ b/engparser.h
@@ -31,6 +31,21 @@ typedef struct {
int excl_word_after_symb;
} Parseoptions;
+/* Parsing options */
+extern int lower_first_capital;
+extern int excl_w_capital;
+extern Parseoptions hyphen;
+extern Parseoptions quote;
+
+/*
+ * Recieves: line terminated by "\n\0"
+ *
+ * Words with "-" we'll be processed as a whole word
+ * And also we suppose that each sentence starts with capital letter
+ * and other words in the middle of the sentence which starts with
+ * capital letter is name (peoples, towns, I, etc...).
+ * Single quoted sentences are not allowed. It's gramatically incorrect
+ */
int parseengphrase(char *);
int parse_eng_word(char *word, Parseoptions opt);