20 #include <ripple/basics/contract.h>
21 #include <ripple/beast/core/LexicalCast.h>
22 #include <ripple/beast/core/SemanticVersion.h>
23 #include <ripple/protocol/BuildInfo.h>
24 #include <boost/preprocessor/stringize.hpp>
39 #if defined(DEBUG) || defined(SANITIZER)
49 BOOST_PP_STRINGIZE(SANITIZER)
108 auto parsePreRelease =
116 if (prefix != identifier.
substr(0, prefix.length()))
122 identifier.
substr(prefix.length()))))
131 x = parsePreRelease(
id,
"rc", 0x80, 0, 63);
134 x = parsePreRelease(
id,
"b", 0x40, 0, 63);
std::uint64_t getEncodedVersion()
Returns the server version packed in a 64-bit integer.
std::string print() const
Produce a string from semantic version components.
bool isPreRelease() const noexcept
A Semantic Version number.
identifier_list preReleaseIdentifiers
std::string const & getVersionString()
Server version.
std::string const & getFullVersionString()
Full server version string.
Use hash_* containers for keys that do not need a cryptographically secure hashing algorithm.
bool parse(std::string const &input)
Parse a semantic version string.
char const *const versionString
bool lexicalCastChecked(Out &out, In in)
Intelligently convert from one type to another.
void LogicError(std::string const &how) noexcept
Called when faulty logic causes a broken invariant.