octave-patch-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-patch-tracker] [patch #7817] strread.m: bit width and %[] and %q


From: Philip Nienhuis
Subject: [Octave-patch-tracker] [patch #7817] strread.m: bit width and %[] and %q format conversion specifiers (bug #33875)
Date: Fri, 13 Jul 2012 09:32:48 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.11) Gecko/20100701 SeaMonkey/2.0.6

URL:
  <http://savannah.gnu.org/patch/?7817>

                 Summary: strread.m: bit width and %[] and %q format
conversion specifiers (bug #33875)
                 Project: GNU Octave
            Submitted by: philipnienhuis
            Submitted on: Fri Jul 13 11:32:47 2012
                Category: None
                Priority: 5 - Normal
                  Status: None
                 Privacy: Public
             Assigned to: None
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any

    _______________________________________________________

Details:

(Re-posted from bug tracker where I accidentally put it initially)_

A while ago I've implemented bit width format conversion specifiers (%d8,
%u64, etc) to strread.m; as strread.m currently is the work horse for
textscan.m, they now also work in textscan.m
AFAICS these changes seem to work fairly reliably. Patch including some tests
attached.

I've also implemented %[] (and %[], %[^..], %[^..]) plus %q specifiers in
strread.m (so these will work in textscan, too), but these changes don't work
so very reliably. That is, they do, as long as whitespace and/or delimiters
are not contained in words matching the %q and %[]-like specifiers. In the
tests you can see that in columns matching %[] or %q specifiers the same
number of whitespace/delimiters must be present on each line, otherwise
strread.m quickly loses track.
For my own (simple) purposes it worked OK up till now, but that's no
guarantee.

As advised by Rik I won't develop these patches any further (in principle that
is as I may need further fixes myself).
I contribute them here just for in case other people want to have a try.
For convenience I've also attached patched strread.m versions in a tarball (
md5sum: 5294a30679a2f6c633f110792da611b7 ) 



    _______________________________________________________

File Attachments:


-------------------------------------------------------
Date: Fri Jul 13 11:32:47 2012  Name: strread_bitwidth.patch  Size: 9kB   By:
philipnienhuis

<http://savannah.gnu.org/patch/download.php?file_id=26192>
-------------------------------------------------------
Date: Fri Jul 13 11:32:47 2012  Name: strread_bitwidth_regexp.patch  Size:
29kB   By: philipnienhuis

<http://savannah.gnu.org/patch/download.php?file_id=26193>
-------------------------------------------------------
Date: Fri Jul 13 11:32:47 2012  Name: strread_bitwidth_regexp.tar.gz  Size:
25kB   By: philipnienhuis

<http://savannah.gnu.org/patch/download.php?file_id=26194>

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/patch/?7817>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]