From b160cb40e1e8615b53954dd571efaa846588bf1b Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 12 May 2017 03:09:06 -0400 Subject: [PATCH] Add comment concerning empty value --- datatest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/datatest.cpp b/datatest.cpp index 996fdb14..c68f6266 100644 --- a/datatest.cpp +++ b/datatest.cpp @@ -690,7 +690,8 @@ bool GetField(std::istream &is, std::string &name, std::string &value) if (!line.empty() && line[0] == '\\') { continue; } // Leading, trailing and temp position. The leading iterator moves right, and trailing - // iterator moves left.The sub-string in the middle is the value for the name. + // iterator moves left. The sub-string in the middle is the value for the name. The + // value can be an empty string. One Plaintext is often empty for algorithm testing. std::string::size_type l, t, p; const std::string whitespace = " \r\n\t\v\f";