mirror of
https://github.com/msojocs/wx-compiler.git
synced 2025-07-19 00:00:04 +08:00
fix: Token::toString 缓存
This commit is contained in:
parent
2a5e556538
commit
2d84ba10f0
@ -94,15 +94,16 @@ namespace WXML
|
||||
std::string offset_0; // content
|
||||
int offset_16; // pos
|
||||
int offset_20; // size
|
||||
bool offset_28;
|
||||
std::string offset_32;
|
||||
bool offset_84;
|
||||
std::string offset_88;
|
||||
bool offset_28; // hasCache toString
|
||||
std::string offset_32; // chcheData toString
|
||||
bool offset_84; // hasCache attrContent
|
||||
std::string offset_88; // chcheData attrContent
|
||||
public:
|
||||
Token(/* args */);
|
||||
Token(WXML::DOMLib::Token&&);
|
||||
Token(WXML::DOMLib::Token const&);
|
||||
~Token();
|
||||
|
||||
std::string ToString();
|
||||
|
||||
/**
|
||||
|
@ -199,7 +199,8 @@ namespace WXML
|
||||
std::string v4 = this->offset_32;
|
||||
if (this->offset_0.size() > 0 && !this->offset_28)
|
||||
{
|
||||
v4 = this->offset_32.substr(this->offset_16, this->offset_20);
|
||||
v4 = this->offset_0.substr(this->offset_16, this->offset_20);
|
||||
this->offset_32 = v4;
|
||||
this->offset_28 = true;
|
||||
}
|
||||
return v4;
|
||||
|
Loading…
x
Reference in New Issue
Block a user