Switch to unified view

a/src/smallut.h b/src/smallut.h
1
/* Copyright (C) 2004-2016 J.F.Dockes
1
/* Copyright (C) 2006-2016 J.F.Dockes
2
 *
2
 *   This program is free software; you can redistribute it and/or modify
3
 * This library is free software; you can redistribute it and/or
3
 *   it under the terms of the GNU General Public License as published by
4
 * modify it under the terms of the GNU Lesser General Public
4
 *   the Free Software Foundation; either version 2 of the License, or
5
 * License as published by the Free Software Foundation; either
5
 *   (at your option) any later version.
6
 * version 2.1 of the License, or (at your option) any later version.
6
 *
7
 *
7
 *   This program is distributed in the hope that it will be useful,
8
 * This library is distributed in the hope that it will be useful,
8
 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
9
 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
10
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10
 *   GNU General Public License for more details.
11
 * Lesser General Public License for more details.
11
 *
12
 *
12
 *   You should have received a copy of the GNU General Public License
13
 * You should have received a copy of the GNU Lesser General Public
13
 *   along with this program; if not, write to the
14
 * License along with this library; if not, write to the Free Software
14
 *   Free Software Foundation, Inc.,
15
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
15
 *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
16
 *   02110-1301 USA
16
 */
17
 */
17
#ifndef _SMALLUT_H_INCLUDED_
18
#ifndef _SMALLUT_H_INCLUDED_
18
#define _SMALLUT_H_INCLUDED_
19
#define _SMALLUT_H_INCLUDED_
19
20
20
#include <sys/types.h>
21
#include <sys/types.h>
...
...
63
64
64
extern void stringtolower(std::string& io);
65
extern void stringtolower(std::string& io);
65
extern std::string stringtolower(const std::string& io);
66
extern std::string stringtolower(const std::string& io);
66
extern void stringtoupper(std::string& io);
67
extern void stringtoupper(std::string& io);
67
extern std::string stringtoupper(const std::string& io);
68
extern std::string stringtoupper(const std::string& io);
69
extern bool beginswith(const std::string& big, const std::string& small);
68
70
69
// Is one string the end part of the other ?
71
// Is one string the end part of the other ?
70
extern int stringisuffcmp(const std::string& s1, const std::string& s2);
72
extern int stringisuffcmp(const std::string& s1, const std::string& s2);
71
73
72
// Divine language from locale
74
// Divine language from locale