|
From: | Paul Kienzle |
Subject: | Re: C++ version of regexprep.cc |
Date: | Tue, 2 May 2006 11:16:27 -0400 |
On May 2, 2006, at 7:25 AM, David Bateman wrote:
Hey, I'm on holidays at the moment, and so have a little time. What about the attached implementation of mat2cell? With this you should be able to repalce the above code withtag = cell(number_of_tags,4); tag{:,1} = mat2cell (xml, 1, tag_end - tag_start); John, do you want mat2cell committed as well?
...
#include <octave/config.h> #include <octave/oct.h> #include <octave/Cell.h> #include <octave/ov-str-mat.h> #include <octave/ov-colon.h>
Note that it uses <octave/...> includes. You will need to change that to be consistent with the other functions in DLD-FUNCTIONS.
Note that it uses <octave/...> includes. You will need to change that to be consistent with the other functions in DLD-FUNCTIONS.
Or would this be a true builtin and and live in ov-cell? - Paul
[Prev in Thread] | Current Thread | [Next in Thread] |