Definition at line 286 of file pdb2cif.cpp.
◆ SpecificationListParser()
cif::pdb::SpecificationListParser::SpecificationListParser |
( |
const std::string & |
text | ) |
|
|
inline |
◆ GetNextSpecification()
std::tuple< std::string, std::string > cif::pdb::SpecificationListParser::GetNextSpecification |
( |
| ) |
|
Definition at line 302 of file pdb2cif.cpp.
304 std::string id, value;
306 std::string::iterator start = mP,
backup;
321 while (mP != mText.end() and state != eDone)
328 if (isalnum(ch)
or ch ==
'_')
335 else if (not isspace(ch))
338 std::cerr <<
"skipping invalid character in SOURCE ID: " << ch << std::endl;
343 if (isalnum(ch)
or ch ==
'_')
355 std::cerr <<
"Empty value for SOURCE: " <<
id << std::endl;
358 else if (not isspace(ch))
385 value.insert(value.end(),
backup, mP);
396 else if (isspace(ch))
408 else if (not(isalnum(ch)
or ch ==
'_'))
410 value.insert(value.end(),
backup, mP);
419 std::cerr <<
"Skipping invalid header line: '" << std::string(start, mP) << std::endl;
430 return std::make_tuple(
id, value);
void trim(std::string &s)
The documentation for this class was generated from the following file: