std::pair<bool, unsigned long long int> GetHash(const wchar_t *str){
typedef std::pair<bool, unsigned long long int> rettype;
std::size_t len = std::wcslen(str);
unsigned long long int v = 0x0123456789ABCDEFLL;
for(std::size_t i = 0; i < len; ++i){
v = v * 137 + str[i] * 581;
}
return rettype(true, v);
}
std::pair<bool, unsigned long long int> GetHash(const char *str){
typedef std::pair<bool, unsigned long long int> rettype;
>If hNamedPipe was not opened with FILE_FLAG_OVERLAPPED, the function does not return until a client is connected or an error occurs. Successful synchronous operations result in the function returning a nonzero value if a client connects after the function is called.
えー。
(function(){
var id = "";
var password = "";
var start = 1, end = 260;
var servername = ""
var CreateHTTPObject = function(){
return new ActiveXObject("Msxml2.ServerXMLHTTP.6.0");
};
var Utility = {
GetSearchString: function(obj){
var vec = [];
for(var i in obj){
if(obj.hasOwnProperty(i)){
vec.push(i + "=" + obj[i]);
}
}
return vec.join("&");
},
forEach: function(vec, func){
vec = [].concat(vec);
var len = vec.length;
for(var i = 0; i < len; ++i){
if(func(vec[i])){
return;
}
}
},
DecodeHTML: function(str){
return str.replace(/&([a-zA-Z]+);/g, function($1, $2){
return ({
amp: "&",
quote: "\"",
gt: ">",
lt: "<"
})[$2];
});
}
};
var html = http.responseText;
if(html.match(/<h2>エラーが発生しました<\/h2>/) && html.match(/<li>error<\/li>/)){
return null;
}else{
var lines = html.split("\n");
var src = Downloader.GetSource(lines);
var qid = Downloader.GetQuestionId(lines);
var id = page;
var language = Downloader.GetLanguage(lines);
var point = Downloader.GetPoint(lines);
var uptime = Downloader.GetUpTime(lines);
var results = Downloader.GetResults(lines);