summaryrefslogtreecommitdiff
path: root/src/gmdocument.h
diff options
context:
space:
mode:
authorJaakko Keränen <jaakko.keranen@iki.fi>2021-03-27 11:20:33 +0200
committerJaakko Keränen <jaakko.keranen@iki.fi>2021-03-27 11:20:33 +0200
commite16dcb7e9d8b85f56d724692a0281811549079e4 (patch)
treebba25e250eb6cda54734a63ce7158d591ad70c7b /src/gmdocument.h
parentd75ad4213c81e588358aee4786ad13ca08c80d0c (diff)
GmDocument: Finding position in source
The returned position at a source location is now a range, pointing to the left and right edges of the contacted character.
Diffstat (limited to 'src/gmdocument.h')
-rw-r--r--src/gmdocument.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gmdocument.h b/src/gmdocument.h
index 840cf929..57c19e9a 100644
--- a/src/gmdocument.h
+++ b/src/gmdocument.h
@@ -126,7 +126,7 @@ struct Impl_GmRunRange {
126 const iGmRun *end; 126 const iGmRun *end;
127}; 127};
128 128
129const char * findLoc_GmRun (const iGmRun *, iInt2 pos); 129iRangecc findLoc_GmRun (const iGmRun *, iInt2 pos);
130 130
131iDeclareClass(GmDocument) 131iDeclareClass(GmDocument)
132iDeclareObjectConstruction(GmDocument) 132iDeclareObjectConstruction(GmDocument)
@@ -181,7 +181,7 @@ enum iGmLinkPart {
181}; 181};
182 182
183const iGmRun * findRun_GmDocument (const iGmDocument *, iInt2 pos); 183const iGmRun * findRun_GmDocument (const iGmDocument *, iInt2 pos);
184const char * findLoc_GmDocument (const iGmDocument *, iInt2 pos); 184iRangecc findLoc_GmDocument (const iGmDocument *, iInt2 pos);
185const iGmRun * findRunAtLoc_GmDocument (const iGmDocument *, const char *loc); 185const iGmRun * findRunAtLoc_GmDocument (const iGmDocument *, const char *loc);
186const iString * linkUrl_GmDocument (const iGmDocument *, iGmLinkId linkId); 186const iString * linkUrl_GmDocument (const iGmDocument *, iGmLinkId linkId);
187iRangecc linkUrlRange_GmDocument (const iGmDocument *, iGmLinkId linkId); 187iRangecc linkUrlRange_GmDocument (const iGmDocument *, iGmLinkId linkId);