added: Export plugin (not finished yet)
added: ThreadManager all threads are connected to the ThreadManager they are started/stopped by the manager changed: FunctionParser now we are parsing directly what is in URI (we were using GetParser beforehand) we are able to recognize ordinary URI scheme (with '?' and '#' characters) sample: http://domain.com/dir1/dir2/item/function?par1=val2&par2=val2#htmlanchor is the same as: http://domain.com/dir1/dir2/item/function/par1:val2/par2:val2#htmlanchor 'htmlanchor' is put in Request::anchor field, and the default function can be used like this: http://domain.com/dir1/dir2/item?par1=val2&par2=val2#htmlanchor but there is not an equivalent in winix form e.g. http://domain.com/dir1/dir2/item/par1:val2/par2:val2#htmlanchor because 'par1:val2' would be treated as a function name removed: GetParser now we don't have Request::get_tab structure removed: CKEditorGetParser it is not needed now git-svn-id: svn://ttmath.org/publicrep/winix/trunk@752 e52654a7-88a9-db11-a3e9-0013d4bc506e
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* This file is a part of Winix
|
||||
* and is not publicly distributed
|
||||
*
|
||||
* Copyright (c) 2008-2010, Tomasz Sowa
|
||||
* Copyright (c) 2008-2011, Tomasz Sowa
|
||||
* All rights reserved.
|
||||
*
|
||||
*/
|
||||
@@ -10,6 +10,7 @@
|
||||
#ifndef headerfile_winix_functions_functionparser
|
||||
#define headerfile_winix_functions_functionparser
|
||||
|
||||
#include <string>
|
||||
#include "db/db.h"
|
||||
#include "core/cur.h"
|
||||
#include "core/system.h"
|
||||
@@ -18,31 +19,57 @@
|
||||
class Functions;
|
||||
|
||||
|
||||
|
||||
class FunctionParser
|
||||
{
|
||||
public:
|
||||
|
||||
FunctionParser();
|
||||
bool Parse(Cur * pcur, Db * pdb, Functions * pfunctions, System * psystem);
|
||||
void UTF8(bool use_utf8);
|
||||
|
||||
private:
|
||||
|
||||
Db * db;
|
||||
Cur * cur;
|
||||
System * system;
|
||||
Functions * functions;
|
||||
|
||||
GetTab::size_type get_index;
|
||||
GetTab::size_type get_tab_len;
|
||||
|
||||
void SkipEmptyString(const char * msg);
|
||||
|
||||
void ParseDirectories();
|
||||
void ParseItem();
|
||||
bool IsAppFunction();
|
||||
void ParseFunction();
|
||||
void ParseParams(const std::wstring & par);
|
||||
const char * path;
|
||||
std::string name_ascii, value_ascii;
|
||||
std::wstring name, value;
|
||||
Item * last_dir;
|
||||
Param param;
|
||||
bool utf8;
|
||||
|
||||
void SkipSlashes();
|
||||
|
||||
void ParseDirsItemFunction();
|
||||
void ParseParams();
|
||||
void ParseAnchor();
|
||||
|
||||
public:
|
||||
bool IsDir();
|
||||
bool CheckAddItem();
|
||||
bool CheckAddFunction();
|
||||
bool AddRootDir();
|
||||
void AddDir();
|
||||
void AddParam();
|
||||
void ParseOrdinaryParams();
|
||||
void ParseWinixParams();
|
||||
|
||||
void ToWide(const std::string & src, std::wstring & dst);
|
||||
|
||||
int FromHex(int c);
|
||||
int GetChar();
|
||||
void ReadName();
|
||||
void ReadOrdinaryParName();
|
||||
void ReadOrdinaryParValue();
|
||||
void ReadWinixParName();
|
||||
void ReadWinixParValue();
|
||||
|
||||
void Parse(Cur * pcur, Db * pdb, Functions * pfunctions, System * psystem);
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
|
||||
|
Reference in New Issue
Block a user