| 6 |
|
|
| 7 |
#include "config.h" |
#include "config.h" |
| 8 |
|
|
| 9 |
#define MAX_WIKI_TEXT_SIZE 10000 |
#define MAX_WIKI_TEXT_SIZE (1048576*5) |
| 10 |
#define MAX_TOKEN 32 |
#define MAX_TOKEN 32 |
| 11 |
#define MAX_BUF_SIZE 1024 |
#define MAX_BUF_SIZE 1024 |
| 12 |
#define EXT_TAG ".txt" |
#define EXT_TAG ".txt" |
| 13 |
#define DATE_TAG ":''DATE'':" |
#define DATE_TAG ":''DATE'':" |
| 14 |
#define TYPE_TAG ":''TYPE'':" |
#define TYPE_TAG ":''TYPE'':" |
| 15 |
#define NEW_DATA DATE_TAG " %Y/%m/%d %H:%M:%S\n\n" TYPE_TAG " memo\n---------------------------------------------------------\n" |
#define NEW_DATA DATE_TAG " %Y/%m/%d %H:%M:%S\n\n" TYPE_TAG " memo\n---------------------------------------------------------\n" |
| 16 |
|
#define NEW_DATA_TEMPLATE "new.template" |
| 17 |
|
|
| 18 |
#define ALLMEMO_TAG "malon-all" |
#define ALLMEMO_TAG "malon-all" |
| 19 |
#define TYPESEARCH_TAG "malon-type:" |
#define TYPESEARCH_TAG "malon-type:" |
| 20 |
|
|
| 21 |
#define CODE_SET_EUC_JP "euc-jp" |
#define CODE_SET_EUC_JP "eucJP" |
| 22 |
#ifdef __WXMAC__ |
#ifdef __WXMAC__ |
| 23 |
#define CODE_SET_SYSTEM "CP932" |
#define CODE_SET_SYSTEM "CP932" |
| 24 |
#endif |
#endif |
| 65 |
wxString* fileName; |
wxString* fileName; |
| 66 |
wxString* date; |
wxString* date; |
| 67 |
wxString* text; |
wxString* text; |
| 68 |
|
bool isWriteToFile; |
| 69 |
}; |
}; |
| 70 |
|
|
| 71 |
/* Search Result List */ |
/* Search Result List */ |
| 83 |
bool makeSearchToken(const char* searchStr, char* tokenList[]); |
bool makeSearchToken(const char* searchStr, char* tokenList[]); |
| 84 |
bool matchWithToken(wxString* fileName, char* tokenList[]); |
bool matchWithToken(wxString* fileName, char* tokenList[]); |
| 85 |
WikiList* search(const char* searchStr); |
WikiList* search(const char* searchStr); |
| 86 |
|
void readAll(wxString* title, bool progBarFlag); |
| 87 |
void group(); |
void group(); |
| 88 |
bool normalSearch(char* tokenList[], FILE*fp, char* decodeFileNameBuf); |
bool normalSearch(char* tokenList[], FILE*fp, char* decodeFileNameBuf); |
| 89 |
bool typeSearch(char* typeStr, FILE*fp); |
bool typeSearch(char* typeStr, FILE*fp); |