Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 9 additions & 9 deletions include/Functions.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<char*>(input), replace.c_str(), by.c_str());
if (output != NULL) {
Expand All @@ -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);
Expand All @@ -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<std::string> TextSplit(const std::string& text, char delimiter) {
RLCPPAPI std::vector<std::string> TextSplit(const std::string& text, char delimiter) {
int count;
const char** split = ::TextSplit(text.c_str(), delimiter, &count);
return std::vector<std::string>(split, split + count);
Expand All @@ -341,35 +341,35 @@ RLAPI inline std::vector<std::string> 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());
}

Expand Down