NCBI C++ ToolKit
version.cpp File Reference
#include <ncbi_pch.hpp>
#include <corelib/version.hpp>
#include <common/ncbi_package_ver.h>
#include <common/ncbi_source_ver.h>
#include <utility>
#include <algorithm>
+ Include dependency graph for version.cpp:

Go to the source code of this file.

Go to the SVN repository for this file.


static void s_ConvertVersionInfo (CVersionInfo *vi, const char *str)
bool IsBetterVersion (const CVersionInfo &info, const CVersionInfo &cinfo, int &best_major, int &best_minor, int &best_patch_level)
 Return true if one version info is matches another better than the best variant. More...
void ParseVersionString (const string &vstr, string *program_name, CVersionInfo *ver)
 Parse string, extract version info and program name (case insensitive) More...

Function Documentation

◆ s_ConvertVersionInfo()

static void s_ConvertVersionInfo ( CVersionInfo vi,
const char *  str 

Definition at line 73 of file version.cpp.

References isdigit(), NCBI_THROW2, CVersionInfo::SetVersion(), and str().

Referenced by CVersionInfo::FromStr().

Modified on Wed Feb 21 09:56:45 2024 by rev. 669887