-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhelper.h
More file actions
29 lines (25 loc) · 745 Bytes
/
helper.h
File metadata and controls
29 lines (25 loc) · 745 Bytes
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
/*
* Copyright (c) 2015-2016 SUSE Linux GmbH
*
* Licensed under the GNU General Public License Version 2
* as published by the Free Software Foundation.
*
* See http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
* for details.
*
* Author: Joerg Roedel <jroedel@suse.de>
*/
#ifndef __HELPER_H
#define __HELPER_H
#include <string>
#include <vector>
std::string trim(const std::string &line);
std::string strip_comment(std::string line);
std::vector<std::string> split_trim(const char *delim,
std::string line,
unsigned splits = 0);
bool generated_symbol(std::string symbol);
std::string expand_tab(std::string input);
std::string base_name(std::string fname);
std::string base_fn_name(std::string fn_name);
#endif