Feature #1743

Add gammalib::number() function for singular & plural noun handling

Added by Knödlseder Jürgen about 8 years ago. Updated about 8 years ago.

Status:ClosedStart date:03/14/2016
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% 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 about 8 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

Also available in: Atom PDF