/usr/share/octave/packages/strings-1.1.0/doc-cache is in octave-strings 1.1.0-1build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 | # Created by Octave 3.8.0, Mon Feb 24 19:46:55 2014 UTC <root@klock>
# name: cache
# type: cell
# rows: 3
# columns: 6
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
base64decode
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 586
-- Function File: RVAL = base64decode (CODE)
-- Function File: RVAL = base64decode (CODE, AS_STRING)
Convert a base64 CODE (a string of printable characters according
to RFC 2045) into the original ASCII data set of range 0-255. If
option AS_STRING is passed, the return value is converted into a
string.
##base64decode(base64encode('Hakuna Matata'),true)
base64decode('SGFrdW5hIE1hdGF0YQ==',true)
##returns 'Hakuna Matata'
See: http://www.ietf.org/rfc/rfc2045.txt
See also: base64encode.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
Convert a base64 CODE (a string of printable characters according to RFC
2045) i
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
base64encode
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 478
-- Function File: Y = base64encode (X)
-- Function File: Y = base64encode (X, DO_RESHAPE)
Convert X into string of printable characters according to RFC
2045. The input may be a string or a matrix of integers in the
range 0..255. If want the output in the 1-row of strings format,
pass the DO_RESHAPE argument as true.
Example:
base64encode('Hakuna Matata',true)
##returns 'SGFrdW5hIE1hdGF0YQ=='
See also: base64decode.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 68
Convert X into string of printable characters according to RFC 2045.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
cstrcmp
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 843
-- Function File: RVAL = cstrcmp (S1, S2)
Compare strings S1 and S2 like the C function.
Aside the difference to the return values, this function API is
exactly the same as Octave's 'strcmp' and will accept cell arrays
as well.
RVAL indicates the relationship between the strings:
* A value of 0 indicates that both strings are equal;
* A value of +1 indicates that the first character that does not
match has a greater value in S1 than in S2.
* A value of -1 indicates that the first character that does not
match has a match has a smaller value in S1 than in S2.
cstrcmp("marry","marry")
=> 0
cstrcmp("marry","marri")
=> +1
cstrcmp("marri","marry")
=> -1
See also: strcmp, strcmpi.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 46
Compare strings S1 and S2 like the C function.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
editdistance
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 882
-- Function File: [DIST,L] = editdistance (STRING1, STRING2, WEIGHTS)
Compute the Levenshtein edit distance between the strings STRING1
and STRING2. This operation is symmetrical.
The optional argument WEIGHTS specifies weights for the deletion,
matched, and insertion operations; by default it is set to +1, 0,
+1 respectively, so that a least editdistance means a closer match
between the two strings. This function implements the Levenshtein
edit distance as presented in Wikipedia article, accessed Nov 2006.
Also the levenshtein edit distance of a string with an empty string
is defined to be its length.
The default return value is DIST the edit distance, and the other
return value L is the distance matrix.
editdistance('marry','marie')
##returns value +2 for the distance.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 78
Compute the Levenshtein edit distance between the strings STRING1 and
STRING2.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
strjoin
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 741
-- Function File: RVAL = strjoin (PREFIXSTR, STRINGCELL)
-- Function File: RVAL = strjoin (PREFIXSTR, VARARGS)
Joins the strings in STRINGCELL with the PREFIXSTR like the
list-join function in Python; the second version allows usage with
variable number of arguments. Note that, if using cell-array as a
second argument, only 2 arguments are accepted. Also note that,
both the arguments are strings or containers of strings (cells).
strjoin(' loves-> ','marie','amy','beth')
##returns 'marie loves-> amy loves-> beth'
strjoin('*',{'Octave','Scilab','Lush','Yorick'})
##returns 'Octave*Scilab*Lush*Yorick'
See also: strcmp.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 80
Joins the strings in STRINGCELL with the PREFIXSTR like the list-join
function i
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
strsort
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 120
-- Function File: [...] = strsort (...)
Overloads the sort function to operate on strings.
See also: sort.
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 50
Overloads the sort function to operate on strings.
|