2 #include "nlite_include.h"
10 const CString URL_TEXT = TEXT("(https?|ftp)(://[-_.!~*\'()a-zA-Z0-9;/?:@&=+$,%#]+)");
11 const CString TAG_TEXT = TEXT("<[\"_;!?,\\:.'$%&#/a-zA-Z0-9= ]*>");
12 const CString VIDEOID_TEXT = TEXT("(sm|nm)([0-9])+");
13 const CString LIVEID_TEXT = TEXT("(lv)([0-9])+");
14 const CString LINK_TEXT = TEXT("(") + URL_TEXT + TEXT(")|(") + VIDEOID_TEXT + TEXT(")|(") + LIVEID_TEXT + TEXT(")");
16 const tregex URL(text::URL_TEXT);
17 const tregex TAGSTRING(text::TAG_TEXT);
18 const tregex VIDEOID(text::VIDEOID_TEXT);
19 const tregex LIVEID(text::LIVEID_TEXT);
20 const tregex LILNKREGEX(text::LINK_TEXT);
21 const tstring NUTHINGSTRING(TEXT(""));
23 Property nliteProperty;
26 VOID nlite::UnexpectedErrorMessageShow(LPCTSTR headMessage,LPCTSTR summary,UINT line,LPCTSTR fileName,LPCTSTR function){
28 errMessage = headMessage;
29 errMessage += TEXT("
\91z
\92è
\82³
\82ê
\82Ä
\82¢
\82È
\82¢
\83G
\83\89\81[
\82ª
\94
\90¶
\82µ
\82Ü
\82µ
\82½
\81B
\83A
\83v
\83\8a\83P
\81[
\83V
\83\87\83\93\94z
\92u
\83t
\83H
\83\8b\83_
\82É
\8dì
\90¬
\82³
\82ê
\82½
\83\8d\83O
\83t
\83@
\83C
\83\8b\82ð
\93n
\82µ
\82Ä
\82à
\82ç
\82¦
\82é
\82Æ
\8aJ
\94
\8eÒ
\82ª
\94ñ
\8fí
\82É
\8aì
\82Ñ
\82Ü
\82·");
30 errMessage += TEXT("\r\n
\83G
\83\89\81[
\83\81\83b
\83Z
\81[
\83W:");
31 errMessage += summary;
32 DebugOutW(fileName,function,line,DUMPING__DEBUGER__ | LINEFEAD__DEBUGER__ ,ERRORMODE__DEBUGER__,TEXT("%s"),summary);
33 ::MessageBox(NULL,errMessage.c_str(),TEXT("
\91z
\92è
\82³
\82ê
\82Ä
\82¢
\82È
\82¢
\83G
\83\89\81["),MB_ICONERROR | MB_OK);
40 HINSTANCE OpenURL(HWND hwnd,const GeneralProperty &gp,LPCTSTR url ,INT nShowCommand){
44 if(gp.browserPath.Length() == 0){
46 rslt = ShellExecute(hwnd, NULL, url, NULL, NULL, nShowCommand);
50 rslt = ShellExecute(hwnd, NULL, gp.browserPath, url, NULL, nShowCommand);
60 const CApplicationInfo * appInfo = NULL;