Thrill  0.1
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
ends_with.hpp
Go to the documentation of this file.
1 /*******************************************************************************
2  * tlx/string/ends_with.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_ENDS_WITH_HEADER
12 #define TLX_STRING_ENDS_WITH_HEADER
13 
14 #include <string>
15 
16 namespace tlx {
17 
18 //! \addtogroup tlx_string
19 //! \{
20 
21 /******************************************************************************/
22 // ends_with()
23 
24 /*!
25  * Checks if the given match string is located at the end of this string.
26  */
27 bool ends_with(const std::string& str, const std::string& match);
28 
29 /*!
30  * Checks if the given match string is located at the end of this string.
31  */
32 bool ends_with(const std::string& str, const char* match);
33 
34 /******************************************************************************/
35 // ends_with_icase()
36 
37 /*!
38  * Checks if the given match string is located at the end of this
39  * string. Compares the characters case-insensitively.
40  */
41 bool ends_with_icase(const std::string& str, const std::string& match);
42 
43 /*!
44  * Checks if the given match string is located at the end of this
45  * string. Compares the characters case-insensitively.
46  */
47 bool ends_with_icase(const std::string& str, const char* match);
48 
49 //! \}
50 
51 } // namespace tlx
52 
53 #endif // !TLX_STRING_ENDS_WITH_HEADER
54 
55 /******************************************************************************/
bool ends_with_icase(const std::string &str, const std::string &match)
Checks if the given match string is located at the end of this string.
Definition: ends_with.cpp:44
std::basic_string< char, std::char_traits< char >, Allocator< char > > string
string with Manager tracking
Definition: allocator.hpp:220
bool ends_with(const std::string &str, const std::string &match)
Checks if the given match string is located at the end of this string.
Definition: ends_with.cpp:20