Mercurial > octave
comparison libinterp/corefcn/pr-output.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 | 755b4c622972 |
children | 336f89b6208b |
comparison
equal
deleted
inserted
replaced
23802:3f7226b07a38 | 23803:90689bdbe048 |
---|---|
2804 | 2804 |
2805 std::string row = chm.row_as_string (i); | 2805 std::string row = chm.row_as_string (i); |
2806 | 2806 |
2807 if (pr_as_read_syntax) | 2807 if (pr_as_read_syntax) |
2808 { | 2808 { |
2809 os << "\"" << undo_string_escapes (row) << "\""; | 2809 os << '"' << undo_string_escapes (row) << '"'; |
2810 | 2810 |
2811 if (i < nstr - 1) | 2811 if (i < nstr - 1) |
2812 os << "; "; | 2812 os << "; "; |
2813 } | 2813 } |
2814 else | 2814 else |