To lowercase conversion. const std::string &str: The string which should be converted. */
| 40 | const std::string &str: The string which should be converted. |
| 41 | */ |
| 42 | std::string StringUtils::toLowerCase(const std::string &str) { |
| 43 | std::string lower; |
| 44 | transform(str.begin(), str.end(), std::back_inserter(lower), tolower); // Transform the string to lowercase. |
| 45 | |
| 46 | return lower; |
| 47 | } |
| 48 | |
| 49 | /* |
| 50 | Fetch strings from a vector and return it as a single string. |