コード例 #1
0
void LineEdit::Validator::insert(std::u16string &string, size_t &cursor, size_t &ecursor, char16_t data) const {
  char16_t ch[2] = { char16_t(data), 0 };
  string.insert(cursor,ch);
  ++cursor;
  ++ecursor;
  }
コード例 #2
0
void LineEdit::Validator::insert(std::u16string &string, size_t &ecursor, size_t &cursor, const std::u16string &data) const {
  string.insert(cursor,data);
  ++cursor;
  ++ecursor;
  }