Feature #1743
Add gammalib::number() function for singular & plural noun handling
| Status: | Closed | Start date: | 03/14/2016 | |
|---|---|---|---|---|
| Priority: | Normal | Due date: | ||
| Assigned To: | % Done: | 100% | ||
| Category: | - | |||
| Target version: | 1.1.0 | |||
| Duration: |
Description
A function
std::string gammalib::number(const std::string& noun, const int& number)should be implement that appends an
s to a noun when the number is equal to 1. This will allow to remove a lot of the conditional printing in ctools.
Recurrence
No recurrence.
History
#1
Updated by Knödlseder Jürgen over 10 years ago
- Status changed from New to Closed
- Assigned To set to Knödlseder Jürgen
- Target version set to 1.1.0
- % Done changed from 0 to 100
Done