Skip to content

Commit

Permalink
Merge pull request #131 from igorbastosib/master
Browse files Browse the repository at this point in the history
Fixing the CompilationVersion for the String index
  • Loading branch information
viniciussanchez authored Jan 28, 2022
2 parents 12d3d78 + e1fe693 commit 23c28d3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/DataSet.Serialize.Import.pas
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ function TJSONSerialize.JSONPairToFieldName(const AValue: string): string;
if TDataSetSerializeConfig.GetInstance.CaseNameDefinition = cndLowerCamelCase then
begin
LFieldName := EmptyStr;
{$IF (DEFINED(ANDROID) or DEFINED(IOS)) and (CompilerVersion < 33.0)}
{$IF (DEFINED(ANDROID) or DEFINED(IOS)) and (CompilerVersion < 34.0)}
for I := 0 to Pred(Length(Result)) do
{$ELSE}
for I := 1 to Length(Result) do
Expand All @@ -431,7 +431,7 @@ function TJSONSerialize.JSONPairToFieldName(const AValue: string): string;
if CharInSet(Result[I], ['A'..'Z']) and CharInSet(Result[Pred(I)], ['a'..'z']) then
{$ELSE}
LCharacter := Result[I];
{$IF CompilerVersion >= 33.0}
{$IF CompilerVersion >= 34.0}
if i > 1 then
{$ENDIF}
LCharacterBefore := Result[Pred(I)];
Expand Down

0 comments on commit 23c28d3

Please sign in to comment.