1
|
1 /* |
|
2 |
2847
|
3 Copyright (C) 1996, 1997 John W. Eaton |
1
|
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 |
1315
|
19 Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
1
|
20 |
|
21 */ |
|
22 |
383
|
23 #if !defined (octave_utils_h) |
|
24 #define octave_utils_h 1 |
1
|
25 |
|
26 class istream; |
|
27 class ostrstream; |
1738
|
28 |
1755
|
29 #include <string> |
|
30 |
1966
|
31 #include "lo-utils.h" |
|
32 |
2086
|
33 class octave_value_list; |
1755
|
34 class string_vector; |
1
|
35 |
1755
|
36 extern string search_path_for_file (const string&, const string&); |
|
37 extern string file_in_path (const string&, const string&); |
|
38 extern string fcn_file_in_path (const string&); |
|
39 extern string oct_file_in_path (const string&); |
607
|
40 |
2440
|
41 extern "C" void jump_to_top_level (void) GCC_ATTR_NORETURN; |
607
|
42 |
1755
|
43 extern int almost_match (const string& std, const string& s, |
287
|
44 int min_match_len = 1, int case_sens = 1); |
607
|
45 |
1755
|
46 extern int |
|
47 keyword_almost_match (const char **std, int *min_len, |
|
48 const string& s, int min_toks_to_match, |
|
49 int max_toks); |
|
50 |
628
|
51 extern int empty_arg (const char *name, int nr, int nc); |
|
52 |
2042
|
53 extern const char *undo_string_escape (char c); |
|
54 |
1755
|
55 extern string undo_string_escapes (const string& s); |
801
|
56 |
2204
|
57 extern int check_preference (const string& var); |
|
58 |
1
|
59 #endif |
|
60 |
|
61 /* |
|
62 ;;; Local Variables: *** |
|
63 ;;; mode: C++ *** |
|
64 ;;; End: *** |
|
65 */ |