diff options
| author | krangelov <kr.angelov@gmail.com> | 2019-05-28 12:26:00 +0200 |
|---|---|---|
| committer | krangelov <kr.angelov@gmail.com> | 2019-05-28 12:26:00 +0200 |
| commit | 9f0ea19a1ca7eba160746bdc91c55f7ae4c0b4fc (patch) | |
| tree | dc83a64b3e77404431bbe4573a235d513ec32ee0 /src/runtime/c/pgf/pgf.h | |
| parent | 8df212165028242458795b1f943c7975eb434e2a (diff) | |
API for scanning for cohorts in an arbitrary text
Diffstat (limited to 'src/runtime/c/pgf/pgf.h')
| -rw-r--r-- | src/runtime/c/pgf/pgf.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/runtime/c/pgf/pgf.h b/src/runtime/c/pgf/pgf.h index 6dd040b49..8fdc52b62 100644 --- a/src/runtime/c/pgf/pgf.h +++ b/src/runtime/c/pgf/pgf.h @@ -167,6 +167,22 @@ PGF_API_DECL void pgf_lookup_morpho(PgfConcr *concr, GuString sentence, PgfMorphoCallback* callback, GuExn* err); +typedef struct { + size_t pos; + GuString ptr; +} PgfCohortSpot; + +typedef struct { + PgfCohortSpot start; + PgfCohortSpot end; + GuBuf* buf; +} PgfCohortRange; + +PGF_API_DECL GuEnum* +pgf_lookup_cohorts(PgfConcr *concr, GuString sentence, + PgfMorphoCallback* callback, + GuPool* pool, GuExn* err); + typedef struct PgfFullFormEntry PgfFullFormEntry; PGF_API_DECL GuEnum* |
