~ubuntu-branches/ubuntu/wily/octave/wily-proposed

« back to all changes in this revision

Viewing changes to doc/interpreter/strings.texi

  • Committer: Package Import Robot
  • Author(s): Sébastien Villemot
  • Date: 2014-03-10 17:32:29 UTC
  • mfrom: (1.2.6)
  • Revision ID: package-import@ubuntu.com-20140310173229-000oj77i9m6tjpvd
Tags: 3.8.1-1
* Imported Upstream version 3.8.1
  + libgui/src/main-window.cc: Fix problems with gui startup and focus issues
    (Closes: #738672)
  + scripts/pkg/private/fix_depends.m: Fix installing packages where
    dependency name contains '-' (Closes: #740984)
* debian/copyright: reflect upstream changes.
* octave.postinst: remove workaround for #681064 (package dir re-creation).
  (Closes: #681461)
* Remove patches applied upstream:
  + doc-compressed-info.diff
  + kfreebsd_tcgetattr.diff
  + octave-cli-manpage.diff
  + save-uint8-in-text-format.diff
* mkoctfile is now an executable binary instead of a shell script.
  + mkoctfile-mpi.diff: adapt for new format of mkoctfile.
  + d/control: add shlibs:Depends to liboctave-dev.
* Fix statement about the GUI in NEWS.Debian.
* debian/control: don't mention the FAQ in descriptions, it has been removed.
* Adapt to the fact that JIT is now disabled by default in ./configure script.
* Disable JIT on hurd-i386, LLVM not available there.

Show diffs side-by-side

added added

removed removed

Lines of Context:
226
226
@deftypefnx {Built-in Function} {@var{old_val} =} string_fill_char (@var{new_val})
227
227
@deftypefnx {Built-in Function} {} string_fill_char (@var{new_val}, "local")
228
228
Query or set the internal variable used to pad all rows of a character
229
 
matrix to the same length.  It must be a single character.  The default
 
229
matrix to the same length; It must be a single character.  The default
230
230
value is @qcode{" "} (a single space).  For example:
231
231
 
232
232
@example
1065
1065
@anchor{XREFstrjoin}
1066
1066
@deftypefn  {Function File} {@var{str} =} strjoin (@var{cstr})
1067
1067
@deftypefnx {Function File} {@var{str} =} strjoin (@var{cstr}, @var{delimiter})
1068
 
Join the elements of the cell-string array, @var{cstr}, into a single
 
1068
Join the elements of the cell string array, @var{cstr}, into a single
1069
1069
string.
1070
1070
 
1071
1071
If no @var{delimiter} is specified, the elements of @var{cstr}
1072
1072
separated by a space.
1073
1073
 
1074
 
If @var{delimiter} is specified as a string, the cell-string array is
 
1074
If @var{delimiter} is specified as a string, the cell string array is
1075
1075
joined using the string.  Escape sequences are supported.
1076
1076
 
1077
 
If @var{delimiter} is a cell-string array whose length is one less
 
1077
If @var{delimiter} is a cell string array whose length is one less
1078
1078
than @var{cstr}, then the elements of @var{cstr} are joined by
1079
 
interleaving the cell-string elements of @var{delimiter}.  Escape
 
1079
interleaving the cell string elements of @var{delimiter}.  Escape
1080
1080
sequences are not supported.
1081
1081
 
1082
1082
@example
1158
1158
@deftypefnx {Function File} {[@var{cstr}] =} strsplit (@dots{}, @var{name}, @var{value})
1159
1159
@deftypefnx {Function File} {[@var{cstr}, @var{matches}] =} strsplit (@dots{})
1160
1160
Split the string @var{s} using the delimiters specified by @var{del}
1161
 
and return a cell-string array of sub-strings.  If a delimiter is not
 
1161
and return a cell string array of substrings.  If a delimiter is not
1162
1162
specified the string, @var{s}, is split at whitespace.  The delimiter,
1163
 
@var{del} may be a string, a scalar cell-string, or cell-string array.
1164
 
@var{del} must be a cell-string array.  By default, consecutive
1165
 
delimiters in the input string, @var{s}, are collapsed into one.
 
1163
@var{del} may be a string, a scalar cell string, or cell string array.
 
1164
By default, consecutive delimiters in the input string @var{s} are
 
1165
collapsed into one.
1166
1166
 
1167
 
The second output, @var{matches}, returns the delmiters which were matched
 
1167
The second output, @var{matches}, returns the delimiters which were matched
1168
1168
in the original string.
1169
1169
 
1170
1170
Example: