25 m_bare = m_full = m_server = m_username = m_serverRaw = m_resource =
EmptyString;
30 const std::string::size_type at = jid.find(
'@' );
31 const std::string::size_type slash = jid.find(
'/', at == std::string::npos ? 0 : at );
33 if( at != std::string::npos && !( m_valid =
prep::nodeprep( jid.substr( 0, at ), m_username ) ) )
36 m_serverRaw = jid.substr( at == std::string::npos ? 0 : at + 1, slash - at - 1 );
40 if( slash != std::string::npos