[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: mercurial in OS 10.4.11 (was imread/imwrite)
From: |
dbateman |
Subject: |
Re: mercurial in OS 10.4.11 (was imread/imwrite) |
Date: |
Fri, 20 Jun 2008 15:06:18 -0700 (PDT) |
Jaroslav Hajek-2 wrote:
>
> Okay, so what about the following? It's the "good old way", using only
> index and substr.
> This should definitely be POSIX compatible...
>
snip
> @@ -490,7 +497,11 @@
> /BEGIN_PROPERTIES\(.*\)/ {
> gather = 1;
> idx = 0;
> - class_name = gensub (/^.*BEGIN_PROPERTIES\((.*)\)/, "\\1", "g");
> + str = $0;
> + k = index (str, "BEGIN_PROPERTIES(");
> + str = substr (str, k + 17);
> + l = index (str, ")");
> + class_name = substr (str, 1, l-1);
> next;
> }
>
Doesn't the "g" in the gensub command mean "global" so I expect you also
need a loop for the above.
D.
--
View this message in context:
http://www.nabble.com/imread-imwrite-tp18018475p18038201.html
Sent from the Octave - Maintainers mailing list archive at Nabble.com.
- imread/imwrite, Thomas L. Scofield, 2008/06/19
- Re: imread/imwrite, Julian Schnidder, 2008/06/19
- mercurial in OS 10.4.11 (was imread/imwrite), Thomas L. Scofield, 2008/06/19
- Re: mercurial in OS 10.4.11 (was imread/imwrite), David Bateman, 2008/06/20
- Re: mercurial in OS 10.4.11 (was imread/imwrite), Jaroslav Hajek, 2008/06/20
- Re: mercurial in OS 10.4.11 (was imread/imwrite), John W. Eaton, 2008/06/20
- Re: mercurial in OS 10.4.11 (was imread/imwrite), Jaroslav Hajek, 2008/06/20
- Re: mercurial in OS 10.4.11 (was imread/imwrite),
dbateman <=
- Re: mercurial in OS 10.4.11 (was imread/imwrite), Jaroslav Hajek, 2008/06/21
- Re: mercurial in OS 10.4.11 (was imread/imwrite), John W. Eaton, 2008/06/23
Re: imread/imwrite, Ben Abbott, 2008/06/20
imread/imwrite, John W. Eaton, 2008/06/20