lmi-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[lmi-commits] [lmi] master 1f6064d 14/16: Fix index-origin errors in por


From: Greg Chicares
Subject: [lmi-commits] [lmi] master 1f6064d 14/16: Fix index-origin errors in port from XSL-FO
Date: Sat, 11 Apr 2020 20:36:04 -0400 (EDT)

branch: master
commit 1f6064d4c304cea182e873ab9f3c6a9303a0045d
Author: Gregory W. Chicares <address@hidden>
Commit: Gregory W. Chicares <address@hidden>

    Fix index-origin errors in port from XSL-FO
    
    Replaced each occurrence of
      grep -l '[[][0-9][0-9]*[]]' *.mst
    All were "[1]", and are now "[0]".
    
    In each of these cases, it's the first element that's desired, i.e.,
    element number zero, because that's the index origin in C and C++.
    There's no translation to XSL's origin-one blasphemy, because
    ultimately std::vector::at() is called:
    
    std::string ledger_evaluator::value
        (std::string const& vector_name
        ,int                index
        ) const
    {
        return map_lookup(vectors_, vector_name).at(index);
    }
---
 finra_notes2.mst              | 4 ++--
 reg_d_group_narr_summary2.mst | 4 ++--
 reg_d_indiv_header.mst        | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/finra_notes2.mst b/finra_notes2.mst
index 52187b7..0837ea6 100644
--- a/finra_notes2.mst
+++ b/finra_notes2.mst
@@ -100,7 +100,7 @@ This illustration assumes death of the insured at age 
{{EndtAge}}.
 {{#UsePartialMort}}
     <p>
     This illustration reflects the client's mortality assumption
-    of {{PartMortTableMult[1]}} of the {{PartMortTableName}}
+    of {{PartMortTableMult[0]}} of the {{PartMortTableName}}
     table with all deaths at the end of the year.
     </p>
 {{/UsePartialMort}}
@@ -183,7 +183,7 @@ issuing company or companies.
 {{^Composite}}
     <p>
     This illustration is based on total Separate Account
-    fund expenses of {{TotalIMF[1]}}.
+    fund expenses of {{TotalIMF[0]}}.
     </p>
     {{#AvgFund}}
         <p>
diff --git a/reg_d_group_narr_summary2.mst b/reg_d_group_narr_summary2.mst
index 4c0a2bf..0c78c93 100644
--- a/reg_d_group_narr_summary2.mst
+++ b/reg_d_group_narr_summary2.mst
@@ -75,7 +75,7 @@ or sending money.
 {{#UsePartialMort}}
     <p>
     This illustration reflects an initial mortality assumption
-    of {{PartMortTableMult[1]}} of the {{PartMortTableName}}
+    of {{PartMortTableMult[0]}} of the {{PartMortTableName}}
     table with all deaths at the end of the year.
     </p>
 {{/UsePartialMort}}
@@ -123,7 +123,7 @@ SEPARATE ACCOUNT
 
 <p>
 This illustration is based on total Separate Account fund expenses
-of {{TotalIMF[1]}}.
+of {{TotalIMF[0]}}.
 </p>
 
 <p>
diff --git a/reg_d_indiv_header.mst b/reg_d_indiv_header.mst
index 08e0e43..e2a9b05 100644
--- a/reg_d_indiv_header.mst
+++ b/reg_d_indiv_header.mst
@@ -79,7 +79,7 @@ and may not be used to project or predict investment results.
                     {{!
 PDF !! Flats don't require "Rated" class; and does this value actually print 
anyway?
                     }}
-                    Initial Annual Flat Extra: {{AnnualFlatExtra[1]}} per 
1,000<br>
+                    Initial Annual Flat Extra: {{AnnualFlatExtra[0]}} per 
1,000<br>
                 {{/UWClassIsRated}}
             {{/Composite}}
         </td>



reply via email to

[Prev in Thread] Current Thread [Next in Thread]