-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathstringreg.h
More file actions
36 lines (28 loc) · 728 Bytes
/
stringreg.h
File metadata and controls
36 lines (28 loc) · 728 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
30
31
32
33
34
35
36
/**
* @file stringreg.h
* @brief String regularization
*/
#ifndef __STRINGREG_H_LOADED__
#define __STRINGREG_H_LOADED__
#include <string>
namespace cab {
/**
* @brief convert the end of line convention to only newline
*/
std::string translateeol(const std::string &str);
std::string removeSpaceBeforeTags(const std::string &str);
/**
* @brief if there are overflow lines that wrapped
* try to fix them
*/
std::string fixWrappedLines(const std::string &str);
/**
* @brief remove any X-QSO: tag lines
*/
std::string removeXQSOLines(const std::string &str);
/**
* @brief trim leading and trailing whitespace from string
*/
std::string trim(const std::string &str);
}
#endif /* __STRINGREG_H_LOADED__ */