1741
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
1741
|
4 |
|
5 This file is part of Octave. |
|
6 |
|
7 Octave is free software; you can redistribute it and/or modify it |
|
8 under the terms of the GNU General Public License as published by the |
|
9 Free Software Foundation; either version 2, or (at your option) any |
|
10 later version. |
|
11 |
|
12 Octave is distributed in the hope that it will be useful, but WITHOUT |
|
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
|
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
|
15 for more details. |
|
16 |
|
17 You should have received a copy of the GNU General Public License |
|
18 along with Octave; see the file COPYING. If not, write to the Free |
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
|
20 |
|
21 */ |
|
22 |
4192
|
23 #if defined (__GNUG__) && defined (USE_PRAGMA_INTERFACE_IMPLEMENTATION) |
1741
|
24 #pragma implementation |
|
25 #endif |
|
26 |
|
27 #ifdef HAVE_CONFIG_H |
|
28 #include <config.h> |
|
29 #endif |
|
30 |
3503
|
31 #include <iostream> |
1741
|
32 |
2172
|
33 #include "defun.h" |
1741
|
34 #include "error.h" |
|
35 #include "oct-obj.h" |
2982
|
36 #include "pt-arg-list.h" |
3770
|
37 #include "pt-bp.h" |
1741
|
38 #include "pt-exp.h" |
|
39 #include "pt-mat.h" |
2124
|
40 #include "pt-walk.h" |
2201
|
41 #include "utils.h" |
2371
|
42 #include "ov.h" |
|
43 #include "variables.h" |
1741
|
44 |
2172
|
45 // Are empty elements in a matrix list ok? For example, is the empty |
|
46 // matrix in an expression like `[[], 1]' ok? A positive value means |
|
47 // yes. A negative value means yes, but print a warning message. |
|
48 // Zero means it should be considered an error. |
|
49 static int Vempty_list_elements_ok; |
|
50 |
3110
|
51 // Should `[97, 98, 99, "123"]' be a string? |
|
52 static bool Vimplicit_num_to_str_ok; |
|
53 |
2254
|
54 // The character to fill with when creating string arrays. |
3836
|
55 char Vstring_fill_char = ' '; |
2254
|
56 |
1741
|
57 // General matrices. This list type is much more work to handle than |
|
58 // constant matrices, but it allows us to construct matrices from |
|
59 // other matrices, variables, and functions. |
|
60 |
1827
|
61 // But first, some internal classes that make our job much easier. |
1741
|
62 |
1827
|
63 class |
|
64 tm_row_const |
1741
|
65 { |
1827
|
66 private: |
|
67 |
|
68 class |
4219
|
69 tm_row_const_rep : public octave_base_list<octave_value> |
1827
|
70 { |
|
71 public: |
|
72 |
|
73 tm_row_const_rep (void) |
4219
|
74 : count (1), nr (0), nc (0), |
3110
|
75 all_str (false), some_str (false), is_cmplx (false), |
|
76 all_mt (true), ok (false) { } |
1827
|
77 |
2971
|
78 tm_row_const_rep (const tree_argument_list& row) |
4219
|
79 : count (1), nr (0), nc (0), |
3110
|
80 all_str (false), some_str (false), is_cmplx (false), |
|
81 all_mt (true), ok (false) |
|
82 { init (row); } |
1827
|
83 |
|
84 ~tm_row_const_rep (void) { } |
|
85 |
|
86 int count; |
|
87 |
|
88 int nr; |
|
89 int nc; |
1741
|
90 |
1827
|
91 bool all_str; |
3110
|
92 bool some_str; |
1827
|
93 bool is_cmplx; |
2602
|
94 bool all_mt; |
1827
|
95 |
|
96 bool ok; |
|
97 |
2971
|
98 void init (const tree_argument_list&); |
1827
|
99 |
|
100 private: |
|
101 |
|
102 tm_row_const_rep (const tm_row_const_rep&); |
|
103 |
2971
|
104 tm_row_const_rep& operator = (const tm_row_const_rep&); |
2419
|
105 |
3661
|
106 void eval_error (const char *msg, int l, int c, |
|
107 int x = -1, int y = -1) const; |
2419
|
108 |
|
109 void eval_warning (const char *msg, int l, int c) const; |
1827
|
110 }; |
|
111 |
|
112 public: |
|
113 |
4219
|
114 typedef tm_row_const_rep::iterator iterator; |
|
115 typedef tm_row_const_rep::const_iterator const_iterator; |
|
116 |
2990
|
117 tm_row_const (void) |
|
118 : rep (0) { } |
1827
|
119 |
2971
|
120 tm_row_const (const tree_argument_list& row) |
|
121 : rep (new tm_row_const_rep (row)) { } |
1827
|
122 |
2990
|
123 tm_row_const (const tm_row_const& x) |
|
124 : rep (x.rep) |
|
125 { |
|
126 if (rep) |
|
127 rep->count++; |
|
128 } |
1827
|
129 |
|
130 tm_row_const& operator = (const tm_row_const& x) |
2990
|
131 { |
|
132 if (this != &x && rep != x.rep) |
|
133 { |
|
134 if (rep && --rep->count == 0) |
|
135 delete rep; |
1741
|
136 |
2990
|
137 rep = x.rep; |
1827
|
138 |
2990
|
139 if (rep) |
|
140 rep->count++; |
|
141 } |
1741
|
142 |
2990
|
143 return *this; |
|
144 } |
1827
|
145 |
|
146 ~tm_row_const (void) |
2990
|
147 { |
|
148 if (rep && --rep->count == 0) |
|
149 delete rep; |
|
150 } |
1741
|
151 |
1827
|
152 int rows (void) { return rep->nr; } |
|
153 int cols (void) { return rep->nc; } |
|
154 |
2868
|
155 bool all_strings_p (void) const { return rep->all_str; } |
3110
|
156 bool some_strings_p (void) const { return rep->some_str; } |
2868
|
157 bool complex_p (void) const { return rep->is_cmplx; } |
|
158 bool all_empty_p (void) const { return rep->all_mt; } |
1827
|
159 |
4219
|
160 operator bool () const { return (rep && rep->ok); } |
1827
|
161 |
4219
|
162 iterator begin (void) { return rep->begin (); } |
|
163 const_iterator begin (void) const { return rep->begin (); } |
|
164 |
|
165 iterator end (void) { return rep->end (); } |
|
166 const_iterator end (void) const { return rep->end (); } |
1827
|
167 |
|
168 private: |
|
169 |
|
170 tm_row_const_rep *rep; |
|
171 }; |
|
172 |
|
173 void |
2971
|
174 tm_row_const::tm_row_const_rep::init (const tree_argument_list& row) |
1827
|
175 { |
|
176 all_str = true; |
|
177 |
|
178 bool first_elem = true; |
|
179 |
4219
|
180 for (tree_argument_list::const_iterator p = row.begin (); |
|
181 p != row.end (); |
|
182 p++) |
1827
|
183 { |
4219
|
184 tree_expression *elt = *p; |
1827
|
185 |
2971
|
186 octave_value tmp = elt->rvalue (); |
1827
|
187 |
|
188 if (error_state || tmp.is_undefined ()) |
|
189 break; |
|
190 else |
|
191 { |
|
192 int this_elt_nr = tmp.rows (); |
|
193 int this_elt_nc = tmp.columns (); |
|
194 |
|
195 if (this_elt_nr == 0 || this_elt_nc == 0) |
|
196 { |
2172
|
197 if (Vempty_list_elements_ok < 0) |
2419
|
198 eval_warning ("empty matrix found in matrix list", |
|
199 elt->line (), elt->column ()); |
2172
|
200 else if (Vempty_list_elements_ok == 0) |
1827
|
201 { |
2419
|
202 eval_error ("empty matrix found in matrix list", |
|
203 elt->line (), elt->column ()); |
1827
|
204 break; |
|
205 } |
|
206 } |
|
207 else |
|
208 { |
2602
|
209 all_mt = false; |
|
210 |
1827
|
211 if (first_elem) |
|
212 { |
|
213 first_elem = false; |
|
214 |
|
215 nr = this_elt_nr; |
|
216 } |
|
217 else if (this_elt_nr != nr) |
|
218 { |
2419
|
219 eval_error ("number of rows must match", |
3661
|
220 elt->line (), elt->column (), this_elt_nr, nr); |
1827
|
221 break; |
|
222 } |
|
223 |
|
224 nc += this_elt_nc; |
|
225 |
|
226 append (tmp); |
|
227 } |
|
228 |
|
229 if (all_str && ! tmp.is_string ()) |
|
230 all_str = false; |
|
231 |
3110
|
232 if (! some_str && tmp.is_string ()) |
|
233 some_str = true; |
|
234 |
1827
|
235 if (! is_cmplx && tmp.is_complex_type ()) |
|
236 is_cmplx = true; |
|
237 } |
|
238 } |
|
239 |
|
240 ok = ! error_state; |
1741
|
241 } |
|
242 |
2419
|
243 void |
|
244 tm_row_const::tm_row_const_rep::eval_error (const char *msg, int l, |
3661
|
245 int c, int x, int y) const |
2419
|
246 { |
|
247 if (l == -1 && c == -1) |
3661
|
248 { |
|
249 if (x == -1 || y == -1) |
|
250 ::error ("%s", msg); |
|
251 else |
|
252 ::error ("%s (%d != %d)", msg, x, y); |
|
253 } |
2419
|
254 else |
3661
|
255 { |
|
256 if (x == -1 || y == -1) |
|
257 ::error ("%s near line %d, column %d", msg, l, c); |
|
258 else |
|
259 ::error ("%s (%d != %d) near line %d, column %d", msg, x, y, l, c); |
|
260 } |
2419
|
261 } |
|
262 |
|
263 void |
|
264 tm_row_const::tm_row_const_rep::eval_warning (const char *msg, int l, |
|
265 int c) const |
|
266 { |
|
267 if (l == -1 && c == -1) |
|
268 ::warning ("%s", msg); |
|
269 else |
|
270 ::warning ("%s near line %d, column %d", msg, l, c); |
|
271 } |
|
272 |
1827
|
273 class |
4219
|
274 tm_const : public octave_base_list<tm_row_const> |
1827
|
275 { |
|
276 public: |
|
277 |
|
278 tm_const (const tree_matrix& tm) |
4219
|
279 : nr (0), nc (0), |
3110
|
280 all_str (false), some_str (false), is_cmplx (false), |
|
281 all_mt (true), ok (false) |
1827
|
282 { init (tm); } |
|
283 |
|
284 ~tm_const (void) { } |
|
285 |
|
286 int rows (void) const { return nr; } |
|
287 int cols (void) const { return nc; } |
|
288 |
2868
|
289 bool all_strings_p (void) const { return all_str; } |
3110
|
290 bool some_strings_p (void) const { return some_str; } |
2868
|
291 bool complex_p (void) const { return is_cmplx; } |
|
292 bool all_empty_p (void) const { return all_mt; } |
1827
|
293 |
3145
|
294 operator bool () const { return ok; } |
1827
|
295 |
|
296 private: |
|
297 |
|
298 int nr; |
|
299 int nc; |
|
300 |
|
301 bool all_str; |
3110
|
302 bool some_str; |
1827
|
303 bool is_cmplx; |
2602
|
304 bool all_mt; |
1827
|
305 |
|
306 bool ok; |
|
307 |
|
308 tm_const (void); |
|
309 |
|
310 tm_const (const tm_const&); |
|
311 |
|
312 tm_const& operator = (const tm_const&); |
|
313 |
|
314 void init (const tree_matrix& tm); |
|
315 }; |
|
316 |
|
317 void |
|
318 tm_const::init (const tree_matrix& tm) |
1741
|
319 { |
1827
|
320 all_str = true; |
|
321 |
|
322 bool first_elem = true; |
|
323 |
|
324 // Just eval and figure out if what we have is complex or all |
|
325 // strings. We can't check columns until we know that this is a |
|
326 // numeric matrix -- collections of strings can have elements of |
|
327 // different lengths. |
|
328 |
4219
|
329 for (tree_matrix::const_iterator p = tm.begin (); p != tm.end (); p++) |
1827
|
330 { |
4219
|
331 tree_argument_list *elt = *p; |
1827
|
332 |
|
333 tm_row_const tmp (*elt); |
|
334 |
|
335 if (tmp) |
|
336 { |
2868
|
337 if (all_str && ! tmp.all_strings_p ()) |
1827
|
338 all_str = false; |
|
339 |
3110
|
340 if (! some_str && tmp.some_strings_p ()) |
|
341 some_str = true; |
|
342 |
2868
|
343 if (! is_cmplx && tmp.complex_p ()) |
1827
|
344 is_cmplx = true; |
|
345 |
2868
|
346 if (all_mt && ! tmp.all_empty_p ()) |
2602
|
347 all_mt = false; |
|
348 |
1827
|
349 append (tmp); |
|
350 } |
|
351 else |
|
352 break; |
|
353 } |
|
354 |
|
355 if (! error_state) |
|
356 { |
4219
|
357 for (iterator p = begin (); p != end (); p++) |
1827
|
358 { |
4219
|
359 tm_row_const elt = *p; |
1827
|
360 |
|
361 int this_elt_nr = elt.rows (); |
|
362 int this_elt_nc = elt.cols (); |
|
363 |
|
364 if (this_elt_nr == 0 || this_elt_nc == 0) |
|
365 { |
2172
|
366 if (Vempty_list_elements_ok < 0) |
1827
|
367 warning ("empty matrix found in matrix list"); |
2172
|
368 else if (Vempty_list_elements_ok == 0) |
1827
|
369 { |
|
370 ::error ("empty matrix found in matrix list"); |
|
371 break; |
|
372 } |
|
373 } |
|
374 else |
|
375 { |
2602
|
376 all_mt = false; |
|
377 |
1827
|
378 if (first_elem) |
|
379 { |
|
380 first_elem = false; |
|
381 |
|
382 nc = this_elt_nc; |
|
383 } |
|
384 else if (all_str) |
|
385 { |
|
386 if (this_elt_nc > nc) |
|
387 nc = this_elt_nc; |
|
388 } |
|
389 else if (this_elt_nc != nc) |
|
390 { |
3661
|
391 ::error ("number of columns must match (%d != %d)", |
|
392 this_elt_nc, nc); |
1827
|
393 break; |
|
394 } |
|
395 |
|
396 nr += this_elt_nr; |
|
397 } |
|
398 } |
|
399 } |
|
400 |
|
401 ok = ! error_state; |
1741
|
402 } |
|
403 |
2990
|
404 tree_matrix::~tree_matrix (void) |
|
405 { |
4219
|
406 while (! empty ()) |
2990
|
407 { |
4219
|
408 iterator p = begin (); |
|
409 delete *p; |
|
410 erase (p); |
2990
|
411 } |
|
412 } |
|
413 |
1827
|
414 bool |
2529
|
415 tree_matrix::all_elements_are_constant (void) const |
1827
|
416 { |
4219
|
417 for (const_iterator p = begin (); p != end (); p++) |
1827
|
418 { |
4219
|
419 tree_argument_list *elt = *p; |
1827
|
420 |
2529
|
421 if (! elt->all_elements_are_constant ()) |
1827
|
422 return false; |
|
423 } |
|
424 |
|
425 return true; |
|
426 } |
|
427 |
|
428 // Just about as ugly as it gets. |
1741
|
429 // Less ugly than before, anyway. |
1827
|
430 // Looking better all the time. |
1741
|
431 |
2971
|
432 octave_value_list |
|
433 tree_matrix::rvalue (int nargout) |
|
434 { |
|
435 octave_value_list retval; |
|
436 |
3770
|
437 MAYBE_DO_BREAKPOINT; |
|
438 |
2971
|
439 if (nargout > 1) |
|
440 error ("invalid number of output arguments for matrix list"); |
|
441 else |
|
442 retval = rvalue (); |
|
443 |
|
444 return retval; |
|
445 } |
|
446 |
2086
|
447 octave_value |
2971
|
448 tree_matrix::rvalue (void) |
1741
|
449 { |
2086
|
450 octave_value retval; |
1741
|
451 |
1827
|
452 tm_const tmp (*this); |
1741
|
453 |
2868
|
454 bool all_strings_p = false; |
3110
|
455 bool some_strings_p = false; |
2868
|
456 bool all_empty_p = false; |
2602
|
457 |
3110
|
458 bool frc_str_conv = false; |
|
459 |
1827
|
460 if (tmp) |
|
461 { |
|
462 int nr = tmp.rows (); |
|
463 int nc = tmp.cols (); |
1741
|
464 |
1827
|
465 Matrix m; |
|
466 ComplexMatrix cm; |
|
467 charMatrix chm; |
1741
|
468 |
1827
|
469 // Now, extract the values from the individual elements and |
|
470 // insert them in the result matrix. |
1741
|
471 |
2868
|
472 bool found_complex = tmp.complex_p (); |
1741
|
473 |
2868
|
474 all_strings_p = tmp.all_strings_p (); |
3110
|
475 some_strings_p = tmp.some_strings_p (); |
2868
|
476 all_empty_p = tmp.all_empty_p (); |
2602
|
477 |
3110
|
478 frc_str_conv = Vimplicit_num_to_str_ok && some_strings_p; |
|
479 |
2868
|
480 if (all_strings_p) |
2254
|
481 chm.resize (nr, nc, Vstring_fill_char); |
1827
|
482 else if (found_complex) |
|
483 cm.resize (nr, nc, 0.0); |
|
484 else |
|
485 m.resize (nr, nc, 0.0); |
1741
|
486 |
1827
|
487 int put_row = 0; |
1741
|
488 |
4219
|
489 for (tm_const::iterator p = tmp.begin (); p != tmp.end (); p++) |
1827
|
490 { |
|
491 int put_col = 0; |
1741
|
492 |
4219
|
493 tm_row_const row = *p; |
1741
|
494 |
4219
|
495 for (tm_row_const::iterator q = row.begin (); q != row.end (); q++) |
1827
|
496 { |
4219
|
497 octave_value elt = *q; |
1741
|
498 |
1827
|
499 if (found_complex) |
|
500 { |
|
501 if (elt.is_real_scalar ()) |
|
502 cm (put_row, put_col) = elt.double_value (); |
|
503 else if (elt.is_real_matrix () || elt.is_range ()) |
|
504 cm.insert (elt.matrix_value (), put_row, put_col); |
|
505 else if (elt.is_complex_scalar ()) |
|
506 cm (put_row, put_col) = elt.complex_value (); |
|
507 else |
|
508 { |
|
509 ComplexMatrix cm_elt = elt.complex_matrix_value (); |
1741
|
510 |
1827
|
511 if (error_state) |
|
512 goto done; |
1741
|
513 |
1827
|
514 cm.insert (cm_elt, put_row, put_col); |
|
515 } |
|
516 } |
|
517 else |
|
518 { |
|
519 if (elt.is_real_scalar ()) |
|
520 m (put_row, put_col) = elt.double_value (); |
2868
|
521 else if (elt.is_string () && all_strings_p) |
1827
|
522 { |
2495
|
523 charMatrix chm_elt = elt.char_matrix_value (); |
1741
|
524 |
1827
|
525 if (error_state) |
|
526 goto done; |
1741
|
527 |
1827
|
528 chm.insert (chm_elt, put_row, put_col); |
|
529 } |
|
530 else |
|
531 { |
3110
|
532 Matrix m_elt = elt.matrix_value (frc_str_conv); |
1827
|
533 |
|
534 if (error_state) |
|
535 goto done; |
1741
|
536 |
1827
|
537 m.insert (m_elt, put_row, put_col); |
|
538 } |
|
539 } |
|
540 |
2868
|
541 if (all_strings_p && chm.rows () > 0 && chm.cols () > 0) |
2086
|
542 retval = octave_value (chm, true); |
1827
|
543 else if (found_complex) |
|
544 retval = cm; |
|
545 else |
|
546 retval = m; |
|
547 |
|
548 put_col += elt.columns (); |
1741
|
549 } |
|
550 |
1827
|
551 put_row += row.rows (); |
1741
|
552 } |
|
553 } |
|
554 |
1827
|
555 done: |
1741
|
556 |
3110
|
557 if (! error_state) |
2602
|
558 { |
3110
|
559 if (retval.is_undefined () && all_empty_p) |
|
560 { |
|
561 if (all_strings_p) |
|
562 retval = ""; |
|
563 else |
|
564 retval = Matrix (); |
|
565 } |
|
566 else if (frc_str_conv && ! retval.is_string ()) |
|
567 retval = retval.convert_to_str (); |
2602
|
568 } |
|
569 |
1741
|
570 return retval; |
|
571 } |
|
572 |
|
573 void |
2124
|
574 tree_matrix::accept (tree_walker& tw) |
1741
|
575 { |
2124
|
576 tw.visit_matrix (*this); |
1741
|
577 } |
|
578 |
2172
|
579 static int |
|
580 empty_list_elements_ok (void) |
|
581 { |
|
582 Vempty_list_elements_ok = check_preference ("empty_list_elements_ok"); |
|
583 |
|
584 return 0; |
|
585 } |
|
586 |
2254
|
587 static int |
3110
|
588 implicit_num_to_str_ok (void) |
|
589 { |
|
590 Vimplicit_num_to_str_ok = check_preference ("implicit_num_to_str_ok"); |
|
591 |
|
592 return 0; |
|
593 } |
|
594 |
|
595 static int |
2254
|
596 string_fill_char (void) |
|
597 { |
|
598 int status = 0; |
|
599 |
3523
|
600 std::string s = builtin_string_variable ("string_fill_char"); |
2254
|
601 |
|
602 switch (s.length ()) |
|
603 { |
|
604 case 1: |
|
605 Vstring_fill_char = s[0]; |
|
606 break; |
|
607 |
|
608 case 0: |
|
609 Vstring_fill_char = '\0'; |
|
610 break; |
|
611 |
|
612 default: |
|
613 warning ("string_fill_char must be a single character"); |
|
614 status = -1; |
|
615 break; |
|
616 } |
|
617 |
|
618 return status; |
|
619 } |
|
620 |
2172
|
621 void |
|
622 symbols_of_pt_mat (void) |
|
623 { |
4233
|
624 DEFVAR (empty_list_elements_ok, true, empty_list_elements_ok, |
3321
|
625 "-*- texinfo -*-\n\ |
|
626 @defvr {Built-in Variable} empty_list_elements_ok\n\ |
|
627 This variable controls whether Octave ignores empty matrices in a matrix\n\ |
|
628 list.\n\ |
|
629 \n\ |
|
630 For example, if the value of @code{empty_list_elements_ok} is\n\ |
|
631 nonzero, Octave will ignore the empty matrices in the expression\n\ |
|
632 \n\ |
|
633 @example\n\ |
|
634 a = [1, [], 3, [], 5]\n\ |
|
635 @end example\n\ |
|
636 \n\ |
|
637 @noindent\n\ |
|
638 and the variable @code{a} will be assigned the value @code{[ 1, 3, 5 ]}.\n\ |
|
639 \n\ |
3976
|
640 The default value is 1.\n\ |
3333
|
641 @end defvr"); |
|
642 |
4233
|
643 DEFVAR (implicit_num_to_str_ok, false, implicit_num_to_str_ok, |
3361
|
644 "-*- texinfo -*-\n\ |
|
645 @defvr {Built-in Variable} implicit_num_to_str_ok\n\ |
|
646 If the value of @code{implicit_num_to_str_ok} is nonzero, implicit\n\ |
|
647 conversions of numbers to their ASCII character equivalents are\n\ |
|
648 allowed when strings are constructed using a mixture of strings and\n\ |
|
649 numbers in matrix notation. Otherwise, an error message is printed and\n\ |
|
650 control is returned to the top level. The default value is 0. For\n\ |
|
651 example,\n\ |
|
652 \n\ |
|
653 @example\n\ |
|
654 @group\n\ |
|
655 [ \"f\", 111, 111 ]\n\ |
|
656 @result{} \"foo\"\n\ |
3363
|
657 @end group\n\ |
3361
|
658 @end example\n\ |
3363
|
659 @end defvr"); |
3110
|
660 |
3258
|
661 DEFVAR (string_fill_char, " ", string_fill_char, |
3361
|
662 "-*- texinfo -*-\n\ |
|
663 @defvr {Built-in Variable} string_fill_char\n\ |
|
664 The value of this variable is used to pad all strings in a string matrix\n\ |
|
665 to the same length. It should be a single character. The default value\n\ |
|
666 is @code{\" \"} (a single space). For example,\n\ |
|
667 \n\ |
|
668 @example\n\ |
|
669 @group\n\ |
|
670 string_fill_char = \"X\";\n\ |
|
671 [ \"these\"; \"are\"; \"strings\" ]\n\ |
|
672 @result{} \"theseXX\"\n\ |
|
673 \"areXXXX\"\n\ |
|
674 \"strings\"\n\ |
|
675 @end group\n\ |
|
676 @end example\n\ |
3363
|
677 @end defvr"); |
2172
|
678 } |
|
679 |
1741
|
680 /* |
|
681 ;;; Local Variables: *** |
|
682 ;;; mode: C++ *** |
|
683 ;;; End: *** |
|
684 */ |