summaryrefslogtreecommitdiff
path: root/src/gmdocument.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gmdocument.c')
-rw-r--r--src/gmdocument.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gmdocument.c b/src/gmdocument.c
index 9b7bd630..5f5e8ad0 100644
--- a/src/gmdocument.c
+++ b/src/gmdocument.c
@@ -857,6 +857,14 @@ iInt2 size_GmDocument(const iGmDocument *d) {
857 return d->size; 857 return d->size;
858} 858}
859 859
860iBool hasSiteBanner_GmDocument(const iGmDocument *d) {
861 if (isEmpty_Array(&d->layout)) {
862 return iFalse;
863 }
864 const iGmRun *first = constFront_Array(&d->layout);
865 return (first->flags & siteBanner_GmRunFlag) != 0;
866}
867
860iRangecc findText_GmDocument(const iGmDocument *d, const iString *text, const char *start) { 868iRangecc findText_GmDocument(const iGmDocument *d, const iString *text, const char *start) {
861 const char * src = constBegin_String(&d->source); 869 const char * src = constBegin_String(&d->source);
862 const size_t startPos = (start ? start - src : 0); 870 const size_t startPos = (start ? start - src : 0);