Skip to content

Commit c3061ca

Browse files
committed
Add TextToSnake and TextToCamel wrappers
1 parent a12c468 commit c3061ca

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

‎include/Functions.hpp‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,20 @@ TextReplace(const std::string& text, const std::string& replace, const std::stri
420420
return ::TextToPascal(text.c_str());
421421
}
422422

423+
/**
424+
* Get Snake case notation version of provided string
425+
*/
426+
[[maybe_unused]] RLCPPAPI inline std::string TextToSnake(const std::string& text) {
427+
return ::TextToSnake(text.c_str());
428+
}
429+
430+
/**
431+
* Get Camel case notation version of provided string
432+
*/
433+
[[maybe_unused]] RLCPPAPI inline std::string TextToCamel(const std::string& text) {
434+
return ::TextToCamel(text.c_str());
435+
}
436+
423437
/**
424438
* Get integer value from text (negative values not supported)
425439
*/

0 commit comments

Comments
 (0)