Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
to_lower.hpp
Go to the documentation of this file.
1 /*******************************************************************************
2  * tlx/string/to_lower.hpp
3  *
4  * Part of tlx - http://panthema.net/tlx
5  *
6  * Copyright (C) 2007-2017 Timo Bingmann <[email protected]>
7  *
8  * All rights reserved. Published under the Boost Software License, Version 1.0
9  ******************************************************************************/
10 
11 #ifndef TLX_STRING_TO_LOWER_HEADER
12 #define TLX_STRING_TO_LOWER_HEADER
13 
14 #include <string>
15 
16 namespace tlx {
17 
18 //! \addtogroup tlx_string
19 //! \{
20 
21 //! Transform the given character to lower case without any localization.
22 char to_lower(char ch);
23 
24 /*!
25  * Transforms the given string to lowercase and returns a reference to it.
26  *
27  * \param str string to process
28  * \return reference to the modified string
29  */
31 
32 /*!
33  * Returns a copy of the given string converted to lowercase.
34  *
35  * \param str string to process
36  * \return new string lowercased
37  */
38 std::string to_lower(const std::string& str);
39 
40 //! \}
41 
42 } // namespace tlx
43 
44 #endif // !TLX_STRING_TO_LOWER_HEADER
45 
46 /******************************************************************************/
char to_lower(char ch)
Transform the given character to lower case without any localization.
Definition: to_lower.cpp:17
std::basic_string< char, std::char_traits< char >, Allocator< char > > string
string with Manager tracking
Definition: allocator.hpp:220