CifDataValueFormatter.cpp (pymol-open-source-2.2.0) | : | CifDataValueFormatter.cpp (pymol-open-source-2.3.0) | ||
---|---|---|---|---|
skipping to change at line 64 | skipping to change at line 64 | |||
strcasecmp("global_", s)); | strcasecmp("global_", s)); | |||
} | } | |||
std::string & CifDataValueFormatter::nextbuf() { | std::string & CifDataValueFormatter::nextbuf() { | |||
// advance circular pointer | // advance circular pointer | |||
m_i = (m_i + 1) % m_buf.size(); | m_i = (m_i + 1) % m_buf.size(); | |||
return m_buf[m_i]; | return m_buf[m_i]; | |||
} | } | |||
const char * CifDataValueFormatter::quoted(const char * s) { | const char * CifDataValueFormatter::quoted(const char * s) { | |||
const char * quote = NULL; | const char * quote = nullptr; | |||
if (!strchr(s, '\n')) { | if (!strchr(s, '\n')) { | |||
if (!has_quotespace(s, '\'')) { | if (!has_quotespace(s, '\'')) { | |||
quote = "'"; | quote = "'"; | |||
} else if (!has_quotespace(s, '"')) { | } else if (!has_quotespace(s, '"')) { | |||
quote = "\""; | quote = "\""; | |||
} | } | |||
} | } | |||
if (!quote) { | if (!quote) { | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 1 lines changed or added |