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 |
3503
|
26 #include <iostream> |
1755
|
27 #include <string> |
|
28 |
1966
|
29 #include "lo-utils.h" |
|
30 |
3354
|
31 class octave_value; |
2086
|
32 class octave_value_list; |
1755
|
33 class string_vector; |
1
|
34 |
3523
|
35 extern std::string search_path_for_file (const std::string&, const std::string&); |
|
36 extern std::string file_in_path (const std::string&, const std::string&); |
|
37 extern std::string fcn_file_in_path (const std::string&); |
|
38 extern std::string oct_file_in_path (const std::string&); |
607
|
39 |
3350
|
40 extern void jump_to_top_level (void) GCC_ATTR_NORETURN; |
607
|
41 |
3523
|
42 extern int almost_match (const std::string& std, const std::string& s, |
287
|
43 int min_match_len = 1, int case_sens = 1); |
607
|
44 |
1755
|
45 extern int |
3072
|
46 keyword_almost_match (const char * const *std, int *min_len, |
3523
|
47 const std::string& s, int min_toks_to_match, |
1755
|
48 int max_toks); |
|
49 |
628
|
50 extern int empty_arg (const char *name, int nr, int nc); |
|
51 |
2042
|
52 extern const char *undo_string_escape (char c); |
|
53 |
3523
|
54 extern std::string do_string_escapes (const std::string& s); |
3103
|
55 |
3523
|
56 extern std::string undo_string_escapes (const std::string& s); |
801
|
57 |
3523
|
58 extern int check_preference (const std::string& var); |
2204
|
59 |
3354
|
60 extern void |
|
61 get_dimensions (const octave_value& a, const octave_value& b, |
|
62 const char *warn_for, int& nr, int& nc); |
|
63 |
|
64 extern void |
|
65 get_dimensions (const octave_value& a, |
|
66 const char *warn_for, int& nr, int& nc); |
|
67 |
3308
|
68 extern "C" void octave_usleep (unsigned int useconds); |
|
69 |
3350
|
70 extern "C" int octave_strcasecmp (const char *s1, const char *s2); |
|
71 |
|
72 extern "C" int octave_strncasecmp (const char *s1, const char *s2, size_t n); |
|
73 |
1
|
74 #endif |
|
75 |
|
76 /* |
|
77 ;;; Local Variables: *** |
|
78 ;;; mode: C++ *** |
|
79 ;;; End: *** |
|
80 */ |