From 5b604dd360ffc162f163962ccb2b1af109a5f93f Mon Sep 17 00:00:00 2001 From: B Stack Date: Thu, 17 Oct 2019 15:59:39 -0400 Subject: add upstream 10.17 --- zenXml/zenxml/parser.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'zenXml/zenxml/parser.h') diff --git a/zenXml/zenxml/parser.h b/zenXml/zenxml/parser.h index dbf5a8c4..f0c70b66 100644 --- a/zenXml/zenxml/parser.h +++ b/zenXml/zenxml/parser.h @@ -401,7 +401,7 @@ public: for (auto it = pos_; it != stream_.begin(); ) { --it; - if (*it == '\r' || *it == '\n') + if (isLineBreak(*it)) return pos_ - it - 1; } return pos_ - stream_.begin(); @@ -413,7 +413,7 @@ private: bool startsWith(const std::string& prefix) const { - return zen::startsWith(StringRef(pos_, stream_.end()), prefix); + return zen::startsWith(makeStringView(pos_, stream_.end()), prefix); } using TokenList = std::vector>; -- cgit