Changeset 5 for trunk/Packages


Ignore:
Timestamp:
Apr 13, 2026, 9:08:21 AM (2 weeks ago)
Author:
chronos
Message:
  • Modified: Load Owners from XML file with additional information about prices.
Location:
trunk/Packages
Files:
13 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Packages/Common/XML.pas

    r1 r5  
    2626implementation
    2727
     28var
     29  XmlFormatSettings: TFormatSettings = (
     30    CurrencyFormat: 1;
     31    NegCurrFormat: 5;
     32    ThousandSeparator: ',';
     33    DecimalSeparator: '.';
     34    CurrencyDecimals: 2;
     35    DateSeparator: '-';
     36    TimeSeparator: ':';
     37    ListSeparator: ',';
     38    CurrencyString: '$';
     39    ShortDateFormat: 'd/m/y';
     40    LongDateFormat: 'dd" "mmmm" "yyyy';
     41    TimeAMString: 'AM';
     42    TimePMString: 'PM';
     43    ShortTimeFormat: 'hh:nn';
     44    LongTimeFormat: 'hh:nn:ss';
     45    ShortMonthNames: ('Jan','Feb','Mar','Apr','May','Jun',
     46                      'Jul','Aug','Sep','Oct','Nov','Dec');
     47    LongMonthNames: ('January','February','March','April','May','June',
     48                     'July','August','September','October','November','December');
     49    ShortDayNames: ('Sun','Mon','Tue','Wed','Thu','Fri','Sat');
     50    LongDayNames:  ('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday');
     51    TwoDigitYearCenturyWindow: 50;
     52  );
     53
    2854function ReadDouble(Node: TDOMNode; Name: string; DefaultValue: Double): Double;
    2955var
     
    3359  NewNode := Node.FindNode(DOMString(Name));
    3460  if Assigned(NewNode) then
    35     Result := StrToFloat(string(NewNode.TextContent));
     61    Result := StrToFloat(string(NewNode.TextContent), XmlFormatSettings);
    3662end;
    3763
  • trunk/Packages/csvdocument/csvdocument.pas

    r1 r5  
    9393
    9494  // Sequential input from CSV stream
     95
     96  { TCSVParser }
     97
    9598  TCSVParser = class(TCSVHandler)
    9699  private
  • trunk/Packages/csvdocument/csvdocument_package.lpk

    r1 r5  
    1 <?xml version="1.0"?>
     1<?xml version="1.0" encoding="UTF-8"?>
    22<CONFIG>
    3   <Package Version="3">
     3  <Package Version="5">
    44    <PathDelim Value="\"/>
    55    <Name Value="csvdocument_package"/>
     6    <AddToProjectUsesSection Value="True"/>
    67    <Author Value="Vladimir Zhirov"/>
    78    <CompilerOptions>
    8       <Version Value="10"/>
     9      <Version Value="11"/>
    910      <PathDelim Value="\"/>
    1011      <SearchPaths>
    11         <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
     12        <UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)-$(BuildMode)"/>
    1213      </SearchPaths>
    1314      <Parsing>
    1415        <SyntaxOptions>
     16          <SyntaxMode Value="Delphi"/>
    1517          <CStyleOperator Value="False"/>
     18          <AllowLabel Value="False"/>
     19          <CPPInline Value="False"/>
    1620        </SyntaxOptions>
    1721      </Parsing>
    1822      <CodeGeneration>
    1923        <SmartLinkUnit Value="True"/>
    20         <Checks>
    21           <IOChecks Value="True"/>
    22           <RangeChecks Value="True"/>
    23           <OverflowChecks Value="True"/>
    24           <StackChecks Value="True"/>
    25         </Checks>
    2624        <Optimizations>
    27           <OptimizationLevel Value="2"/>
     25          <OptimizationLevel Value="0"/>
    2826        </Optimizations>
    2927      </CodeGeneration>
    3028      <Linking>
    3129        <Debugging>
     30          <GenerateDebugInfo Value="False"/>
    3231          <UseLineInfoUnit Value="False"/>
    3332        </Debugging>
    3433      </Linking>
    35       <Other>
    36         <CustomOptions Value="-al"/>
    37         <CompilerPath Value="$(CompPath)"/>
    38       </Other>
    3934    </CompilerOptions>
    4035    <Description Value="CsvDocument library is a unit contaning set of classes for CSV files handling."/>
     
    4742      </Item1>
    4843    </Files>
     44    <CompatibilityMode Value="True"/>
    4945    <RequiredPkgs Count="1">
    5046      <Item1>
Note: See TracChangeset for help on using the changeset viewer.