|
|
@ -128,17 +128,7 @@ public:
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// Converts the controlled ucstring to a string str
|
|
|
|
/// Converts the controlled ucstring to a string str
|
|
|
|
void toString (std::string &str) const
|
|
|
|
void toString(std::string &str) const;
|
|
|
|
{
|
|
|
|
|
|
|
|
str.resize (size ());
|
|
|
|
|
|
|
|
for (uint i = 0; i < str.size (); i++)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (operator[](i) > 255)
|
|
|
|
|
|
|
|
str[i] = '?';
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
str[i] = (char) operator[](i);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// Converts the controlled ucstring and returns the resulting string
|
|
|
|
/// Converts the controlled ucstring and returns the resulting string
|
|
|
|
std::string toString () const
|
|
|
|
std::string toString () const
|
|
|
|