diff options
author | tsepez <tsepez@chromium.org> | 2016-05-11 16:10:08 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-11 16:10:08 -0700 |
commit | 4d063bb820fe934ac38b7805293cbff2919ab325 (patch) | |
tree | 9791b23ed4f1290612222e811fe37c85861c3acb /core/fxcrt/include/fx_string.h | |
parent | cac1571474399a6b0271dde998970544543c921f (diff) | |
download | pdfium-4d063bb820fe934ac38b7805293cbff2919ab325.tar.xz |
Use bytestringC rather than raw ptr/len pairs in syntax parser
In particular, we seek to make more use of the .Mid()
(substr) method to make these.
Precursor to removing c_str() calls.
BUG=pdfium:493
Review-Url: https://codereview.chromium.org/1966293002
Diffstat (limited to 'core/fxcrt/include/fx_string.h')
-rw-r--r-- | core/fxcrt/include/fx_string.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/fxcrt/include/fx_string.h b/core/fxcrt/include/fx_string.h index 10a70d9334..66a8039a8d 100644 --- a/core/fxcrt/include/fx_string.h +++ b/core/fxcrt/include/fx_string.h @@ -19,7 +19,8 @@ class CFX_ByteString; class CFX_WideString; // An immutable string with caller-provided storage which must outlive the -// string itself. +// string itself. These are not necessarily nul-terminated, so that substring +// extraction (via the Mid() method) is copy-free. class CFX_ByteStringC { public: typedef FX_CHAR value_type; |