help-octave
[Top][All Lists]
Advanced

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

Re: 'strcat' is broken (spaces are ignored) in octave-3.6.2 ?


From: Ben Abbott
Subject: Re: 'strcat' is broken (spaces are ignored) in octave-3.6.2 ?
Date: Thu, 28 Jun 2012 14:35:28 -0400

On Jun 28, 2012, at 2:14 PM, Sergei Steshenko wrote:

> ----- Original Message -----
>> From: Ben Abbott <address@hidden>
>> To: Carnë Draug <address@hidden>
>> Cc: Sergei Steshenko <address@hidden>; octave help mailing list 
>> <address@hidden>
>> Sent: Thursday, June 28, 2012 8:58 PM
>> Subject: Re: 'strcat' is broken (spaces are ignored) in octave-3.6.2 ?
>> 
>> Admittedly this is a ambiguous.
>> 
>> How about -> "Trailing white space of each input is eliminated."
>> 
>> If acceptable, I can push a changetset.
>> 
>> Ben
> 
> I don't find it acceptable, but maybe I misunderstand English, specifically, 
> "of each input".

ok. Is the following clear ?

 -- Function File:  strcat (S1, S2, ...)
     Return a string containing all the arguments concatenated
     horizontally.  If the arguments are cells strings,  `strcat'
     returns a cell string with the individual cells concatenated.  For
     numerical input, each element is converted to the corresponding
     ASCII character.  Trailing white space for each of the inputs (S1, S2, ...)
     is eliminated before the strings are concatenated.

> Regarding " " - I don't know. You guys insist the whitespaces are trailing, I 
> insist they are leading.

hmmm .... for "foo " the whitespace is trailing. For "   " the whitespace is 
leading *and* trailing.

Ben



reply via email to

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