static std::string DecodeString( const std::wstring& str ) {
		if( str.empty() ) return "";
		ttstr ret;
		const wchar_t *p = str.c_str();
		if(p[0] != '\"') return ttstr(str).AsNarrowStdString();

		p++;
		while( *p ) {
			if(*p != '\\') break;
			p++;
			if(*p != 'x') break;
			p++;
			wchar_t ch = 0;
			while( true ) {
				int n = HexNum(*p);
				if(n == -1) break;
				ch <<= 4;
				ch += n;
				p++;
			}
			ret += ch;
		}
		return ret.AsNarrowStdString();
	}
HexNum HexNum::operator/(const int& other){
	return HexNum(int_value/other);
}
HexNum HexNum::operator/(const HexNum& other){
	return HexNum(int_value/other.int_value);
}