Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactored to use sqlite and other improvements.
- Loading branch information
Showing
9 changed files
with
2,380 additions
and
1,494 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#pragma once | ||
#include <string> | ||
#include <vector> | ||
#include <thread> | ||
|
||
struct SearchResult | ||
{ | ||
std::string line; | ||
size_t textPos, textLength; | ||
|
||
SearchResult(std::string line, size_t start, size_t length) | ||
: line(std::move(line)), textPos(start), textLength(length) {} | ||
}; | ||
|
||
static std::vector<std::string> queryLinkByItemID(const int itemID); | ||
static std::vector<SearchResult> SearchLinkDB(const std::string& searchText, const bool bExact, const int limit = -1); | ||
static std::vector<SearchResult> QueryLinkDB(const std::string& queryText); | ||
static void UpdateItemsFromURL(const std::string& itemsURL); | ||
static void ConvertItemsDotTxt(); | ||
static void DownloadLatestItemsTxt(const std::string& itemsURL); | ||
static void queryLinkCount(); | ||
static void StoreLink(const std::string_view link); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,102 +1,102 @@ | ||
// Microsoft Visual C++ generated resource script. | ||
// | ||
#include "resource.h" | ||
|
||
#define APSTUDIO_READONLY_SYMBOLS | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Generated from the TEXTINCLUDE 2 resource. | ||
// | ||
#include "winres.h" | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
#undef APSTUDIO_READONLY_SYMBOLS | ||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// English (United States) resources | ||
|
||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) | ||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US | ||
#pragma code_page(1252) | ||
|
||
#ifdef APSTUDIO_INVOKED | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// TEXTINCLUDE | ||
// | ||
|
||
1 TEXTINCLUDE | ||
BEGIN | ||
"resource.h\0" | ||
END | ||
|
||
2 TEXTINCLUDE | ||
BEGIN | ||
"#include ""winres.h""\r\n" | ||
"\0" | ||
END | ||
|
||
3 TEXTINCLUDE | ||
BEGIN | ||
"\r\n" | ||
"\0" | ||
END | ||
|
||
#endif // APSTUDIO_INVOKED | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Version | ||
// | ||
|
||
VS_VERSION_INFO VERSIONINFO | ||
FILEVERSION 4,1 | ||
PRODUCTVERSION 4,1 | ||
FILEFLAGSMASK 0x3fL | ||
#ifdef _DEBUG | ||
FILEFLAGS 0x1L | ||
#else | ||
FILEFLAGS 0x0L | ||
#endif | ||
FILEOS 0x40004L | ||
FILETYPE 0x2L | ||
FILESUBTYPE 0x0L | ||
BEGIN | ||
BLOCK "StringFileInfo" | ||
BEGIN | ||
BLOCK "040904b0" | ||
BEGIN | ||
VALUE "CompanyName", "MacroQuest" | ||
#ifdef _DEBUG | ||
VALUE "FileDescription", "MQ2LinkDB Debug Version" | ||
#else | ||
VALUE "FileDescription", "MQ2LinkDB Release Version" | ||
#endif | ||
VALUE "FileVersion", "4.1" | ||
VALUE "InternalName", "MQ2LinkDB.dll" | ||
VALUE "OriginalFilename", "MQ2LinkDB.dll" | ||
VALUE "ProductName", "MQ2LinkDB" | ||
VALUE "ProductVersion", "4.1" | ||
END | ||
END | ||
BLOCK "VarFileInfo" | ||
BEGIN | ||
VALUE "Translation", 0x409, 1200 | ||
END | ||
END | ||
|
||
#endif // English (United States) resources | ||
///////////////////////////////////////////////////////////////////////////// | ||
|
||
|
||
|
||
#ifndef APSTUDIO_INVOKED | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Generated from the TEXTINCLUDE 3 resource. | ||
// | ||
|
||
|
||
///////////////////////////////////////////////////////////////////////////// | ||
#endif // not APSTUDIO_INVOKED | ||
// Microsoft Visual C++ generated resource script. | ||
// | ||
#include "resource.h" | ||
#define APSTUDIO_READONLY_SYMBOLS | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Generated from the TEXTINCLUDE 2 resource. | ||
// | ||
#include "winres.h" | ||
///////////////////////////////////////////////////////////////////////////// | ||
#undef APSTUDIO_READONLY_SYMBOLS | ||
///////////////////////////////////////////////////////////////////////////// | ||
// English (United States) resources | ||
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU) | ||
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US | ||
#pragma code_page(1252) | ||
#ifdef APSTUDIO_INVOKED | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// TEXTINCLUDE | ||
// | ||
1 TEXTINCLUDE | ||
BEGIN | ||
"resource.h\0" | ||
END | ||
2 TEXTINCLUDE | ||
BEGIN | ||
"#include ""winres.h""\r\n" | ||
"\0" | ||
END | ||
3 TEXTINCLUDE | ||
BEGIN | ||
"\r\n" | ||
"\0" | ||
END | ||
#endif // APSTUDIO_INVOKED | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Version | ||
// | ||
VS_VERSION_INFO VERSIONINFO | ||
FILEVERSION 5,0 | ||
PRODUCTVERSION 5,0 | ||
FILEFLAGSMASK 0x3fL | ||
#ifdef _DEBUG | ||
FILEFLAGS 0x1L | ||
#else | ||
FILEFLAGS 0x0L | ||
#endif | ||
FILEOS 0x40004L | ||
FILETYPE 0x2L | ||
FILESUBTYPE 0x0L | ||
BEGIN | ||
BLOCK "StringFileInfo" | ||
BEGIN | ||
BLOCK "040904b0" | ||
BEGIN | ||
VALUE "CompanyName", "MacroQuest" | ||
#ifdef _DEBUG | ||
VALUE "FileDescription", "MQ2LinkDB Debug Version" | ||
#else | ||
VALUE "FileDescription", "MQ2LinkDB Release Version" | ||
#endif | ||
VALUE "FileVersion", "5.0" | ||
VALUE "InternalName", "MQ2LinkDB.dll" | ||
VALUE "OriginalFilename", "MQ2LinkDB.dll" | ||
VALUE "ProductName", "MQ2LinkDB" | ||
VALUE "ProductVersion", "5.0" | ||
END | ||
END | ||
BLOCK "VarFileInfo" | ||
BEGIN | ||
VALUE "Translation", 0x409, 1200 | ||
END | ||
END | ||
#endif // English (United States) resources | ||
///////////////////////////////////////////////////////////////////////////// | ||
#ifndef APSTUDIO_INVOKED | ||
///////////////////////////////////////////////////////////////////////////// | ||
// | ||
// Generated from the TEXTINCLUDE 3 resource. | ||
// | ||
///////////////////////////////////////////////////////////////////////////// | ||
#endif // not APSTUDIO_INVOKED |
Oops, something went wrong.