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

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

[Octave-bug-tracker] [bug #50855] new Matlab string array syntax


From: Guillaume
Subject: [Octave-bug-tracker] [bug #50855] new Matlab string array syntax
Date: Fri, 11 Jun 2021 05:13:18 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Firefox/68.0

Follow-up Comment #8, bug #50855 (project octave):

@Markus: thanks for this. Could your patch be pushed in Octave? I guess
"unicode_idx" could be renamed "__unicode_idx__" too.

Very low hanging fruit but I attach possible implementations of
convertStringsToChars, convertContainedStringsToChars, convertCharsToStrings
and isStringScalar. They, of course, only make sense when the string class
will be implemented (esp. convertCharsToStrings) but, like isstring, they can
already be useful for compatibility with Matlab.
There is one issue with curly brackets in the help text (example section) but
I am not sure how to fix it. Octave's documentation currently already refers
to 'strings' when meaning char arrays or row char vectors (see e.g. strfind)
-- I tried to be more explicit for the help text of these functions but it
might still require perfecting.

(file #51543, file #51544, file #51545, file #51546)
    _______________________________________________________

Additional Item Attachment:

File name: convertStringsToChars.m        Size:3 KB
    <https://file.savannah.gnu.org/file/convertStringsToChars.m?file_id=51543>

File name: convertContainedStringsToChars.m Size:4 KB
   
<https://file.savannah.gnu.org/file/convertContainedStringsToChars.m?file_id=51544>

File name: convertCharsToStrings.m        Size:3 KB
    <https://file.savannah.gnu.org/file/convertCharsToStrings.m?file_id=51545>

File name: isStringScalar.m               Size:1 KB
    <https://file.savannah.gnu.org/file/isStringScalar.m?file_id=51546>



    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?50855>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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