From 4d063bb820fe934ac38b7805293cbff2919ab325 Mon Sep 17 00:00:00 2001 From: tsepez Date: Wed, 11 May 2016 16:10:08 -0700 Subject: 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 --- core/fxcrt/include/fx_string.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'core/fxcrt') 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; -- cgit v1.2.3