summaryrefslogtreecommitdiff
path: root/Build/source/texk/gregorio/gregorio-4.0.0-beta2/src/vowel/vowel.h
diff options
context:
space:
mode:
Diffstat (limited to 'Build/source/texk/gregorio/gregorio-4.0.0-beta2/src/vowel/vowel.h')
-rw-r--r--Build/source/texk/gregorio/gregorio-4.0.0-beta2/src/vowel/vowel.h46
1 files changed, 46 insertions, 0 deletions
diff --git a/Build/source/texk/gregorio/gregorio-4.0.0-beta2/src/vowel/vowel.h b/Build/source/texk/gregorio/gregorio-4.0.0-beta2/src/vowel/vowel.h
new file mode 100644
index 00000000000..61e96bb0bb7
--- /dev/null
+++ b/Build/source/texk/gregorio/gregorio-4.0.0-beta2/src/vowel/vowel.h
@@ -0,0 +1,46 @@
+/*
+ * Copyright (C) 2015 The Gregorio Project (see CONTRIBUTORS.md)
+ *
+ * This file is part of Gregorio.
+ *
+ * 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, either version 3 of the License, or (at your option)
+ * any later version.
+ *
+ * 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, see <http://www.gnu.org/licenses/>.
+ */
+
+#ifndef _VOWEL_H
+#define _VOWEL_H
+
+#include <stdio.h>
+#include "bool.h"
+#include "unicode.h"
+
+typedef enum rulefile_parse_status {
+ RFPS_NOT_FOUND = 0,
+ RFPS_FOUND,
+ RFPS_ALIASED
+} rulefile_parse_status;
+
+int gregorio_vowel_rulefile_parse(const char *filename, char **language,
+ rulefile_parse_status *status);
+int gregorio_vowel_rulefile_lex_destroy(void);
+void gregorio_vowel_tables_init(void);
+void gregorio_vowel_tables_load(const char *filename, char **language,
+ rulefile_parse_status *status);
+void gregorio_vowel_tables_free(void);
+void gregorio_vowel_table_add(const char *vowels);
+void gregorio_prefix_table_add(const char *prefix);
+void gregorio_suffix_table_add(const char *suffix);
+void gregorio_secondary_table_add(const char *secondary);
+bool gregorio_find_vowel_group(const grewchar *subject, int *start, int *end);
+
+#endif