diff options
Diffstat (limited to 'Swiften/Base/String.h')
-rw-r--r-- | Swiften/Base/String.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/Swiften/Base/String.h b/Swiften/Base/String.h index db6c28b..26cc3f4 100644 --- a/Swiften/Base/String.h +++ b/Swiften/Base/String.h @@ -10,15 +10,17 @@ #include <vector> #include <sstream> +#include <Swiften/Base/API.h> + #define SWIFTEN_STRING_TO_CFSTRING(a) \ CFStringCreateWithBytes(NULL, reinterpret_cast<const UInt8*>(a.c_str()), a.size(), kCFStringEncodingUTF8, false) namespace Swift { namespace String { - std::vector<unsigned int> getUnicodeCodePoints(const std::string&); - std::pair<std::string, std::string> getSplittedAtFirst(const std::string&, char c); - std::vector<std::string> split(const std::string&, char c); - void replaceAll(std::string&, char c, const std::string& s); + SWIFTEN_API std::vector<unsigned int> getUnicodeCodePoints(const std::string&); + SWIFTEN_API std::pair<std::string, std::string> getSplittedAtFirst(const std::string&, char c); + SWIFTEN_API std::vector<std::string> split(const std::string&, char c); + SWIFTEN_API void replaceAll(std::string&, char c, const std::string& s); inline bool beginsWith(const std::string& s, char c) { return s.size() > 0 && s[0] == c; @@ -29,7 +31,7 @@ namespace Swift { } }; - class makeString { + class SWIFTEN_API makeString { public: template <typename T> makeString& operator<<(T const& v) { stream << v; |