[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>
- [lmi-commits] [lmi] master ce9d6b8 04/16: Change compositing for some string members, (continued)
- [lmi-commits] [lmi] master ce9d6b8 04/16: Change compositing for some string members, Greg Chicares, 2020/04/11
- [lmi-commits] [lmi] master df9c566 07/16: Sort nonscalable scalar members together in declaration order, Greg Chicares, 2020/04/11
- [lmi-commits] [lmi] master a7a9404 05/16: Simplify [348], Greg Chicares, 2020/04/11
- [lmi-commits] [lmi] master 359c74c 09/16: Treat 'InitErMode' the same as any other ledger string, Greg Chicares, 2020/04/11
- [lmi-commits] [lmi] master 255b816 15/16: Mark ledger members dubiously ignored in compositing, Greg Chicares, 2020/04/11
- [lmi-commits] [lmi] master ed9a11d 16/16: Address ledger members formerly ignored in compositing, Greg Chicares, 2020/04/11
- [lmi-commits] [lmi] master 2e134db 11/16: Add 'InitEeMode' to ledger, Greg Chicares, 2020/04/11
- [lmi-commits] [lmi] master bb389e4 10/16: Alphabetize members of enumerative type, Greg Chicares, 2020/04/11
- [lmi-commits] [lmi] master 5dfa890 13/16: Reorder and label for greater uniformity, Greg Chicares, 2020/04/11
- [lmi-commits] [lmi] master db81cdc 12/16: Correct a guaranteed-premium footnote, Greg Chicares, 2020/04/11
- [lmi-commits] [lmi] master 1f6064d 14/16: Fix index-origin errors in port from XSL-FO,
Greg Chicares <=