OpenXLSX 1.9.1
Loading...
Searching...
No Matches
XLStyles_Internal.hpp File Reference
#include <cctype>
#include <string>
#include <string_view>
#include <fmt/format.h>
#include <pugixml.hpp>
#include "XLException.hpp"
#include "XLXmlParser.hpp"

Go to the source code of this file.

Data Structures

struct  OpenXLSX::EnumStringMap< E >
 

Namespaces

namespace  OpenXLSX
 

Functions

void OpenXLSX::copyXMLNode (XMLNode &destination, const XMLNode &source)
 
std::string OpenXLSX::xmlNodeFingerprint (const XMLNode &node)
 Compute a canonical, deterministic string fingerprint of a pugixml subtree.
 
template<typename E , size_t N>
constexpr E OpenXLSX::EnumFromString (std::string_view str, const EnumStringMap< E >(&mapping)[N], E invalidVal)
 
template<typename E , size_t N>
constexpr const char * OpenXLSX::EnumToString (E val, const EnumStringMap< E >(&mapping)[N], const char *invalidStr)
 
std::string OpenXLSX::formatDoubleAsString (double val, int decimalPlaces=2)
 Format val as a string with decimalPlaces.
 
std::string OpenXLSX::checkAndFormatDoubleAsString (double val, double min, double max, double absTolerance, int decimalPlaces=2)
 Check that a double value is within range, and format it as a string with decimalPlaces.