mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 21:23:03 +01:00
Better organize code - thanks to Claudio
This commit is contained in:
parent
cd63621702
commit
6ec62baea0
@ -39,8 +39,6 @@ using namespace Firebird;
|
|||||||
namespace
|
namespace
|
||||||
{
|
{
|
||||||
|
|
||||||
typedef void ProcessString(string& s);
|
|
||||||
|
|
||||||
void strToUtf8(string& s)
|
void strToUtf8(string& s)
|
||||||
{
|
{
|
||||||
ISC_systemToUtf8(s);
|
ISC_systemToUtf8(s);
|
||||||
@ -52,7 +50,7 @@ void strFromUtf8(string& s)
|
|||||||
ISC_utf8ToSystem(s);
|
ISC_utf8ToSystem(s);
|
||||||
}
|
}
|
||||||
|
|
||||||
void processCommandLine(string& par, ProcessString* processString)
|
void processCommandLine(string& par, IntlParametersBlock::ProcessString* processString)
|
||||||
{
|
{
|
||||||
bool flagIn = false;
|
bool flagIn = false;
|
||||||
string current, result;
|
string current, result;
|
||||||
|
@ -39,6 +39,7 @@ class IntlParametersBlock
|
|||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
enum TagType { TAG_SKIP, TAG_STRING, TAG_COMMAND_LINE };
|
enum TagType { TAG_SKIP, TAG_STRING, TAG_COMMAND_LINE };
|
||||||
|
typedef void ProcessString(string& s);
|
||||||
|
|
||||||
virtual TagType checkTag(UCHAR tag) = 0;
|
virtual TagType checkTag(UCHAR tag) = 0;
|
||||||
|
|
||||||
@ -46,7 +47,6 @@ public:
|
|||||||
void fromUtf8(ClumpletWriter& pb, UCHAR utf8Tag);
|
void fromUtf8(ClumpletWriter& pb, UCHAR utf8Tag);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
typedef void ProcessString(string& s);
|
|
||||||
void processParametersBlock(ProcessString* processString, ClumpletWriter& pb);
|
void processParametersBlock(ProcessString* processString, ClumpletWriter& pb);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user