|
@@ -37,9 +37,9 @@ type
|
|
{ TFieldMap }
|
|
{ TFieldMap }
|
|
TTransformMap = class(TObject)
|
|
TTransformMap = class(TObject)
|
|
Protected
|
|
Protected
|
|
- function TransFormString(const aString : RawByteString) : RawByteString; virtual; overload;
|
|
|
|
- function TransFormString(const aString : UnicodeString) : UnicodeString; virtual; overload;
|
|
|
|
- function TransFormString(const aString : WideString) : WideString; virtual; overload;
|
|
|
|
|
|
+ function TransformString(const aString : RawByteString) : RawByteString; virtual; overload;
|
|
|
|
+ function TransformString(const aString : UnicodeString) : UnicodeString; virtual; overload;
|
|
|
|
+ function TransformString(const aString : WideString) : WideString; virtual; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
TFieldMap = Class(TTransFormMap)
|
|
TFieldMap = Class(TTransFormMap)
|
|
@@ -493,17 +493,17 @@ end;
|
|
|
|
|
|
{ TTransformMap }
|
|
{ TTransformMap }
|
|
|
|
|
|
-function TTransformMap.TransFormString(const aString: RawByteString): RawByteString;
|
|
|
|
|
|
+function TTransformMap.TransformString(const aString: RawByteString): RawByteString;
|
|
begin
|
|
begin
|
|
Result:=aString;
|
|
Result:=aString;
|
|
end;
|
|
end;
|
|
|
|
|
|
-function TTransformMap.TransFormString(const aString: UnicodeString): UnicodeString;
|
|
|
|
|
|
+function TTransformMap.TransformString(const aString: UnicodeString): UnicodeString;
|
|
begin
|
|
begin
|
|
Result:=aString;
|
|
Result:=aString;
|
|
end;
|
|
end;
|
|
|
|
|
|
-function TTransformMap.TransFormString(const aString: WideString): WideString;
|
|
|
|
|
|
+function TTransformMap.TransformString(const aString: WideString): WideString;
|
|
begin
|
|
begin
|
|
Result:=aString;
|
|
Result:=aString;
|
|
end;
|
|
end;
|
|
@@ -542,7 +542,7 @@ function TParamMap.SetParam(P: TParam; const aValue: AnsiString): Boolean;
|
|
begin
|
|
begin
|
|
Result:=Assigned(P);
|
|
Result:=Assigned(P);
|
|
If Result then
|
|
If Result then
|
|
- P.AsString:=TransFormString(aValue);
|
|
|
|
|
|
+ P.AsString:=TransformString(aValue);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TParamMap.SetParam(P: TParam; aValue: Boolean): Boolean;
|
|
function TParamMap.SetParam(P: TParam; aValue: Boolean): Boolean;
|
|
@@ -599,14 +599,14 @@ function TParamMap.SetParam(P: TParam; const aValue: UnicodeString): Boolean;
|
|
begin
|
|
begin
|
|
Result:=Assigned(P);
|
|
Result:=Assigned(P);
|
|
If Result then
|
|
If Result then
|
|
- P.AsUnicodeString:=TransFormString(aValue);
|
|
|
|
|
|
+ P.AsUnicodeString:=TransformString(aValue);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TParamMap.SetParam(P: TParam; const aValue: WideString): Boolean;
|
|
function TParamMap.SetParam(P: TParam; const aValue: WideString): Boolean;
|
|
begin
|
|
begin
|
|
Result:=Assigned(P);
|
|
Result:=Assigned(P);
|
|
If Result then
|
|
If Result then
|
|
- P.AsWideString:=TransFormString(aValue);
|
|
|
|
|
|
+ P.AsWideString:=TransformString(aValue);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TParamMap.SetParam(P: TParam; aValue: TBytes): Boolean;
|
|
function TParamMap.SetParam(P: TParam; aValue: TBytes): Boolean;
|
|
@@ -693,7 +693,7 @@ begin
|
|
Result:=F.AsString
|
|
Result:=F.AsString
|
|
else
|
|
else
|
|
Result:=ADefault;
|
|
Result:=ADefault;
|
|
- Result:=TransFormString(Result);
|
|
|
|
|
|
+ Result:=TransformString(Result);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TFieldMap.GetFromField(F: TField; ADefault: Boolean): Boolean;
|
|
function TFieldMap.GetFromField(F: TField; ADefault: Boolean): Boolean;
|
|
@@ -766,7 +766,7 @@ begin
|
|
Result:=F.AsUnicodeString
|
|
Result:=F.AsUnicodeString
|
|
else
|
|
else
|
|
Result:=ADefault;
|
|
Result:=ADefault;
|
|
- Result:=TransFormString(Result);
|
|
|
|
|
|
+ Result:=TransformString(Result);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TFieldMap.GetFromField(F: TField; const ADefault: WideString): WideString;
|
|
function TFieldMap.GetFromField(F: TField; const ADefault: WideString): WideString;
|
|
@@ -775,7 +775,7 @@ begin
|
|
Result:=F.AsWideString
|
|
Result:=F.AsWideString
|
|
else
|
|
else
|
|
Result:=ADefault;
|
|
Result:=ADefault;
|
|
- Result:=TransFormString(Result);
|
|
|
|
|
|
+ Result:=TransformString(Result);
|
|
end;
|
|
end;
|
|
|
|
|
|
function TFieldMap.GetFromField(F: TField; ADefault: TBytes): TBytes;
|
|
function TFieldMap.GetFromField(F: TField; ADefault: TBytes): TBytes;
|