Mercurial > octave
diff libinterp/corefcn/dirfns.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 | e919cc8d9d92 |
children | ba164db1c4a4 |
line wrap: on
line diff
--- a/libinterp/corefcn/dirfns.cc Thu Jul 27 21:39:19 2017 -0700 +++ b/libinterp/corefcn/dirfns.cc Fri Jul 28 10:34:33 2017 -0700 @@ -281,7 +281,7 @@ if (nargin == 2) { if (args(1).string_value () != "s") - error ("rmdir: second argument must be \"s\" for recursive removal"); + error (R"(rmdir: second argument must be "s" for recursive removal)"); bool doit = true; @@ -644,7 +644,7 @@ { std::string s = args(0).xstring_value ("filesep: argument must be a string"); if (s != "all") - error ("filesep: argument must be \"all\""); + error (R"(filesep: argument must be "all")"); retval = octave::sys::file_ops::dir_sep_chars (); }