.cosmetics

git-svn-id: svn://ultimatepp.org/upp/trunk@13722 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2019-11-28 11:43:23 +00:00
parent e705db2e52
commit fb83c1c115

View file

@ -172,18 +172,15 @@ void CParser::PassChar3(char c1, char c2, char c3) {
}
String CParser::ReadId() {
RTIMING("ReadId");
if(!IsId())
ThrowError("missing id");
String result;
RTIMING("ReadId1");
const char *b = term;
const char *p = b;
while(iscid(*p))
p++;
term = p;
DoSpaces();
RTIMING("ReadId2");
return String(b, (int)(uintptr_t)(p - b));
}