-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathutils.hpp
40 lines (36 loc) · 1.64 KB
/
utils.hpp
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
37
38
39
40
// SPDX-License-Identifier: GPL-3.0-only
/**
* @file utils.hpp
*
* @copyright Copyright (C) 2021-2024 srcML, LLC. (www.srcML.org)
*
* This file is part of the Stereocode application.
*/
#ifndef UTILS_HPP
#define UTILS_HPP
#include <algorithm>
#include <regex>
#include <sstream>
#include <iostream>
#include <string>
#include <string_view>
#include <unordered_map>
#include <map>
#include <cstddef>
#include "PrimitiveTypes.hpp"
#include "TypeModifiers.hpp"
#include "variable.hpp"
bool isNonPrimitiveType (const std::string& type, variable&,
const std::string& unitLanguage, const std::string& className);
bool isPrimitiveType (const std::string&, const std::string& unitLanguage);
bool matchSubstring (const std::string&, const std::string&);
void createSpecifierList ();
void removeTypeModifiers (std::string&, std::string);
void trimWhitespace (std::string&);
void Ltrim (std::string&);
void Rtrim (std::string&);
void removeNamespace (std::string&, bool, std::string_view);
void WStoBlank (std::string&);
void removeBetweenComma (std::string& s, bool);
void srcmlBackwardCompatibility (std::string&);
#endif