comparison libinterp/corefcn/help.cc @ 19895:19755f4fc851

maint: Cleanup C++ code to follow Octave coding conventions. Try to wrap long lines to < 80 characters. Use GNU style and don't indent first brace of function definition. "case" statement is aligned flush left with brace of switch stmt. Remove trailing '\' line continuation from the end of #define macros. Use 2 spaces for indent. * files-dock-widget.cc, history-dock-widget.cc, main-window.cc, octave-cmd.cc, octave-dock-widget.cc, octave-gui.cc, resource-manager.cc, settings-dialog.cc, shortcut-manager.cc, welcome-wizard.cc, workspace-view.cc, cellfun.cc, data.cc, debug.cc, debug.h, dirfns.cc, error.h, file-io.cc, gl-render.cc, gl-render.h, gl2ps-renderer.h, graphics.cc, graphics.in.h, help.cc, input.cc, load-path.cc, load-path.h, lookup.cc, lu.cc, oct-stream.cc, octave-default-image.h, ordschur.cc, pr-output.cc, qz.cc, strfns.cc, symtab.cc, symtab.h, sysdep.cc, variables.cc, zfstream.h, __fltk_uigetfile__.cc, __init_fltk__.cc, __magick_read__.cc, __osmesa_print__.cc, audiodevinfo.cc, ov-classdef.cc, ov-classdef.h, ov-fcn.h, ov-float.cc, ov-flt-complex.cc, ov-java.cc, ov-range.cc, ov-re-mat.cc, ov-usr-fcn.h, ov.cc, op-int.h, options-usage.h, pt-eval.cc, Array-C.cc, Array-fC.cc, Array.cc, Array.h, PermMatrix.cc, Sparse.cc, chMatrix.h, dSparse.cc, dim-vector.h, bsxfun-decl.h, bsxfun-defs.cc, oct-norm.cc, Sparse-op-defs.h, oct-inttypes.cc, oct-inttypes.h, main.in.cc, mkoctfile.in.cc: Cleanup C++ code to follow Octave coding conventions.
author Rik <rik@octave.org>
date Wed, 25 Feb 2015 11:55:49 -0800
parents 4197fc428c7d
children d575cd1e0da7
comparison
equal deleted inserted replaced
19894:e8ccfc5d892b 19895:19755f4fc851
106 } 106 }
107 107
108 const static pair_type operators[] = 108 const static pair_type operators[] =
109 { 109 {
110 pair_type ("!", 110 pair_type ("!",
111 "-*- texinfo -*-\n\ 111 "-*- texinfo -*-\n\
112 @deftypefn {Operator} {} !\n\ 112 @deftypefn {Operator} {} !\n\
113 Logical 'not' operator.\n\ 113 Logical 'not' operator.\n\
114 @seealso{~, not}\n\ 114 @seealso{~, not}\n\
115 @end deftypefn"), 115 @end deftypefn"),
116 116
117 pair_type ("~", 117 pair_type ("~",
118 "-*- texinfo -*-\n\ 118 "-*- texinfo -*-\n\
119 @deftypefn {Operator} {} ~\n\ 119 @deftypefn {Operator} {} ~\n\
120 Logical 'not' operator.\n\ 120 Logical 'not' operator.\n\
121 @seealso{!, not}\n\ 121 @seealso{!, not}\n\
122 @end deftypefn"), 122 @end deftypefn"),
123 123
124 pair_type ("!=", 124 pair_type ("!=",
125 "-*- texinfo -*-\n\ 125 "-*- texinfo -*-\n\
126 @deftypefn {Operator} {} !=\n\ 126 @deftypefn {Operator} {} !=\n\
127 Logical 'not equals' operator.\n\ 127 Logical 'not equals' operator.\n\
128 @seealso{~=, ne}\n\ 128 @seealso{~=, ne}\n\
129 @end deftypefn"), 129 @end deftypefn"),
130 130
131 pair_type ("~=", 131 pair_type ("~=",
132 "-*- texinfo -*-\n\ 132 "-*- texinfo -*-\n\
133 @deftypefn {Operator} {} ~=\n\ 133 @deftypefn {Operator} {} ~=\n\
134 Logical 'not equals' operator.\n\ 134 Logical 'not equals' operator.\n\
135 @seealso{!=, ne}\n\ 135 @seealso{!=, ne}\n\
136 @end deftypefn"), 136 @end deftypefn"),
137 137
138 pair_type ("\"", 138 pair_type ("\"",
139 "-*- texinfo -*-\n\ 139 "-*- texinfo -*-\n\
140 @deftypefn {Operator} {} \"\n\ 140 @deftypefn {Operator} {} \"\n\
141 String delimiter.\n\ 141 String delimiter.\n\
142 @end deftypefn"), 142 @end deftypefn"),
143 143
144 pair_type ("#", 144 pair_type ("#",
145 "-*- texinfo -*-\n\ 145 "-*- texinfo -*-\n\
146 @deftypefn {Operator} {} #\n\ 146 @deftypefn {Operator} {} #\n\
147 Begin comment character.\n\ 147 Begin comment character.\n\
148 @seealso{%, #@\\{}\n\ 148 @seealso{%, #@\\{}\n\
149 @end deftypefn"), 149 @end deftypefn"),
150 150
151 pair_type ("%", 151 pair_type ("%",
152 "-*- texinfo -*-\n\ 152 "-*- texinfo -*-\n\
153 @deftypefn {Operator} {} %\n\ 153 @deftypefn {Operator} {} %\n\
154 Begin comment character.\n\ 154 Begin comment character.\n\
155 @seealso{#, %@\\{}\n\ 155 @seealso{#, %@\\{}\n\
156 @end deftypefn"), 156 @end deftypefn"),
157 157
158 pair_type ("#{", 158 pair_type ("#{",
159 "-*- texinfo -*-\n\ 159 "-*- texinfo -*-\n\
160 @deftypefn {Operator} {} #@{\n\ 160 @deftypefn {Operator} {} #@{\n\
161 Begin block comment. There must be nothing else, other than\n\ 161 Begin block comment. There must be nothing else, other than\n\
162 whitespace, in the line both before and after @code{#@{}.\n\ 162 whitespace, in the line both before and after @code{#@{}.\n\
163 It is possible to nest block comments.\n\ 163 It is possible to nest block comments.\n\
164 @seealso{%@\\{, #@\\}, #}\n\ 164 @seealso{%@\\{, #@\\}, #}\n\
165 @end deftypefn"), 165 @end deftypefn"),
166 166
167 pair_type ("%{", 167 pair_type ("%{",
168 "-*- texinfo -*-\n\ 168 "-*- texinfo -*-\n\
169 @deftypefn {Operator} {} %@{\n\ 169 @deftypefn {Operator} {} %@{\n\
170 Begin block comment. There must be nothing else, other than\n\ 170 Begin block comment. There must be nothing else, other than\n\
171 whitespace, in the line both before and after @code{%@{}.\n\ 171 whitespace, in the line both before and after @code{%@{}.\n\
172 It is possible to nest block comments.\n\ 172 It is possible to nest block comments.\n\
173 @seealso{#@\\{, %@\\}, %}\n\ 173 @seealso{#@\\{, %@\\}, %}\n\
174 @end deftypefn"), 174 @end deftypefn"),
175 175
176 pair_type ("#}", 176 pair_type ("#}",
177 "-*- texinfo -*-\n\ 177 "-*- texinfo -*-\n\
178 @deftypefn {Operator} {} #@}\n\ 178 @deftypefn {Operator} {} #@}\n\
179 Close block comment. There must be nothing else, other than\n\ 179 Close block comment. There must be nothing else, other than\n\
180 whitespace, in the line both before and after @code{#@}}.\n\ 180 whitespace, in the line both before and after @code{#@}}.\n\
181 It is possible to nest block comments.\n\ 181 It is possible to nest block comments.\n\
182 @seealso{%@\\}, #@\\{, #}\n\ 182 @seealso{%@\\}, #@\\{, #}\n\
183 @end deftypefn"), 183 @end deftypefn"),
184 184
185 pair_type ("%}", 185 pair_type ("%}",
186 "-*- texinfo -*-\n\ 186 "-*- texinfo -*-\n\
187 @deftypefn {Operator} {} %@}\n\ 187 @deftypefn {Operator} {} %@}\n\
188 Close block comment. There must be nothing else, other than\n\ 188 Close block comment. There must be nothing else, other than\n\
189 whitespace, in the line both before and after @code{%@}}.\n\ 189 whitespace, in the line both before and after @code{%@}}.\n\
190 It is possible to nest block comments.\n\ 190 It is possible to nest block comments.\n\
191 @seealso{#@\\}, %@\\{, %}\n\ 191 @seealso{#@\\}, %@\\{, %}\n\
192 @end deftypefn"), 192 @end deftypefn"),
193 193
194 pair_type ("...", 194 pair_type ("...",
195 "-*- texinfo -*-\n\ 195 "-*- texinfo -*-\n\
196 @deftypefn {Operator} {} ...\n\ 196 @deftypefn {Operator} {} ...\n\
197 Continuation marker. Joins current line with following line.\n\ 197 Continuation marker. Joins current line with following line.\n\
198 @end deftypefn"), 198 @end deftypefn"),
199 199
200 pair_type ("&", 200 pair_type ("&",
201 "-*- texinfo -*-\n\ 201 "-*- texinfo -*-\n\
202 @deftypefn {Operator} {} &\n\ 202 @deftypefn {Operator} {} &\n\
203 Element by element logical 'and' operator.\n\ 203 Element by element logical 'and' operator.\n\
204 @seealso{&&, and}\n\ 204 @seealso{&&, and}\n\
205 @end deftypefn"), 205 @end deftypefn"),
206 206
207 pair_type ("&&", 207 pair_type ("&&",
208 "-*- texinfo -*-\n\ 208 "-*- texinfo -*-\n\
209 @deftypefn {Operator} {} &&\n\ 209 @deftypefn {Operator} {} &&\n\
210 Logical 'and' operator (with short-circuit evaluation).\n\ 210 Logical 'and' operator (with short-circuit evaluation).\n\
211 @seealso{&, and}\n\ 211 @seealso{&, and}\n\
212 @end deftypefn"), 212 @end deftypefn"),
213 213
214 pair_type ("'", 214 pair_type ("'",
215 "-*- texinfo -*-\n\ 215 "-*- texinfo -*-\n\
216 @deftypefn {Operator} {} '\n\ 216 @deftypefn {Operator} {} '\n\
217 Matrix transpose operator. For complex matrices, computes the\n\ 217 Matrix transpose operator. For complex matrices, computes the\n\
218 complex conjugate (Hermitian) transpose.\n\ 218 complex conjugate (Hermitian) transpose.\n\
219 \n\ 219 \n\
220 The single quote character may also be used to delimit strings, but\n\ 220 The single quote character may also be used to delimit strings, but\n\
222 ambiguous.\n\ 222 ambiguous.\n\
223 @seealso{.', transpose}\n\ 223 @seealso{.', transpose}\n\
224 @end deftypefn"), 224 @end deftypefn"),
225 225
226 pair_type ("(", 226 pair_type ("(",
227 "-*- texinfo -*-\n\ 227 "-*- texinfo -*-\n\
228 @deftypefn {Operator} {} (\n\ 228 @deftypefn {Operator} {} (\n\
229 Array index or function argument delimiter.\n\ 229 Array index or function argument delimiter.\n\
230 @end deftypefn"), 230 @end deftypefn"),
231 231
232 pair_type (")", 232 pair_type (")",
233 "-*- texinfo -*-\n\ 233 "-*- texinfo -*-\n\
234 @deftypefn {Operator} {})\n\ 234 @deftypefn {Operator} {})\n\
235 Array index or function argument delimiter.\n\ 235 Array index or function argument delimiter.\n\
236 @end deftypefn"), 236 @end deftypefn"),
237 237
238 pair_type ("*", 238 pair_type ("*",
239 "-*- texinfo -*-\n\ 239 "-*- texinfo -*-\n\
240 @deftypefn {Operator} {} *\n\ 240 @deftypefn {Operator} {} *\n\
241 Multiplication operator.\n\ 241 Multiplication operator.\n\
242 @seealso{.*, times}\n\ 242 @seealso{.*, times}\n\
243 @end deftypefn"), 243 @end deftypefn"),
244 244
245 pair_type ("**", 245 pair_type ("**",
246 "-*- texinfo -*-\n\ 246 "-*- texinfo -*-\n\
247 @deftypefn {Operator} {} **\n\ 247 @deftypefn {Operator} {} **\n\
248 Power operator. This may return complex results for real inputs. Use\n\ 248 Power operator. This may return complex results for real inputs. Use\n\
249 @code{realsqrt}, @code{cbrt}, @code{nthroot}, or @code{realroot} to obtain\n\ 249 @code{realsqrt}, @code{cbrt}, @code{nthroot}, or @code{realroot} to obtain\n\
250 real results when possible.\n\ 250 real results when possible.\n\
251 @seealso{power, ^, .**, .^, realpow, realsqrt, cbrt, nthroot}\n\ 251 @seealso{power, ^, .**, .^, realpow, realsqrt, cbrt, nthroot}\n\
252 @end deftypefn"), 252 @end deftypefn"),
253 253
254 pair_type ("^", 254 pair_type ("^",
255 "-*- texinfo -*-\n\ 255 "-*- texinfo -*-\n\
256 @deftypefn {Operator} {} ^\n\ 256 @deftypefn {Operator} {} ^\n\
257 Power operator. This may return complex results for real inputs. Use\n\ 257 Power operator. This may return complex results for real inputs. Use\n\
258 @code{realsqrt}, @code{cbrt}, @code{nthroot}, or @code{realroot} to obtain\n\ 258 @code{realsqrt}, @code{cbrt}, @code{nthroot}, or @code{realroot} to obtain\n\
259 real results when possible.\n\ 259 real results when possible.\n\
260 @seealso{power, **, .^, .**, realpow, realsqrt, cbrt, nthroot}\n\ 260 @seealso{power, **, .^, .**, realpow, realsqrt, cbrt, nthroot}\n\
261 @end deftypefn"), 261 @end deftypefn"),
262 262
263 pair_type ("+", 263 pair_type ("+",
264 "-*- texinfo -*-\n\ 264 "-*- texinfo -*-\n\
265 @deftypefn {Operator} {} +\n\ 265 @deftypefn {Operator} {} +\n\
266 Addition operator.\n\ 266 Addition operator.\n\
267 @seealso{plus}\n\ 267 @seealso{plus}\n\
268 @end deftypefn"), 268 @end deftypefn"),
269 269
270 pair_type ("++", 270 pair_type ("++",
271 "-*- texinfo -*-\n\ 271 "-*- texinfo -*-\n\
272 @deftypefn {Operator} {} ++\n\ 272 @deftypefn {Operator} {} ++\n\
273 Increment operator. As in C, may be applied as a prefix or postfix\n\ 273 Increment operator. As in C, may be applied as a prefix or postfix\n\
274 operator.\n\ 274 operator.\n\
275 @seealso{--}\n\ 275 @seealso{--}\n\
276 @end deftypefn"), 276 @end deftypefn"),
277 277
278 pair_type (",", 278 pair_type (",",
279 "-*- texinfo -*-\n\ 279 "-*- texinfo -*-\n\
280 @deftypefn {Operator} {} ,\n\ 280 @deftypefn {Operator} {} ,\n\
281 Array index, function argument, or command separator.\n\ 281 Array index, function argument, or command separator.\n\
282 @end deftypefn"), 282 @end deftypefn"),
283 283
284 pair_type ("-", 284 pair_type ("-",
285 "-*- texinfo -*-\n\ 285 "-*- texinfo -*-\n\
286 @deftypefn {Operator} {} -\n\ 286 @deftypefn {Operator} {} -\n\
287 Subtraction or unary negation operator.\n\ 287 Subtraction or unary negation operator.\n\
288 @seealso{minus}\n\ 288 @seealso{minus}\n\
289 @end deftypefn"), 289 @end deftypefn"),
290 290
291 pair_type ("--", 291 pair_type ("--",
292 "-*- texinfo -*-\n\ 292 "-*- texinfo -*-\n\
293 @deftypefn {Operator} {} --\n\ 293 @deftypefn {Operator} {} --\n\
294 Decrement operator. As in C, may be applied as a prefix or postfix\n\ 294 Decrement operator. As in C, may be applied as a prefix or postfix\n\
295 operator.\n\ 295 operator.\n\
296 @seealso{++}\n\ 296 @seealso{++}\n\
297 @end deftypefn"), 297 @end deftypefn"),
298 298
299 pair_type (".'", 299 pair_type (".'",
300 "-*- texinfo -*-\n\ 300 "-*- texinfo -*-\n\
301 @deftypefn {Operator} {} .'\n\ 301 @deftypefn {Operator} {} .'\n\
302 Matrix transpose operator. For complex matrices, computes the\n\ 302 Matrix transpose operator. For complex matrices, computes the\n\
303 transpose, @emph{not} the complex conjugate transpose.\n\ 303 transpose, @emph{not} the complex conjugate transpose.\n\
304 @seealso{', transpose}\n\ 304 @seealso{', transpose}\n\
305 @end deftypefn"), 305 @end deftypefn"),
306 306
307 pair_type (".*", 307 pair_type (".*",
308 "-*- texinfo -*-\n\ 308 "-*- texinfo -*-\n\
309 @deftypefn {Operator} {} .*\n\ 309 @deftypefn {Operator} {} .*\n\
310 Element by element multiplication operator.\n\ 310 Element by element multiplication operator.\n\
311 @seealso{*, times}\n\ 311 @seealso{*, times}\n\
312 @end deftypefn"), 312 @end deftypefn"),
313 313
314 pair_type (".**", 314 pair_type (".**",
315 "-*- texinfo -*-\n\ 315 "-*- texinfo -*-\n\
316 @deftypefn {Operator} {} .*\n\ 316 @deftypefn {Operator} {} .*\n\
317 Element by element power operator. If several complex results are possible,\n\ 317 Element by element power operator. If several complex results are possible,\n\
318 returns the one with smallest non-negative argument (angle). Use\n\ 318 returns the one with smallest non-negative argument (angle). Use\n\
319 @code{realpow}, @code{realsqrt}, @code{cbrt}, or @code{nthroot} if a\n\ 319 @code{realpow}, @code{realsqrt}, @code{cbrt}, or @code{nthroot} if a\n\
320 real result is preferred.\n\ 320 real result is preferred.\n\
321 @seealso{**, ^, .^, power, realpow, realsqrt, cbrt, nthroot}\n\ 321 @seealso{**, ^, .^, power, realpow, realsqrt, cbrt, nthroot}\n\
322 @end deftypefn"), 322 @end deftypefn"),
323 323
324 pair_type (".^", 324 pair_type (".^",
325 "-*- texinfo -*-\n\ 325 "-*- texinfo -*-\n\
326 @deftypefn {Operator} {} .^\n\ 326 @deftypefn {Operator} {} .^\n\
327 Element by element power operator. If several complex results are possible,\n\ 327 Element by element power operator. If several complex results are possible,\n\
328 returns the one with smallest non-negative argument (angle). Use\n\ 328 returns the one with smallest non-negative argument (angle). Use\n\
329 @code{realpow}, @code{realsqrt}, @code{cbrt}, or @code{nthroot} if a\n\ 329 @code{realpow}, @code{realsqrt}, @code{cbrt}, or @code{nthroot} if a\n\
330 real result is preferred.\n\ 330 real result is preferred.\n\
331 @seealso{.**, ^, **, power, realpow, realsqrt, cbrt, nthroot}\n\ 331 @seealso{.**, ^, **, power, realpow, realsqrt, cbrt, nthroot}\n\
332 @end deftypefn"), 332 @end deftypefn"),
333 333
334 pair_type ("./", 334 pair_type ("./",
335 "-*- texinfo -*-\n\ 335 "-*- texinfo -*-\n\
336 @deftypefn {Operator} {} ./\n\ 336 @deftypefn {Operator} {} ./\n\
337 Element by element right division operator.\n\ 337 Element by element right division operator.\n\
338 @seealso{/, .\\, rdivide, mrdivide}\n\ 338 @seealso{/, .\\, rdivide, mrdivide}\n\
339 @end deftypefn"), 339 @end deftypefn"),
340 340
341 pair_type ("/", 341 pair_type ("/",
342 "-*- texinfo -*-\n\ 342 "-*- texinfo -*-\n\
343 @deftypefn {Operator} {} /\n\ 343 @deftypefn {Operator} {} /\n\
344 Right division operator.\n\ 344 Right division operator.\n\
345 @seealso{./, \\, rdivide, mrdivide}\n\ 345 @seealso{./, \\, rdivide, mrdivide}\n\
346 @end deftypefn"), 346 @end deftypefn"),
347 347
348 pair_type (".\\", 348 pair_type (".\\",
349 "-*- texinfo -*-\n\ 349 "-*- texinfo -*-\n\
350 @deftypefn {Operator} {} .\\\n\ 350 @deftypefn {Operator} {} .\\\n\
351 Element by element left division operator.\n\ 351 Element by element left division operator.\n\
352 @seealso{\\, ./, rdivide, mrdivide}\n\ 352 @seealso{\\, ./, rdivide, mrdivide}\n\
353 @end deftypefn"), 353 @end deftypefn"),
354 354
355 pair_type ("\\", 355 pair_type ("\\",
356 "-*- texinfo -*-\n\ 356 "-*- texinfo -*-\n\
357 @deftypefn {Operator} {} \\\n\ 357 @deftypefn {Operator} {} \\\n\
358 Left division operator.\n\ 358 Left division operator.\n\
359 @seealso{.\\, /, ldivide, mldivide}\n\ 359 @seealso{.\\, /, ldivide, mldivide}\n\
360 @end deftypefn"), 360 @end deftypefn"),
361 361
362 pair_type (":", 362 pair_type (":",
363 "-*- texinfo -*-\n\ 363 "-*- texinfo -*-\n\
364 @deftypefn {Operator} {} :\n\ 364 @deftypefn {Operator} {} :\n\
365 Select entire rows or columns of matrices.\n\ 365 Select entire rows or columns of matrices.\n\
366 @end deftypefn"), 366 @end deftypefn"),
367 367
368 pair_type (";", 368 pair_type (";",
369 "-*- texinfo -*-\n\ 369 "-*- texinfo -*-\n\
370 @deftypefn {Operator} {} ;\n\ 370 @deftypefn {Operator} {} ;\n\
371 Array row or command separator.\n\ 371 Array row or command separator.\n\
372 @seealso{,}\n\ 372 @seealso{,}\n\
373 @end deftypefn"), 373 @end deftypefn"),
374 374
375 pair_type ("<", 375 pair_type ("<",
376 "-*- texinfo -*-\n\ 376 "-*- texinfo -*-\n\
377 @deftypefn {Operator} {} <\n\ 377 @deftypefn {Operator} {} <\n\
378 'Less than' operator.\n\ 378 'Less than' operator.\n\
379 @seealso{lt}\n\ 379 @seealso{lt}\n\
380 @end deftypefn"), 380 @end deftypefn"),
381 381
382 pair_type ("<=", 382 pair_type ("<=",
383 "-*- texinfo -*-\n\ 383 "-*- texinfo -*-\n\
384 @deftypefn {Operator} {} <=\n\ 384 @deftypefn {Operator} {} <=\n\
385 'Less than' or 'equals' operator.\n\ 385 'Less than' or 'equals' operator.\n\
386 @seealso{le}\n\ 386 @seealso{le}\n\
387 @end deftypefn"), 387 @end deftypefn"),
388 388
389 pair_type ("=", 389 pair_type ("=",
390 "-*- texinfo -*-\n\ 390 "-*- texinfo -*-\n\
391 @deftypefn {Operator} {} =\n\ 391 @deftypefn {Operator} {} =\n\
392 Assignment operator.\n\ 392 Assignment operator.\n\
393 @end deftypefn"), 393 @end deftypefn"),
394 394
395 pair_type ("==", 395 pair_type ("==",
396 "-*- texinfo -*-\n\ 396 "-*- texinfo -*-\n\
397 @deftypefn {Operator} {} ==\n\ 397 @deftypefn {Operator} {} ==\n\
398 Equality test operator.\n\ 398 Equality test operator.\n\
399 @seealso{eq}\n\ 399 @seealso{eq}\n\
400 @end deftypefn"), 400 @end deftypefn"),
401 401
402 pair_type (">", 402 pair_type (">",
403 "-*- texinfo -*-\n\ 403 "-*- texinfo -*-\n\
404 @deftypefn {Operator} {} >\n\ 404 @deftypefn {Operator} {} >\n\
405 'Greater than' operator.\n\ 405 'Greater than' operator.\n\
406 @seealso{gt}\n\ 406 @seealso{gt}\n\
407 @end deftypefn"), 407 @end deftypefn"),
408 408
409 pair_type (">=", 409 pair_type (">=",
410 "-*- texinfo -*-\n\ 410 "-*- texinfo -*-\n\
411 @deftypefn {Operator} {} >=\n\ 411 @deftypefn {Operator} {} >=\n\
412 'Greater than' or 'equals' operator.\n\ 412 'Greater than' or 'equals' operator.\n\
413 @seealso{ge}\n\ 413 @seealso{ge}\n\
414 @end deftypefn"), 414 @end deftypefn"),
415 415
416 pair_type ("[", 416 pair_type ("[",
417 "-*- texinfo -*-\n\ 417 "-*- texinfo -*-\n\
418 @deftypefn {Operator} {} [\n\ 418 @deftypefn {Operator} {} [\n\
419 Return list delimiter.\n\ 419 Return list delimiter.\n\
420 @seealso{]}\n\ 420 @seealso{]}\n\
421 @end deftypefn"), 421 @end deftypefn"),
422 422
423 pair_type ("]", 423 pair_type ("]",
424 "-*- texinfo -*-\n\ 424 "-*- texinfo -*-\n\
425 @deftypefn {Operator} {} ]\n\ 425 @deftypefn {Operator} {} ]\n\
426 Return list delimiter.\n\ 426 Return list delimiter.\n\
427 @seealso{[}\n\ 427 @seealso{[}\n\
428 @end deftypefn"), 428 @end deftypefn"),
429 429
430 pair_type ("|", 430 pair_type ("|",
431 "-*- texinfo -*-\n\ 431 "-*- texinfo -*-\n\
432 @deftypefn {Operator} {} |\n\ 432 @deftypefn {Operator} {} |\n\
433 Element by element logical 'or' operator.\n\ 433 Element by element logical 'or' operator.\n\
434 @seealso{||, or}\n\ 434 @seealso{||, or}\n\
435 @end deftypefn"), 435 @end deftypefn"),
436 436
437 pair_type ("||", 437 pair_type ("||",
438 "-*- texinfo -*-\n\ 438 "-*- texinfo -*-\n\
439 @deftypefn {Operator} {} ||\n\ 439 @deftypefn {Operator} {} ||\n\
440 Logical 'or' (with short-circuit evaluation) operator.\n\ 440 Logical 'or' (with short-circuit evaluation) operator.\n\
441 @seealso{|, or}\n\ 441 @seealso{|, or}\n\
442 @end deftypefn"), 442 @end deftypefn"),
443 }; 443 };
444 444
445 const static pair_type keywords[] = 445 const static pair_type keywords[] =
446 { 446 {
447 pair_type ("break", 447 pair_type ("break",
448 "-*- texinfo -*-\n\ 448 "-*- texinfo -*-\n\
449 @deftypefn {Keyword} {} break\n\ 449 @deftypefn {Keyword} {} break\n\
450 Exit the innermost enclosing do, while or for loop.\n\ 450 Exit the innermost enclosing do, while or for loop.\n\
451 @seealso{do, while, for, parfor, continue}\n\ 451 @seealso{do, while, for, parfor, continue}\n\
452 @end deftypefn"), 452 @end deftypefn"),
453 453
454 pair_type ("case", 454 pair_type ("case",
455 "-*- texinfo -*-\n\ 455 "-*- texinfo -*-\n\
456 @deftypefn {Keyword} {} case @var{value}\n\ 456 @deftypefn {Keyword} {} case @var{value}\n\
457 @deftypefnx {Keyword} {} case @{@var{value}, @dots{}@}\n\ 457 @deftypefnx {Keyword} {} case @{@var{value}, @dots{}@}\n\
458 A case statement in a switch. Octave cases are exclusive and do not\n\ 458 A case statement in a switch. Octave cases are exclusive and do not\n\
459 fall-through as do C-language cases. A switch statement must have at least\n\ 459 fall-through as do C-language cases. A switch statement must have at least\n\
460 one case. See @code{switch} for an example.\n\ 460 one case. See @code{switch} for an example.\n\
461 @seealso{switch}\n\ 461 @seealso{switch}\n\
462 @end deftypefn"), 462 @end deftypefn"),
463 463
464 pair_type ("catch", 464 pair_type ("catch",
465 "-*- texinfo -*-\n\ 465 "-*- texinfo -*-\n\
466 @deftypefn {Keyword} {} catch\n\ 466 @deftypefn {Keyword} {} catch\n\
467 @deftypefnx {Keyword} {} catch @var{value}\n\ 467 @deftypefnx {Keyword} {} catch @var{value}\n\
468 Begin the cleanup part of a try-catch block.\n\ 468 Begin the cleanup part of a try-catch block.\n\
469 @seealso{try}\n\ 469 @seealso{try}\n\
470 @end deftypefn"), 470 @end deftypefn"),
471 471
472 pair_type ("continue", 472 pair_type ("continue",
473 "-*- texinfo -*-\n\ 473 "-*- texinfo -*-\n\
474 @deftypefn {Keyword} {} continue\n\ 474 @deftypefn {Keyword} {} continue\n\
475 Jump to the end of the innermost enclosing do, while or for loop.\n\ 475 Jump to the end of the innermost enclosing do, while or for loop.\n\
476 @seealso{do, while, for, parfor, break}\n\ 476 @seealso{do, while, for, parfor, break}\n\
477 @end deftypefn"), 477 @end deftypefn"),
478 478
479 pair_type ("do", 479 pair_type ("do",
480 "-*- texinfo -*-\n\ 480 "-*- texinfo -*-\n\
481 @deftypefn {Keyword} {} do\n\ 481 @deftypefn {Keyword} {} do\n\
482 Begin a do-until loop. This differs from a do-while loop in that the\n\ 482 Begin a do-until loop. This differs from a do-while loop in that the\n\
483 body of the loop is executed at least once.\n\ 483 body of the loop is executed at least once.\n\
484 \n\ 484 \n\
485 @example\n\ 485 @example\n\
492 @end example\n\ 492 @end example\n\
493 @seealso{for, until, while}\n\ 493 @seealso{for, until, while}\n\
494 @end deftypefn"), 494 @end deftypefn"),
495 495
496 pair_type ("else", 496 pair_type ("else",
497 "-*- texinfo -*-\n\ 497 "-*- texinfo -*-\n\
498 @deftypefn {Keyword} {} else\n\ 498 @deftypefn {Keyword} {} else\n\
499 Alternate action for an if block. See @code{if} for an example.\n\ 499 Alternate action for an if block. See @code{if} for an example.\n\
500 @seealso{if}\n\ 500 @seealso{if}\n\
501 @end deftypefn"), 501 @end deftypefn"),
502 502
503 pair_type ("elseif", 503 pair_type ("elseif",
504 "-*- texinfo -*-\n\ 504 "-*- texinfo -*-\n\
505 @deftypefn {Keyword} {} elseif (@var{condition})\n\ 505 @deftypefn {Keyword} {} elseif (@var{condition})\n\
506 Alternate conditional test for an if block. See @code{if} for an example.\n\ 506 Alternate conditional test for an if block. See @code{if} for an example.\n\
507 @seealso{if}\n\ 507 @seealso{if}\n\
508 @end deftypefn"), 508 @end deftypefn"),
509 509
510 pair_type ("end", 510 pair_type ("end",
511 "-*- texinfo -*-\n\ 511 "-*- texinfo -*-\n\
512 @deftypefn {Keyword} {} end\n\ 512 @deftypefn {Keyword} {} end\n\
513 Mark the end of any @code{for}, @code{parfor}, @code{if}, @code{do},\n\ 513 Mark the end of any @code{for}, @code{parfor}, @code{if}, @code{do},\n\
514 @code{while}, @code{function}, @code{switch}, @code{try}, or\n\ 514 @code{while}, @code{function}, @code{switch}, @code{try}, or\n\
515 @code{unwind_protect} block.\n\ 515 @code{unwind_protect} block.\n\
516 @seealso{for, parfor, if, do, while, function, switch, try, unwind_protect}\n\ 516 @seealso{for, parfor, if, do, while, function, switch, try, unwind_protect}\n\
517 @end deftypefn"), 517 @end deftypefn"),
518 518
519 pair_type ("end_try_catch", 519 pair_type ("end_try_catch",
520 "-*- texinfo -*-\n\ 520 "-*- texinfo -*-\n\
521 @deftypefn {Keyword} {} end_try_catch\n\ 521 @deftypefn {Keyword} {} end_try_catch\n\
522 Mark the end of an @code{try-catch} block.\n\ 522 Mark the end of an @code{try-catch} block.\n\
523 @seealso{try, catch}\n\ 523 @seealso{try, catch}\n\
524 @end deftypefn"), 524 @end deftypefn"),
525 525
526 pair_type ("end_unwind_protect", 526 pair_type ("end_unwind_protect",
527 "-*- texinfo -*-\n\ 527 "-*- texinfo -*-\n\
528 @deftypefn {Keyword} {} end_unwind_protect\n\ 528 @deftypefn {Keyword} {} end_unwind_protect\n\
529 Mark the end of an unwind_protect block.\n\ 529 Mark the end of an unwind_protect block.\n\
530 @seealso{unwind_protect}\n\ 530 @seealso{unwind_protect}\n\
531 @end deftypefn"), 531 @end deftypefn"),
532 532
533 pair_type ("endfor", 533 pair_type ("endfor",
534 "-*- texinfo -*-\n\ 534 "-*- texinfo -*-\n\
535 @deftypefn {Keyword} {} endfor\n\ 535 @deftypefn {Keyword} {} endfor\n\
536 Mark the end of a for loop. See @code{for} for an example.\n\ 536 Mark the end of a for loop. See @code{for} for an example.\n\
537 @seealso{for}\n\ 537 @seealso{for}\n\
538 @end deftypefn"), 538 @end deftypefn"),
539 539
540 pair_type ("endfunction", 540 pair_type ("endfunction",
541 "-*- texinfo -*-\n\ 541 "-*- texinfo -*-\n\
542 @deftypefn {Keyword} {} endfunction\n\ 542 @deftypefn {Keyword} {} endfunction\n\
543 Mark the end of a function.\n\ 543 Mark the end of a function.\n\
544 @seealso{function}\n\ 544 @seealso{function}\n\
545 @end deftypefn"), 545 @end deftypefn"),
546 546
547 pair_type ("endif", 547 pair_type ("endif",
548 "-*- texinfo -*-\n\ 548 "-*- texinfo -*-\n\
549 @deftypefn {Keyword} {} endif\n\ 549 @deftypefn {Keyword} {} endif\n\
550 Mark the end of an if block. See @code{if} for an example.\n\ 550 Mark the end of an if block. See @code{if} for an example.\n\
551 @seealso{if}\n\ 551 @seealso{if}\n\
552 @end deftypefn"), 552 @end deftypefn"),
553 553
554 pair_type ("endparfor", 554 pair_type ("endparfor",
555 "-*- texinfo -*-\n\ 555 "-*- texinfo -*-\n\
556 @deftypefn {Keyword} {} endparfor\n\ 556 @deftypefn {Keyword} {} endparfor\n\
557 Mark the end of a parfor loop. See @code{parfor} for an example.\n\ 557 Mark the end of a parfor loop. See @code{parfor} for an example.\n\
558 @seealso{parfor}\n\ 558 @seealso{parfor}\n\
559 @end deftypefn"), 559 @end deftypefn"),
560 560
561 pair_type ("endswitch", 561 pair_type ("endswitch",
562 "-*- texinfo -*-\n\ 562 "-*- texinfo -*-\n\
563 @deftypefn {Keyword} {} endswitch\n\ 563 @deftypefn {Keyword} {} endswitch\n\
564 Mark the end of a switch block. See @code{switch} for an example.\n\ 564 Mark the end of a switch block. See @code{switch} for an example.\n\
565 @seealso{switch}\n\ 565 @seealso{switch}\n\
566 @end deftypefn"), 566 @end deftypefn"),
567 567
568 pair_type ("endwhile", 568 pair_type ("endwhile",
569 "-*- texinfo -*-\n\ 569 "-*- texinfo -*-\n\
570 @deftypefn {Keyword} {} endwhile\n\ 570 @deftypefn {Keyword} {} endwhile\n\
571 Mark the end of a while loop. See @code{while} for an example.\n\ 571 Mark the end of a while loop. See @code{while} for an example.\n\
572 @seealso{do, while}\n\ 572 @seealso{do, while}\n\
573 @end deftypefn"), 573 @end deftypefn"),
574 574
575 pair_type ("for", 575 pair_type ("for",
576 "-*- texinfo -*-\n\ 576 "-*- texinfo -*-\n\
577 @deftypefn {Keyword} {} for @var{i} = @var{range}\n\ 577 @deftypefn {Keyword} {} for @var{i} = @var{range}\n\
578 Begin a for loop.\n\ 578 Begin a for loop.\n\
579 \n\ 579 \n\
580 @example\n\ 580 @example\n\
581 @group\n\ 581 @group\n\
586 @end example\n\ 586 @end example\n\
587 @seealso{do, parfor, while}\n\ 587 @seealso{do, parfor, while}\n\
588 @end deftypefn"), 588 @end deftypefn"),
589 589
590 pair_type ("function", 590 pair_type ("function",
591 "-*- texinfo -*-\n\ 591 "-*- texinfo -*-\n\
592 @deftypefn {Keyword} {} function @var{outputs} = function (@var{input}, @dots{})\n\ 592 @deftypefn {Keyword} {} function @var{outputs} = function (@var{input}, @dots{})\n\
593 @deftypefnx {Keyword} {} function {} function (@var{input}, @dots{})\n\ 593 @deftypefnx {Keyword} {} function {} function (@var{input}, @dots{})\n\
594 @deftypefnx {Keyword} {} function @var{outputs} = function\n\ 594 @deftypefnx {Keyword} {} function @var{outputs} = function\n\
595 Begin a function body with @var{outputs} as results and @var{inputs} as\n\ 595 Begin a function body with @var{outputs} as results and @var{inputs} as\n\
596 parameters.\n\ 596 parameters.\n\
597 @seealso{return}\n\ 597 @seealso{return}\n\
598 @end deftypefn"), 598 @end deftypefn"),
599 599
600 pair_type ("global", 600 pair_type ("global",
601 "-*- texinfo -*-\n\ 601 "-*- texinfo -*-\n\
602 @deftypefn {Keyword} {} global @var{var}\n\ 602 @deftypefn {Keyword} {} global @var{var}\n\
603 Declare variables to have global scope.\n\ 603 Declare variables to have global scope.\n\
604 \n\ 604 \n\
605 @example\n\ 605 @example\n\
606 @group\n\ 606 @group\n\
612 @end example\n\ 612 @end example\n\
613 @seealso{persistent}\n\ 613 @seealso{persistent}\n\
614 @end deftypefn"), 614 @end deftypefn"),
615 615
616 pair_type ("if", 616 pair_type ("if",
617 "-*- texinfo -*-\n\ 617 "-*- texinfo -*-\n\
618 @deftypefn {Keyword} {} if (@var{cond}) @dots{} endif\n\ 618 @deftypefn {Keyword} {} if (@var{cond}) @dots{} endif\n\
619 @deftypefnx {Keyword} {} if (@var{cond}) @dots{} else @dots{} endif\n\ 619 @deftypefnx {Keyword} {} if (@var{cond}) @dots{} else @dots{} endif\n\
620 @deftypefnx {Keyword} {} if (@var{cond}) @dots{} elseif (@var{cond}) @dots{} endif\n\ 620 @deftypefnx {Keyword} {} if (@var{cond}) @dots{} elseif (@var{cond}) @dots{} endif\n\
621 @deftypefnx {Keyword} {} if (@var{cond}) @dots{} elseif (@var{cond}) @dots{} else @dots{} endif\n\ 621 @deftypefnx {Keyword} {} if (@var{cond}) @dots{} elseif (@var{cond}) @dots{} else @dots{} endif\n\
622 Begin an if block.\n\ 622 Begin an if block.\n\
635 @end example\n\ 635 @end example\n\
636 @seealso{switch}\n\ 636 @seealso{switch}\n\
637 @end deftypefn"), 637 @end deftypefn"),
638 638
639 pair_type ("otherwise", 639 pair_type ("otherwise",
640 "-*- texinfo -*-\n\ 640 "-*- texinfo -*-\n\
641 @deftypefn {Keyword} {} otherwise\n\ 641 @deftypefn {Keyword} {} otherwise\n\
642 The default statement in a switch block (similar to else in an if block).\n\ 642 The default statement in a switch block (similar to else in an if block).\n\
643 @seealso{switch}\n\ 643 @seealso{switch}\n\
644 @end deftypefn"), 644 @end deftypefn"),
645 645
646 pair_type ("parfor", 646 pair_type ("parfor",
647 "-*- texinfo -*-\n\ 647 "-*- texinfo -*-\n\
648 @deftypefn {Keyword} {} parfor @var{i} = @var{range}\n\ 648 @deftypefn {Keyword} {} parfor @var{i} = @var{range}\n\
649 @deftypefnx {Keyword} {} parfor (@var{i} = @var{range}, @var{maxproc})\n\ 649 @deftypefnx {Keyword} {} parfor (@var{i} = @var{range}, @var{maxproc})\n\
650 Begin a for loop that may execute in parallel.\n\ 650 Begin a for loop that may execute in parallel.\n\
651 \n\ 651 \n\
652 @example\n\ 652 @example\n\
658 @end example\n\ 658 @end example\n\
659 @seealso{for, do, while}\n\ 659 @seealso{for, do, while}\n\
660 @end deftypefn"), 660 @end deftypefn"),
661 661
662 pair_type ("persistent", 662 pair_type ("persistent",
663 "-*- texinfo -*-\n\ 663 "-*- texinfo -*-\n\
664 @deftypefn {Keyword} {} persistent @var{var}\n\ 664 @deftypefn {Keyword} {} persistent @var{var}\n\
665 Declare variables as persistent. A variable that has been declared\n\ 665 Declare variables as persistent. A variable that has been declared\n\
666 persistent within a function will retain its contents in memory between\n\ 666 persistent within a function will retain its contents in memory between\n\
667 subsequent calls to the same function. The difference between persistent\n\ 667 subsequent calls to the same function. The difference between persistent\n\
668 variables and global variables is that persistent variables are local in \n\ 668 variables and global variables is that persistent variables are local in \n\
669 scope to a particular function and are not visible elsewhere.\n\ 669 scope to a particular function and are not visible elsewhere.\n\
670 @seealso{global}\n\ 670 @seealso{global}\n\
671 @end deftypefn"), 671 @end deftypefn"),
672 672
673 pair_type ("return", 673 pair_type ("return",
674 "-*- texinfo -*-\n\ 674 "-*- texinfo -*-\n\
675 @deftypefn {Keyword} {} return\n\ 675 @deftypefn {Keyword} {} return\n\
676 Return from a function.\n\ 676 Return from a function.\n\
677 @seealso{function}\n\ 677 @seealso{function}\n\
678 @end deftypefn"), 678 @end deftypefn"),
679 679
680 pair_type ("static", 680 pair_type ("static",
681 "-*- texinfo -*-\n\ 681 "-*- texinfo -*-\n\
682 @deftypefn {Keyword} {} static\n\ 682 @deftypefn {Keyword} {} static\n\
683 This statement has been deprecated in favor of @code{persistent}.\n\ 683 This statement has been deprecated in favor of @code{persistent}.\n\
684 @seealso{persistent}\n\ 684 @seealso{persistent}\n\
685 @end deftypefn"), 685 @end deftypefn"),
686 686
687 pair_type ("switch", 687 pair_type ("switch",
688 "-*- texinfo -*-\n\ 688 "-*- texinfo -*-\n\
689 @deftypefn {Keyword} {} switch @var{statement}\n\ 689 @deftypefn {Keyword} {} switch @var{statement}\n\
690 Begin a switch block.\n\ 690 Begin a switch block.\n\
691 \n\ 691 \n\
692 @example\n\ 692 @example\n\
693 @group\n\ 693 @group\n\
705 @end example\n\ 705 @end example\n\
706 @seealso{if, case, otherwise}\n\ 706 @seealso{if, case, otherwise}\n\
707 @end deftypefn"), 707 @end deftypefn"),
708 708
709 pair_type ("try", 709 pair_type ("try",
710 "-*- texinfo -*-\n\ 710 "-*- texinfo -*-\n\
711 @deftypefn {Keyword} {} try\n\ 711 @deftypefn {Keyword} {} try\n\
712 Begin a try-catch block.\n\ 712 Begin a try-catch block.\n\
713 \n\ 713 \n\
714 If an error occurs within a try block, then the catch code will be run and\n\ 714 If an error occurs within a try block, then the catch code will be run and\n\
715 execution will proceed after the catch block (though it is often\n\ 715 execution will proceed after the catch block (though it is often\n\
717 is completed).\n\ 717 is completed).\n\
718 @seealso{catch, unwind_protect}\n\ 718 @seealso{catch, unwind_protect}\n\
719 @end deftypefn"), 719 @end deftypefn"),
720 720
721 pair_type ("until", 721 pair_type ("until",
722 "-*- texinfo -*-\n\ 722 "-*- texinfo -*-\n\
723 @deftypefn {Keyword} {} until (@var{cond})\n\ 723 @deftypefn {Keyword} {} until (@var{cond})\n\
724 End a do-until loop. See @code{do} for an example.\n\ 724 End a do-until loop. See @code{do} for an example.\n\
725 @seealso{do}\n\ 725 @seealso{do}\n\
726 @end deftypefn"), 726 @end deftypefn"),
727 727
728 pair_type ("unwind_protect", 728 pair_type ("unwind_protect",
729 "-*- texinfo -*-\n\ 729 "-*- texinfo -*-\n\
730 @deftypefn {Keyword} {} unwind_protect\n\ 730 @deftypefn {Keyword} {} unwind_protect\n\
731 Begin an unwind_protect block.\n\ 731 Begin an unwind_protect block.\n\
732 \n\ 732 \n\
733 If an error occurs within the first part of an unwind_protect block\n\ 733 If an error occurs within the first part of an unwind_protect block\n\
734 the commands within the unwind_protect_cleanup block are executed before\n\ 734 the commands within the unwind_protect_cleanup block are executed before\n\
738 unwind_protect block).\n\ 738 unwind_protect block).\n\
739 @seealso{unwind_protect_cleanup, try}\n\ 739 @seealso{unwind_protect_cleanup, try}\n\
740 @end deftypefn"), 740 @end deftypefn"),
741 741
742 pair_type ("unwind_protect_cleanup", 742 pair_type ("unwind_protect_cleanup",
743 "-*- texinfo -*-\n\ 743 "-*- texinfo -*-\n\
744 @deftypefn {Keyword} {} unwind_protect_cleanup\n\ 744 @deftypefn {Keyword} {} unwind_protect_cleanup\n\
745 Begin the cleanup section of an unwind_protect block.\n\ 745 Begin the cleanup section of an unwind_protect block.\n\
746 @seealso{unwind_protect}\n\ 746 @seealso{unwind_protect}\n\
747 @end deftypefn"), 747 @end deftypefn"),
748 748
749 pair_type ("varargin", 749 pair_type ("varargin",
750 "-*- texinfo -*-\n\ 750 "-*- texinfo -*-\n\
751 @deftypefn {Keyword} {} varargin\n\ 751 @deftypefn {Keyword} {} varargin\n\
752 Pass an arbitrary number of arguments into a function.\n\ 752 Pass an arbitrary number of arguments into a function.\n\
753 @seealso{varargout, nargin, isargout, nargout, nthargout}\n\ 753 @seealso{varargout, nargin, isargout, nargout, nthargout}\n\
754 @end deftypefn"), 754 @end deftypefn"),
755 755
756 pair_type ("varargout", 756 pair_type ("varargout",
757 "-*- texinfo -*-\n\ 757 "-*- texinfo -*-\n\
758 @deftypefn {Keyword} {} varargout\n\ 758 @deftypefn {Keyword} {} varargout\n\
759 Pass an arbitrary number of arguments out of a function.\n\ 759 Pass an arbitrary number of arguments out of a function.\n\
760 @seealso{varargin, nargin, isargout, nargout, nthargout}\n\ 760 @seealso{varargin, nargin, isargout, nargout, nthargout}\n\
761 @end deftypefn"), 761 @end deftypefn"),
762 762
763 pair_type ("while", 763 pair_type ("while",
764 "-*- texinfo -*-\n\ 764 "-*- texinfo -*-\n\
765 @deftypefn {Keyword} {} while\n\ 765 @deftypefn {Keyword} {} while\n\
766 Begin a while loop.\n\ 766 Begin a while loop.\n\
767 \n\ 767 \n\
768 @example\n\ 768 @example\n\
769 @group\n\ 769 @group\n\