std::string ConfFile::
normalize_key_name(const std::string &key)
{
+ if (key.find_first_of(" \t\r\n\f\v\xa0") == string::npos) {
+ return key;
+ }
+
string k(key);
ConfFile::trim_whitespace(k, true);
std::replace(k.begin(), k.end(), ' ', '_');
section_iter_t::value_type vt("global", ConfSection());
pair < section_iter_t, bool > vr(sections.insert(vt));
- assert(vr.second);
+ ceph_assert(vr.second);
section_iter_t cur_section = vr.first;
std::string acc;
ceph_abort();
break;
}
- assert(c != '\0'); // We better not go past the end of the input string.
+ ceph_assert(c != '\0'); // We better not go past the end of the input string.
}
}