tlx
contains.hpp
Go to the documentation of this file.
1 /*******************************************************************************
2  * tlx/string/contains.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_CONTAINS_HEADER
12 #define TLX_STRING_CONTAINS_HEADER
13 
14 #include <string>
15 
16 namespace tlx {
17 
18 //! \addtogroup tlx_string
19 //! \{
20 
21 /******************************************************************************/
22 // contains()
23 
24 //! Tests of string contains pattern
25 bool contains(const std::string& str, const std::string& pattern);
26 
27 //! Tests of string contains pattern
28 bool contains(const std::string& str, const char* pattern);
29 
30 //! Tests of string contains character
31 bool contains(const std::string& str, const char ch);
32 
33 //! \}
34 
35 } // namespace tlx
36 
37 #endif // !TLX_STRING_CONTAINS_HEADER
38 
39 /******************************************************************************/
bool contains(const std::string &str, const std::string &pattern)
Tests of string contains pattern.
Definition: contains.cpp:15