From 71211177b4045295c84cc35e28e38d84db2a8ac9 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Sat, 10 Feb 2024 23:15:48 -0500 Subject: [PATCH] Replace RLAPI with RLCPPAPI macros --- include/Functions.hpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/include/Functions.hpp b/include/Functions.hpp index ac309d97..201066d3 100644 --- a/include/Functions.hpp +++ b/include/Functions.hpp @@ -298,14 +298,14 @@ RLCPPAPI inline unsigned int TextLength(const std::string& text) { /** * Get text length, checks for '\0' ending */ -RLAPI inline std::string TextSubtext(const std::string& text, int position, int length) { +RLCPPAPI inline std::string TextSubtext(const std::string& text, int position, int length) { return ::TextSubtext(text.c_str(), position, length); } /** * Replace text string */ -RLAPI inline std::string TextReplace(const std::string& text, const std::string& replace, const std::string& by) { +RLCPPAPI std::string TextReplace(const std::string& text, const std::string& replace, const std::string& by) { const char* input = text.c_str(); char* output = ::TextReplace(const_cast(input), replace.c_str(), by.c_str()); if (output != NULL) { @@ -319,7 +319,7 @@ RLAPI inline std::string TextReplace(const std::string& text, const std::string& /** * Insert text in a position */ -RLAPI inline std::string TextInsert(const std::string& text, const std::string& insert, int position) { +RLCPPAPI std::string TextInsert(const std::string& text, const std::string& insert, int position) { char* output = ::TextInsert(text.c_str(), insert.c_str(), position); if (output != NULL) { std::string stringOutput(output); @@ -332,7 +332,7 @@ RLAPI inline std::string TextInsert(const std::string& text, const std::string& /** * Split text into multiple strings */ -RLAPI inline std::vector TextSplit(const std::string& text, char delimiter) { +RLCPPAPI std::vector TextSplit(const std::string& text, char delimiter) { int count; const char** split = ::TextSplit(text.c_str(), delimiter, &count); return std::vector(split, split + count); @@ -341,35 +341,35 @@ RLAPI inline std::vector TextSplit(const std::string& text, char de /** * Find first text occurrence within a string */ -RLAPI inline int TextFindIndex(const std::string& text, const std::string& find) { +RLCPPAPI inline int TextFindIndex(const std::string& text, const std::string& find) { return ::TextFindIndex(text.c_str(), find.c_str()); } /** * Get upper case version of provided string */ -RLAPI inline std::string TextToUpper(const std::string& text) { +RLCPPAPI inline std::string TextToUpper(const std::string& text) { return ::TextToUpper(text.c_str()); } /** * Get lower case version of provided string */ -RLAPI inline std::string TextToLower(const std::string& text) { +RLCPPAPI inline std::string TextToLower(const std::string& text) { return ::TextToLower(text.c_str()); } /** * Get Pascal case notation version of provided string */ -RLAPI inline std::string TextToPascal(const std::string& text) { +RLCPPAPI inline std::string TextToPascal(const std::string& text) { return ::TextToPascal(text.c_str()); } /** * Get integer value from text (negative values not supported) */ -RLAPI inline int TextToInteger(const std::string& text) { +RLCPPAPI inline int TextToInteger(const std::string& text) { return ::TextToInteger(text.c_str()); }