summaryrefslogtreecommitdiff
path: root/core/fpdftext/cpdf_textpagefind.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdftext/cpdf_textpagefind.h')
-rw-r--r--core/fpdftext/cpdf_textpagefind.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/core/fpdftext/cpdf_textpagefind.h b/core/fpdftext/cpdf_textpagefind.h
index dd7a31eba9..f7419cf14f 100644
--- a/core/fpdftext/cpdf_textpagefind.h
+++ b/core/fpdftext/cpdf_textpagefind.h
@@ -35,10 +35,9 @@ class CPDF_TextPageFind {
bool IsMatchWholeWord(const WideString& csPageText,
size_t startPos,
size_t endPos);
- bool ExtractSubString(WideString& rString,
- const wchar_t* lpszFullString,
- int iSubString,
- wchar_t chSep);
+ Optional<WideString> ExtractSubString(const wchar_t* lpszFullString,
+ int iSubString,
+ wchar_t chSep);
int GetCharIndex(int index) const;
private: