mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-05-06 17:52:51 -06:00
complete the linearization of pre
This commit is contained in:
@@ -16,6 +16,20 @@ int textcmp(PgfText *t1, PgfText *t2)
|
||||
}
|
||||
}
|
||||
|
||||
PGF_INTERNAL
|
||||
bool textstarts(PgfText *t, PgfText *prefix)
|
||||
{
|
||||
if (t->size < prefix->size)
|
||||
return false;
|
||||
|
||||
for (size_t i = 0; i < prefix->size; i++) {
|
||||
if (t->text[i] != prefix->text[i])
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
PGF_INTERNAL
|
||||
PgfText* textdup(PgfText *t1)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user