Пример #1
0
void LineEdit::IntValidator::erase(std::u16string &string,
                                   size_t &scursor,
                                   size_t &ecursor) const {
  Validator::erase(string,scursor,ecursor);
  if(string.size()==1 && string[0]=='-')
    string[0] = '0';

  if(string.empty())
    string.push_back('0');
  }
Пример #2
0
	void SliceString::ToU16String(std::u16string& str)
	{
		for (String::size_type i = 0;
			i < this->GetLength(); ++i)
			str.push_back(this->CharAt(i));
	}