summaryrefslogtreecommitdiff
path: root/core/fxcrt/include
diff options
context:
space:
mode:
authortsepez <tsepez@chromium.org>2016-05-11 16:10:08 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-11 16:10:08 -0700
commit4d063bb820fe934ac38b7805293cbff2919ab325 (patch)
tree9791b23ed4f1290612222e811fe37c85861c3acb /core/fxcrt/include
parentcac1571474399a6b0271dde998970544543c921f (diff)
downloadpdfium-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')
-rw-r--r--core/fxcrt/include/fx_string.h3
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;