summaryrefslogtreecommitdiff
path: root/synth/util.h
diff options
context:
space:
mode:
Diffstat (limited to 'synth/util.h')
-rw-r--r--synth/util.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/synth/util.h b/synth/util.h
new file mode 100644
index 0000000..e571c7d
--- /dev/null
+++ b/synth/util.h
@@ -0,0 +1,31 @@
+#ifndef __UTIL_H__
+#define __UTIL_H__
+
+#include <string>
+#include "programs.h"
+
+using namespace std;
+
+string IntToStr(int i);
+string IntToStrHex(int i);
+
+bool isnum(string s);
+bool isfloat(string s);
+
+string remove_all_spaces(string s);
+string trim_spaces(string s);
+
+void output_warning(string s);
+void output_note(string s);
+void output_verbose(string s);
+
+bool param_needs_index(parameter_enum p);
+parameter_enum param_to_enum(string param);
+
+string extract_var(string s);
+string extract_val(string s);
+
+string fileext(string f);
+
+
+#endif