Skip to content

Commit f45361d

Browse files
authored
Merge pull request #284 from RobLoach/functions-rlcppapi
Replace RLAPI macros in Functions.hpp
2 parents d8b7c44 + 7121117 commit f45361d

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

include/Functions.hpp

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -298,14 +298,14 @@ RLCPPAPI inline unsigned int TextLength(const std::string& text) {
298298
/**
299299
* Get text length, checks for '\0' ending
300300
*/
301-
RLAPI inline std::string TextSubtext(const std::string& text, int position, int length) {
301+
RLCPPAPI inline std::string TextSubtext(const std::string& text, int position, int length) {
302302
return ::TextSubtext(text.c_str(), position, length);
303303
}
304304

305305
/**
306306
* Replace text string
307307
*/
308-
RLAPI inline std::string TextReplace(const std::string& text, const std::string& replace, const std::string& by) {
308+
RLCPPAPI std::string TextReplace(const std::string& text, const std::string& replace, const std::string& by) {
309309
const char* input = text.c_str();
310310
char* output = ::TextReplace(const_cast<char*>(input), replace.c_str(), by.c_str());
311311
if (output != NULL) {
@@ -319,7 +319,7 @@ RLAPI inline std::string TextReplace(const std::string& text, const std::string&
319319
/**
320320
* Insert text in a position
321321
*/
322-
RLAPI inline std::string TextInsert(const std::string& text, const std::string& insert, int position) {
322+
RLCPPAPI std::string TextInsert(const std::string& text, const std::string& insert, int position) {
323323
char* output = ::TextInsert(text.c_str(), insert.c_str(), position);
324324
if (output != NULL) {
325325
std::string stringOutput(output);
@@ -332,7 +332,7 @@ RLAPI inline std::string TextInsert(const std::string& text, const std::string&
332332
/**
333333
* Split text into multiple strings
334334
*/
335-
RLAPI inline std::vector<std::string> TextSplit(const std::string& text, char delimiter) {
335+
RLCPPAPI std::vector<std::string> TextSplit(const std::string& text, char delimiter) {
336336
int count;
337337
const char** split = ::TextSplit(text.c_str(), delimiter, &count);
338338
return std::vector<std::string>(split, split + count);
@@ -341,35 +341,35 @@ RLAPI inline std::vector<std::string> TextSplit(const std::string& text, char de
341341
/**
342342
* Find first text occurrence within a string
343343
*/
344-
RLAPI inline int TextFindIndex(const std::string& text, const std::string& find) {
344+
RLCPPAPI inline int TextFindIndex(const std::string& text, const std::string& find) {
345345
return ::TextFindIndex(text.c_str(), find.c_str());
346346
}
347347

348348
/**
349349
* Get upper case version of provided string
350350
*/
351-
RLAPI inline std::string TextToUpper(const std::string& text) {
351+
RLCPPAPI inline std::string TextToUpper(const std::string& text) {
352352
return ::TextToUpper(text.c_str());
353353
}
354354

355355
/**
356356
* Get lower case version of provided string
357357
*/
358-
RLAPI inline std::string TextToLower(const std::string& text) {
358+
RLCPPAPI inline std::string TextToLower(const std::string& text) {
359359
return ::TextToLower(text.c_str());
360360
}
361361

362362
/**
363363
* Get Pascal case notation version of provided string
364364
*/
365-
RLAPI inline std::string TextToPascal(const std::string& text) {
365+
RLCPPAPI inline std::string TextToPascal(const std::string& text) {
366366
return ::TextToPascal(text.c_str());
367367
}
368368

369369
/**
370370
* Get integer value from text (negative values not supported)
371371
*/
372-
RLAPI inline int TextToInteger(const std::string& text) {
372+
RLCPPAPI inline int TextToInteger(const std::string& text) {
373373
return ::TextToInteger(text.c_str());
374374
}
375375

0 commit comments

Comments
 (0)