mirror of
https://github.com/msojocs/wx-compiler.git
synced 2025-07-19 00:00:04 +08:00
42 lines
818 B
C++
42 lines
818 B
C++
|
|
#include "../../include/wxml.h"
|
|
|
|
|
|
namespace WXML {
|
|
|
|
|
|
namespace DOMLib
|
|
{
|
|
StrCache::StrCache(/* args */)
|
|
{
|
|
}
|
|
|
|
StrCache::~StrCache()
|
|
{
|
|
}
|
|
void StrCache::RenderPathDefine(std::stringstream ss)
|
|
{
|
|
ss << "var x=[";
|
|
// TODO...
|
|
// return ss;
|
|
}
|
|
void StrCache::Insert(std::string s)
|
|
{
|
|
if (!this->d.count(s))
|
|
{
|
|
// this->d[s] = this[5]; // ???
|
|
this->offset_6.push_back(s);
|
|
}
|
|
}
|
|
|
|
int StrCache::GetStrID(std::string s)
|
|
{
|
|
int result = -1;
|
|
if(this->d.count(s))
|
|
{
|
|
return this->d[s];
|
|
}
|
|
return result;
|
|
}
|
|
}
|
|
} |