25 m_bare = m_full = m_server = m_username = m_serverRaw = m_resource =
"";
29 size_t at = jid.find(
"@", 0 );
30 size_t slash = jid.find(
"/", 0 );
32 if( at == std::string::npos )
34 if( slash == std::string::npos )
40 m_serverRaw = jid.substr( 0, slash );
47 if( slash != std::string::npos )
49 m_serverRaw = jid.substr( at + 1, slash - at - 1 );
54 m_serverRaw = jid.substr( at + 1 );
83 if( !m_resource.empty() )
84 m_full +=
'/' + m_resource;
89 if( !m_username.empty() )
90 m_bare = m_username +
'@';