Cupt
cupt
versionstring.hpp
Go to the documentation of this file.
1
/**************************************************************************
2
* Copyright (C) 2010-2014 by Eugene V. Lyubimkin *
3
* *
4
* This program is free software; you can redistribute it and/or modify *
5
* it under the terms of the GNU General Public License *
6
* (version 3 or above) as published by the Free Software Foundation. *
7
* *
8
* This program is distributed in the hope that it will be useful, *
9
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
10
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
11
* GNU General Public License for more details. *
12
* *
13
* You should have received a copy of the GNU GPL *
14
* along with this program; if not, write to the *
15
* Free Software Foundation, Inc., *
16
* 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA *
17
**************************************************************************/
18
#ifndef CUPT_VERSIONSTRING_SEEN
19
#define CUPT_VERSIONSTRING_SEEN
20
21
#include <
cupt/common.hpp
>
22
#include <cupt/stringrange.hpp>
23
26
namespace
cupt {
27
29
32
bool
CUPT_API
checkVersionString
(
const
string
& versionString,
bool
throwOnError =
true
);
33
35
44
int
CUPT_API
compareVersionStrings
(
const
string
& left,
const
string
& right);
45
47
56
CUPT_API StringRange
getOriginalVersionString
(
const
StringRange& versionString);
57
58
}
59
60
#endif
61
common.hpp
cupt::checkVersionString
bool checkVersionString(const string &versionString, bool throwOnError=true)
checks version string for correctness
cupt::getOriginalVersionString
StringRange getOriginalVersionString(const StringRange &versionString)
gets the original part of possibly Cupt-modified version string
cupt::compareVersionStrings
int compareVersionStrings(const string &left, const string &right)
compares two version strings
Generated by
1.8.17