diff options
author | Daniel Hosseinian <dhoss@chromium.org> | 2020-01-28 19:52:32 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2020-01-28 19:52:32 +0000 |
commit | a9a704ed821f7038e56da259166dfe17d95a1cf3 (patch) | |
tree | 36dd7ed7c5b2f73c29d26dfc94dca2fdd983cb87 /fpdfsdk | |
parent | 90f68856f14fc641fa884eca72c0b52a1e723845 (diff) | |
download | pdfium-a9a704ed821f7038e56da259166dfe17d95a1cf3.tar.gz |
Rename Left() and Right() in {Byte,Wide}String{,View} classes
Rename to First() and Last().
Bug: pdfium:1406
Change-Id: I786313c4ea044c9e27e532d9d25ba6c26f9228f4
Reviewed-on: https://pdfium-review.googlesource.com/c/pdfium/+/65613
Auto-Submit: Daniel Hosseinian <dhoss@chromium.org>
Reviewed-by: Lei Zhang <thestig@chromium.org>
Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdf_ppo.cpp | 2 | ||||
-rw-r--r-- | fpdfsdk/fpdf_text.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/fpdfsdk/fpdf_ppo.cpp b/fpdfsdk/fpdf_ppo.cpp index 3cdf3d5ed..819ba05c5 100644 --- a/fpdfsdk/fpdf_ppo.cpp +++ b/fpdfsdk/fpdf_ppo.cpp @@ -228,7 +228,7 @@ bool ParsePageRangeString(const ByteString& bsPageRange, if (nDashPosition) { size_t nMid = nDashPosition.value(); uint32_t nStartPageNum = pdfium::base::checked_cast<uint32_t>( - atoi(cbMidRange.Left(nMid).c_str())); + atoi(cbMidRange.First(nMid).c_str())); if (nStartPageNum == 0) return false; diff --git a/fpdfsdk/fpdf_text.cpp b/fpdfsdk/fpdf_text.cpp index 078bc93cd..5edbf27c2 100644 --- a/fpdfsdk/fpdf_text.cpp +++ b/fpdfsdk/fpdf_text.cpp @@ -351,7 +351,7 @@ FPDF_EXPORT int FPDF_CALLCONV FPDFText_GetText(FPDF_TEXTPAGE page, WideString str = textpage->GetPageText(start_index, char_count); if (str.GetLength() > static_cast<size_t>(char_count)) - str = str.Left(static_cast<size_t>(char_count)); + str = str.First(static_cast<size_t>(char_count)); // UFT16LE_Encode doesn't handle surrogate pairs properly, so it is expected // the number of items to stay the same. |