summaryrefslogtreecommitdiff
path: root/note_compiler/util.h
blob: e571c7d52004be69433be0e9e034cea30d9e0cdb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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