Mercurial > jwe > octave
diff liboctave/util/lo-regexp.cc @ 30399:f3f3e3793fb5 stable
maint: style check C++ files in liboctave/ ahead of 7.1 release.
* Array.cc, Array.h, CMatrix.cc, CSparse.cc, MArray.cc, MSparse.cc,
MatrixType.cc, MatrixType.h, Range.cc, Range.h, Sparse.cc, Sparse.h,
dMatrix.cc, dSparse.cc, fCMatrix.cc, fCMatrix.h, fMatrix.cc, fMatrix.h,
idx-vector.cc, idx-vector.h, CollocWt.cc, CollocWt.h, DASPK.cc, DASRT.cc,
DASSL.cc, EIG.cc, LSODE.cc, Quad.cc, aepbalance.cc, chol.cc, eigs-base.cc,
gepbalance.cc, gsvd.cc, lo-amos-proto.h, lo-arpack-proto.h, lo-blas-proto.h,
lo-lapack-proto.h, lo-qrupdate-proto.h, lo-specfun.cc, oct-convn.h, oct-fftw.h,
oct-norm.cc, oct-spparms.cc, randmtzig.cc, sparse-chol.cc, sparse-dmsolve.cc,
sparse-lu.cc, sparse-qr.cc, sparse-qr.h, svd.cc, file-ops.cc, file-stat.cc,
lo-sysinfo.cc, oct-env.cc, f77-fcn.h, lo-cutils.h, lo-ieee.h, lo-regexp.cc,
lo-utils.cc, oct-binmap.h, oct-inttypes.h, oct-sparse.cc, oct-sparse.h,
oct-string.cc, url-transfer.cc:
Style check C++ files in liboctave/ ahead of 7.1 release.
author | Rik <rik@octave.org> |
---|---|
date | Mon, 29 Nov 2021 10:03:47 -0800 |
parents | d0184bad0c07 |
children | 796f54d4ddbf |
line wrap: on
line diff
--- a/liboctave/util/lo-regexp.cc Sun Nov 28 16:31:21 2021 -0500 +++ b/liboctave/util/lo-regexp.cc Mon Nov 29 10:03:47 2021 -0800 @@ -349,8 +349,8 @@ && (i == 1 || ovector[2*i] != ovector[2*i-2] || ovector[2*i-1] != ovector[2*i+1])) { - token_extents(pos_match,0) = double (ovector[2*i]+1); - token_extents(pos_match++,1) = double (ovector[2*i+1]); + token_extents(pos_match, 0) = double (ovector[2*i]+1); + token_extents(pos_match++, 1) = double (ovector[2*i+1]); } } @@ -498,13 +498,13 @@ { if (i < repstr.size () - 1 && repstr[i+1] == '$') { - repstr.erase (i,1); // erase backslash + repstr.erase (i, 1); // erase backslash i++; // skip over '$' continue; } if (i < repstr.size () - 1 && repstr[i+1] == '\\') { - repstr.erase (i,1); // erase 1st backslash + repstr.erase (i, 1); // erase 1st backslash continue; } }