mirror of
https://codeberg.org/DawnMagnet/reflect-cpp
synced 2026-12-07 03:06:18 +08:00
Feature/shared exports msvc (#525)
This commit is contained in:
@@ -4,25 +4,27 @@
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
#include "../../common.hpp"
|
||||
|
||||
namespace rfl::internal::strings {
|
||||
|
||||
/// Joins a series of strings.
|
||||
std::string join(const std::string& _delimiter,
|
||||
RFL_API std::string join(const std::string& _delimiter,
|
||||
const std::vector<std::string>& _strings);
|
||||
|
||||
/// Replace all occurences of _from with _to.
|
||||
std::string replace_all(const std::string& _str, const std::string& _from,
|
||||
RFL_API std::string replace_all(const std::string& _str, const std::string& _from,
|
||||
const std::string& _to);
|
||||
|
||||
/// Splits _str along _delimiter.
|
||||
std::vector<std::string> split(const std::string& _str,
|
||||
RFL_API std::vector<std::string> split(const std::string& _str,
|
||||
const std::string& _delimiter);
|
||||
|
||||
/// Transforms the string to camel case.
|
||||
std::string to_camel_case(const std::string& _str);
|
||||
RFL_API std::string to_camel_case(const std::string& _str);
|
||||
|
||||
/// Transforms the string to pascal case.
|
||||
std::string to_pascal_case(const std::string& _str);
|
||||
RFL_API std::string to_pascal_case(const std::string& _str);
|
||||
|
||||
} // namespace rfl::internal::strings
|
||||
|
||||
|
||||
Reference in New Issue
Block a user