mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 06:05:58 -06:00
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:
parent
688147651b
commit
8a186a089e
3 changed files with 22 additions and 16 deletions
|
|
@ -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();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue