14#include <lagrange/api.h>
17#include <lagrange/utils/warnoff.h>
18#include <spdlog/fmt/fmt.h>
19#include <lagrange/utils/warnon.h>
42LA_CORE_API std::vector<std::string>
string_split(
const std::string& str,
char delimiter);
54LA_CORE_API
bool starts_with(std::string_view str, std::string_view prefix);
66LA_CORE_API
bool ends_with(std::string_view str, std::string_view suffix);
77LA_CORE_API std::string
to_lower(std::string str);
88LA_CORE_API std::string
to_upper(std::string str);
102template <
typename...
Args>
106 #if FMT_VERSION >= 90100
107 return fmt::format(fmt::runtime(format), std::forward<Args>(args)...);
109 return fmt::format(format, std::forward<Args>(args)...);
LA_CORE_API std::string to_lower(std::string str)
Convert a string to lowercase.
Definition: strings.cpp:43
std::string string_format(fmt::format_string< Args... > format, Args &&... args)
Format args according to the format string fmt, and return the result as a string.
Definition: strings.h:103
LA_CORE_API std::string to_upper(std::string str)
Convert a string to uppercase.
Definition: strings.cpp:51
LA_CORE_API bool ends_with(std::string_view str, std::string_view suffix)
Checks if the string ends with the given suffix.
Definition: strings.cpp:31
LA_CORE_API std::vector< std::string > string_split(const std::string &str, char delimiter)
Split a std::string using a prescribed delimiter.
Definition: strings.cpp:20
LA_CORE_API bool starts_with(std::string_view str, std::string_view prefix)
Checks if the string begins with the given prefix.
Definition: strings.cpp:38
Main namespace for Lagrange.
Definition: AABBIGL.h:30
Definition: project.cpp:27