diff --git a/DDCore/include/XML/XMLElements.h b/DDCore/include/XML/XMLElements.h index e9f38bf15e7cc2fca59e96a91a4d554ef27d6ec3..c2a642fe5562a8a8bc9e88cdc213b3250eccd41c 100644 --- a/DDCore/include/XML/XMLElements.h +++ b/DDCore/include/XML/XMLElements.h @@ -97,21 +97,21 @@ namespace DD4hep { std::string _toString(const char* s); /// Do-nothing version. Present for completeness and argument interchangeability \ingroup DD4HEP_XML std::string _toString(const std::string& s); - /// Format unsigned long integer to string with atrbitrary format \ingroup DD4HEP_XML + /// Format unsigned long integer to string with arbitrary format \ingroup DD4HEP_XML std::string _toString(unsigned long i, const char* fmt = "%ul"); - /// Format unsigned integer (32 bits) to string with atrbitrary format \ingroup DD4HEP_XML + /// Format unsigned integer (32 bits) to string with arbitrary format \ingroup DD4HEP_XML std::string _toString(unsigned int i, const char* fmt = "%u"); - /// Format signed integer (32 bits) to string with atrbitrary format \ingroup DD4HEP_XML + /// Format signed integer (32 bits) to string with arbitrary format \ingroup DD4HEP_XML std::string _toString(int i, const char* fmt = "%d"); - /// Format signed long integer to string with atrbitrary format \ingroup DD4HEP_XML + /// Format signed long integer to string with arbitrary format \ingroup DD4HEP_XML std::string _toString(long i, const char* fmt = "%fd"); - /// Format single procision float number (32 bits) to string with atrbitrary format \ingroup DD4HEP_XML + /// Format single procision float number (32 bits) to string with arbitrary format \ingroup DD4HEP_XML std::string _toString(float d, const char* fmt = "%30.30f"); - /// Format double procision float number (64 bits) to string with atrbitrary format \ingroup DD4HEP_XML + /// Format double procision float number (64 bits) to string with arbitrary format \ingroup DD4HEP_XML std::string _toString(double d, const char* fmt = "%30.30f"); - /// Format void pointer (64 bits) to string with atrbitrary format \ingroup DD4HEP_XML + /// Format void pointer (64 bits) to string with arbitrary format \ingroup DD4HEP_XML std::string _ptrToString(const void* p, const char* fmt = "%p"); - /// Format void pointer (64 bits) to string with atrbitrary format \ingroup DD4HEP_XML + /// Format void pointer (64 bits) to string with arbitrary format \ingroup DD4HEP_XML template <typename T> std::string _toString(const T* p, const char* fmt = "%p") { return _ptrToString((void*)p,fmt); } diff --git a/DDCore/src/XML/XMLElements.cpp b/DDCore/src/XML/XMLElements.cpp index c9b75f4e3015dd8fda5bbbaab0d344ff80b71d22..261a12535da413ec2999a0f3ba44fc2aea33e2a1 100644 --- a/DDCore/src/XML/XMLElements.cpp +++ b/DDCore/src/XML/XMLElements.cpp @@ -211,37 +211,37 @@ std::string DD4hep::XML::_toString(const std::string& s) { return _checkEnviron(s); } -/// Format unsigned long integer to string with atrbitrary format +/// Format unsigned long integer to string with arbitrary format string DD4hep::XML::_toString(unsigned long v, const char* fmt) { return __to_string(v, fmt); } -/// Format unsigned integer (32 bits) to string with atrbitrary format +/// Format unsigned integer (32 bits) to string with arbitrary format string DD4hep::XML::_toString(unsigned int v, const char* fmt) { return __to_string(v, fmt); } -/// Format signed integer (32 bits) to string with atrbitrary format +/// Format signed integer (32 bits) to string with arbitrary format string DD4hep::XML::_toString(int v, const char* fmt) { return __to_string(v, fmt); } -/// Format signed long integer to string with atrbitrary format +/// Format signed long integer to string with arbitrary format string DD4hep::XML::_toString(long v, const char* fmt) { return __to_string(v, fmt); } -/// Format single procision float number (32 bits) to string with atrbitrary format +/// Format single procision float number (32 bits) to string with arbitrary format string DD4hep::XML::_toString(float v, const char* fmt) { return __to_string(v, fmt); } -/// Format double procision float number (64 bits) to string with atrbitrary format +/// Format double procision float number (64 bits) to string with arbitrary format string DD4hep::XML::_toString(double v, const char* fmt) { return __to_string(v, fmt); } -/// Format pointer to string with atrbitrary format +/// Format pointer to string with arbitrary format string DD4hep::XML::_ptrToString(const void* v, const char* fmt) { return __to_string(v, fmt); }