Thrill  0.1
to_upper.hpp
Go to the documentation of this file.
1 /*******************************************************************************
2  * tlx/string/to_upper.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_UPPER_HEADER
12 #define TLX_STRING_TO_UPPER_HEADER
13 
14 #include <string>
15 
16 namespace tlx {
17 
18 //! \addtogroup tlx_string
19 //! \{
20 
21 //! Transform the given character to upper case without any localization.
22 char to_upper(char ch);
23 
24 /*!
25  * Transforms the given string to uppercase 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 uppercase.
34  *
35  * \param str string to process
36  * \return new string uppercased
37  */
38 std::string to_upper(const std::string& str);
39 
40 //! \}
41 
42 } // namespace tlx
43 
44 #endif // !TLX_STRING_TO_UPPER_HEADER
45 
46 /******************************************************************************/
std::basic_string< char, std::char_traits< char >, Allocator< char > > string
string with Manager tracking
Definition: allocator.hpp:220
char to_upper(char ch)
Transform the given character to upper case without any localization.
Definition: to_upper.cpp:17