|
5 | 5 |
|
6 | 6 | #pragma once
|
7 | 7 |
|
8 |
| -#include <shared_mutex> |
9 |
| - |
10 | 8 | #include "antlr4-common.h"
|
11 | 9 |
|
12 | 10 | namespace antlrcpp {
|
13 | 11 |
|
14 |
| - std::string join(const std::vector<std::string> &strings, const std::string &separator); |
15 |
| - std::map<std::string, size_t> toMap(const std::vector<std::string> &keys); |
16 |
| - std::string escapeWhitespace(std::string str, bool escapeSpaces); |
17 |
| - std::string toHexString(const int t); |
18 |
| - std::string arrayToString(const std::vector<std::string> &data); |
19 |
| - std::string replaceString(const std::string &s, const std::string &from, const std::string &to); |
20 |
| - std::vector<std::string> split(const std::string &s, const std::string &sep, int count); |
21 |
| - std::string indent(const std::string &s, const std::string &indentation, bool includingFirst = true); |
| 12 | + ANTLR4CPP_PUBLIC std::string join(const std::vector<std::string> &strings, const std::string &separator); |
| 13 | + ANTLR4CPP_PUBLIC std::map<std::string, size_t> toMap(const std::vector<std::string> &keys); |
| 14 | + ANTLR4CPP_PUBLIC std::string escapeWhitespace(std::string str, bool escapeSpaces); |
| 15 | + ANTLR4CPP_PUBLIC std::string toHexString(const int t); |
| 16 | + ANTLR4CPP_PUBLIC std::string arrayToString(const std::vector<std::string> &data); |
| 17 | + ANTLR4CPP_PUBLIC std::string replaceString(const std::string &s, const std::string &from, const std::string &to); |
| 18 | + ANTLR4CPP_PUBLIC std::vector<std::string> split(const std::string &s, const std::string &sep, int count); |
| 19 | + ANTLR4CPP_PUBLIC std::string indent(const std::string &s, const std::string &indentation, bool includingFirst = true); |
22 | 20 |
|
23 | 21 | // Using RAII + a lambda to implement a "finally" replacement.
|
24 | 22 | template <typename OnEnd>
|
@@ -62,6 +60,6 @@ namespace antlrcpp {
|
62 | 60 | }
|
63 | 61 |
|
64 | 62 | // Get the error text from an exception pointer or the current exception.
|
65 |
| - std::string what(std::exception_ptr eptr = std::current_exception()); |
| 63 | + ANTLR4CPP_PUBLIC std::string what(std::exception_ptr eptr = std::current_exception()); |
66 | 64 |
|
67 | 65 | } // namespace antlrcpp
|
0 commit comments