diff libinterp/version.cc @ 23803:90689bdbe048

Use C++11 raw string literals to avoid escaping double quotes. * parser.cc, workspace-view.cc, __lin_interpn__.cc, cellfun.cc, colloc.cc, data.cc, dirfns.cc, eig.cc, file-io.cc, find.cc, gammainc.cc, gl2ps-print.cc, graphics.cc, graphics.in.h, help.cc, input.cc, load-path.cc, load-save.cc, oct-hist.cc, oct-stream.cc, pager.cc, pr-output.cc, spparms.cc, symtab.cc, toplev.cc, tril.cc, urlwrite.cc, utils.cc, variables.cc, chol.cc, qr.cc, symbfact.cc, ov-struct.cc, octave.cc, pt-id.h, version.cc, mkoctfile.in.cc: Replace regular strings containing "\"" patterns with R"(..."...)".
author Rik <rik@octave.org>
date Fri, 28 Jul 2017 10:34:33 -0700
parents 06579337237b
children 194eb4bd202b
line wrap: on
line diff
--- a/libinterp/version.cc	Thu Jul 27 21:39:19 2017 -0700
+++ b/libinterp/version.cc	Fri Jul 28 10:34:33 2017 -0700
@@ -40,7 +40,7 @@
 static std::string
 format_url (bool html, const std::string& url)
 {
-  return html ? "<a href=\"" + url + "\">" + url + "</a>" : url;
+  return html ? R"(<a href=")" + url + R"(">)" + url + "</a>" : url;
 }
 
 std::string
@@ -88,9 +88,9 @@
          + br
          + octave_warranty_statement (extra_info)
          + sep
-         + "Octave was configured for \""
+         + R"(Octave was configured for ")"
          + octave::config::canonical_host_type ()
-         + "\".";
+         + R"(".)";
 }
 
 std::string