cc_string Token::GetNamespace() const { const cc_string dcolon(cc_text("::")); cc_string res; Token* parentToken = m_pTree->at(m_ParentIndex); while (parentToken) { res.insert(0,dcolon); res.insert(0,parentToken->m_Name); parentToken = parentToken->GetParentToken(); } return res; }
wxString Token::GetNamespace() const { const wxString dcolon(_T("::")); wxString res; Token* parentToken = m_pTree->at(m_ParentIndex); while (parentToken) { res.Prepend(dcolon); res.Prepend(parentToken->m_Name); parentToken = parentToken->GetParentToken(); } return res; }