Mercurial > octave-nkf
comparison liboctave/glob-match.h @ 11570:57632dea2446
attempt better backward compatibility for Array constructors
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 19 Jan 2011 17:55:56 -0500 |
parents | fd0a3ac60b0e |
children | 72c96de7a403 |
comparison
equal
deleted
inserted
replaced
11569:7e9a111cae20 | 11570:57632dea2446 |
---|---|
72 | 72 |
73 Array<bool> match (const string_vector& str) const | 73 Array<bool> match (const string_vector& str) const |
74 { | 74 { |
75 int n = str.length (); | 75 int n = str.length (); |
76 | 76 |
77 Array<bool> retval (n, 1); | 77 Array<bool> retval (dim_vector (n, 1)); |
78 | 78 |
79 for (int i = 0; i < n; i++) | 79 for (int i = 0; i < n; i++) |
80 retval(i) = match (str[i]); | 80 retval(i) = match (str[i]); |
81 | 81 |
82 return retval; | 82 return retval; |