tlx
Loading...
Searching...
No Matches
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 <tb@panthema.net>
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
16namespace tlx {
17
18//! \addtogroup tlx_string
19//! \{
20
21//! Transform the given character to upper case without any localization.
22char 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 */
30std::string& to_upper(std::string* str);
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 */
38std::string to_upper(const std::string& str);
39
40//! \}
41
42} // namespace tlx
43
44#endif // !TLX_STRING_TO_UPPER_HEADER
45
46/******************************************************************************/
char to_upper(char ch)
Transform the given character to upper case without any localization.
Definition: to_upper.cpp:17