|
OpenXLSX 1.12.1
Modern C++ Excel Library (Fork of OpenXLSX by Kenneth Troldal Balslev)
|
#include <charconv>#include <fmt/format.h>#include <string>#include <string_view>#include "XLDocument.hpp"#include "XLException.hpp"Functions | |
| bool | getAppVersion (std::string_view versionString, int &majorVersion, int &minorVersion) |
| extract an integer major version v1 and minor version v2 from a string | |
| bool getAppVersion | ( | std::string_view | versionString, |
| int & | majorVersion, | ||
| int & | minorVersion ) |
extract an integer major version v1 and minor version v2 from a string
Extracts integer major and minor versions from a string, ensuring the formatting strictly complies with the OOXML AppVersion schema requirements. [0-9]{1,2}.[0-9]{1,4} (Example: 14.123)
| versionString | the string to process |
| majorVersion | by reference: store the major version here |
| minorVersion | by reference: store the minor version here |