Core: String small hint constructor variant

git-svn-id: svn://ultimatepp.org/upp/trunk@16014 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2021-07-07 14:20:14 +00:00
parent 688147651b
commit 8a186a089e
3 changed files with 22 additions and 16 deletions

View file

@ -192,18 +192,6 @@ void String0::SetL(const char *s, int len)
SLen() = 15;
}
void String0::Set0(const char *s, int len)
{
Zero();
if(len <= 14) {
SLen() = len;
memcpy8(chr, s, len);
}
else
SetL(s, len);
Dsyn();
}
void String::AssignLen(const char *s, int slen)
{
int len = GetCount();