Login Languish
Functions
string_utils.h File Reference

handles string-related tasks More...

#include <string>
Include dependency graph for string_utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

std::string string_utils::toTitleCase (std::string str)
 title case string converter More...
 
std::string string_utils::toLowerCase (std::string str)
 lowercase string converter More...
 

Detailed Description

handles string-related tasks

Author
Cameron Bruce

Function Documentation

◆ toLowerCase()

std::string string_utils::toLowerCase ( std::string  str)

lowercase string converter

converts any string to lowercase

Parameters
strstring to be converted
Returns
the converted lowercase string

◆ toTitleCase()

std::string string_utils::toTitleCase ( std::string  str)

title case string converter

converts any string to title case (capitalised first letter)

Parameters
strstring to be converted
Returns
the converted title case string