10 #include "GaudiKernel/MsgStream.h"
14 #include <string_view>
65 log << MSG::WARNING <<
"line " << std::setw(4) <<
m_line <<
" -|" <<
m_data.c_str() <<
" .. not understood!" <<
endmsg;
86 if (
start == std::string::npos) {
93 if constexpr(std::is_unsigned_v<type>) {
107 if (
start == std::string::npos) {
126 if (
pos == std::string::npos) {
140 const size_t pos =
str.find(
'"');
141 if (
pos == std::string::npos)
146 }
else if (
pos ==
str.length() - 1) {
187 if (
pos != std::string::npos) {
188 const size_t finalpos =
pos +
token.length();
190 char foll = (finalpos <
m_data.length()) ?
m_data[finalpos] :
' ';
191 if (prev ==
' ' && foll ==
' ')
201 const size_t pos =
str.find(
'#');
202 if (
pos != std::string::npos) {
205 std::string new_token{
str};
206 new_token.replace(
pos,
rep.length(),
rep);
215 const size_t pos =
str.find(
'#');
216 if (
pos != std::string::npos) {
217 std::ostringstream
rep;
218 rep << std::setw(2) << std::setfill(
'0') <<
t;
220 std::string new_token{
str};
221 new_token.replace(
pos,
rep.str().length(),
rep.str());
282 const std::ios_base::fmtflags
fmt =
f.flags() & std::ios_base::basefield;
284 case std::ios::hex:
m_base = 16;
break;
285 case std::ios::oct:
m_base = 8;
break;
298 if (
pos != std::string::npos)
316 for (
int j = -1; j <
i; j++) {
324 for (
int j = 0; j <
i; j++) {
335 DBline::operator
bool() {
return !(m_fail | !
static_cast<bool>(m_extraction)); }
337 DBline::operator
DBstatus() {
return m_extraction; }
361 this->unsetf(std::ios::skipws | std::ios::left | std::ios::right | std::ios::internal | std::ios::oct | std::ios::hex |
362 std::ios::showbase | std::ios::showpoint | std::ios::uppercase | std::ios::scientific | std::ios::fixed |
363 std::ios::showpos | std::ios::boolalpha);
365 m_dbfmt_hex.setf(std::ios::hex, std::ios::basefield);
366 m_dbfmt_oct.setf(std::ios::oct, std::ios::basefield);
367 m_dbfmt_dec.setf(std::ios::dec, std::ios::basefield);
424 this->setf(std::ios::unitbuf | std::ios::dec);
425 this->unsetf(std::ios::skipws | std::ios::left | std::ios::right | std::ios::internal | std::ios::oct | std::ios::hex |
426 std::ios::showbase | std::ios::showpoint | std::ios::uppercase | std::ios::scientific | std::ios::fixed |
427 std::ios::showpos | std::ios::boolalpha);