diff options
author | Ryan Harrison <rharrison@chromium.org> | 2018-01-05 14:06:59 -0500 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2018-01-05 19:20:38 +0000 |
commit | be912d78daf85619539daf12e4c659d54cb6e6fb (patch) | |
tree | 9430e0392957fff5b25d7753d7f7aa31ff313d15 /core/fpdftext/cpdf_textpagefind.h | |
parent | 8eeee77cbe0a2eb5729697767a3c503fc5570005 (diff) | |
download | pdfium-be912d78daf85619539daf12e4c659d54cb6e6fb.tar.xz |
Convert ExtractSubString to return Optional<WideString>
Change-Id: I48f27026292917e6f6e6b636afd499336e41afea
Reviewed-on: https://pdfium-review.googlesource.com/22310
Reviewed-by: Henrique Nakashima <hnakashima@chromium.org>
Commit-Queue: Ryan Harrison <rharrison@chromium.org>
Diffstat (limited to 'core/fpdftext/cpdf_textpagefind.h')
-rw-r--r-- | core/fpdftext/cpdf_textpagefind.h | 7 |
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: |