Mercurial > hg > octave-nkf
comparison src/oct-obj.cc @ 5846:db0598f94c0f
[project @ 2006-06-07 18:16:16 by jwe]
author | jwe |
---|---|
date | Wed, 07 Jun 2006 18:16:16 +0000 |
parents | 4c8a2e4e0717 |
children | 93c65f2a5668 |
comparison
equal
deleted
inserted
replaced
5845:8b4a99ae3b5e | 5846:db0598f94c0f |
---|---|
166 { | 166 { |
167 octave_idx_type n = length (); | 167 octave_idx_type n = length (); |
168 | 168 |
169 for (octave_idx_type i = 0; i < n; i++) | 169 for (octave_idx_type i = 0; i < n; i++) |
170 if (! elem(i).is_string ()) | 170 if (! elem(i).is_string ()) |
171 return 0; | 171 return false; |
172 | 172 |
173 return 1; | 173 return true; |
174 } | |
175 | |
176 bool | |
177 octave_value_list::has_magic_colon (void) const | |
178 { | |
179 octave_idx_type n = length (); | |
180 | |
181 for (octave_idx_type i = 0; i < n; i++) | |
182 if (elem(i).is_magic_colon ()) | |
183 return true; | |
184 | |
185 return false; | |
174 } | 186 } |
175 | 187 |
176 string_vector | 188 string_vector |
177 octave_value_list::make_argv (const std::string& fcn_name) const | 189 octave_value_list::make_argv (const std::string& fcn_name) const |
178 { | 190 { |