const char* to string

There is class alt::String (with small changes to the standard string class).
It contains the public function Wrap:

void String::Wrap(const char* Cptr)
Clear();
if (Cptr)
{
size_ = StrLen(Cptr);
data_ = NewCstr(size_);
StrCpy(data_, Cptr);
}

In the following class function implementation, is this normal the way to assign a value to String& ?

int PWServer::CheckPW (const char* uid, char* upw)
{
String& user;
(*user).Wrap(uid);

String& password;
(*password).Wrap(upw);
// more code...
};
String& user;
That can't be right. Are you should the & isn't a *?
CheckPW will call PWSever::Hash

unsigned int Hash (const alt::String& uid, const alt::String& upw);

At second glance, String& does look awful dorky. But what is the proper way to:
1. declare/initialize Strings user and password
2. call Hash (would arguments be String* user and String* password?)
?
Topic archived. No new replies allowed.