tlx
compare_icase.hpp
Go to the documentation of this file.
1/*******************************************************************************
2 * tlx/string/compare_icase.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_COMPARE_ICASE_HEADER
12#define TLX_STRING_COMPARE_ICASE_HEADER
13
14#include <string>
15
16namespace tlx {
17
18//! \addtogroup tlx_string
19//! \{
20
21/******************************************************************************/
22// compare_icase()
23
24//! returns +1/0/-1 like strcmp(a, b) but without regard for letter case
25int compare_icase(const char* a, const char* b);
26
27//! returns +1/0/-1 like strcmp(a, b) but without regard for letter case
28int compare_icase(const char* a, const std::string& b);
29
30//! returns +1/0/-1 like strcmp(a, b) but without regard for letter case
31int compare_icase(const std::string& a, const char* b);
32
33//! returns +1/0/-1 like strcmp(a, b) but without regard for letter case
34int compare_icase(const std::string& a, const std::string& b);
35
36//! \}
37
38} // namespace tlx
39
40#endif // !TLX_STRING_COMPARE_ICASE_HEADER
41
42/******************************************************************************/
int compare_icase(const char *a, const char *b)
returns +1/0/-1 like strcmp(a, b) but without regard for letter case