mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 01:32:50 -06:00
restore the sharing of sequences. Shrinks the grammar by ~45%
This commit is contained in:
@@ -1,9 +1,19 @@
|
||||
#ifndef TEXT_H
|
||||
#define TEXT_H
|
||||
|
||||
/* Case sensitive comparison */
|
||||
PGF_INTERNAL_DECL
|
||||
int textcmp(PgfText *t1, PgfText *t2);
|
||||
|
||||
/* Performs both case-insensitive and case-sensitive comparison.
|
||||
* The first element in res contains the result from
|
||||
* the case-insensitive comparison. The second the result
|
||||
* from case-sensitive one. Usually res must be initialized
|
||||
* with {0,0}. If it is not then that can be used
|
||||
* to chain a list of comparisons.*/
|
||||
PGF_INTERNAL_DECL
|
||||
void texticmp(PgfText *t1, PgfText *t2, int res[2]);
|
||||
|
||||
PGF_INTERNAL_DECL
|
||||
bool textstarts(PgfText *t, PgfText *prefix);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user