static string GetPublicModuleName(TTypeInfo type) { const string& s = type->GetModuleName(); string name; for ( string::const_iterator i = s.begin(); i != s.end(); ++i ) { char c = *i; if ( !isalnum((unsigned char) c) ) name += ' '; else name += c; } return name; }
string CObjectOStreamXml::GetModuleName(TTypeInfo type) { string name; if( !m_DTDFileName.empty() ) { name = m_DTDFileName; } else { const string& s = type->GetModuleName(); for ( string::const_iterator i = s.begin(); i != s.end(); ++i ) { char c = *i; if ( c == '-' ) name += '_'; else name += c; } } return name; }