Wire Sysio Wire Sysion 1.0.0
Loading...
Searching...
No Matches
Catch::pluralise Struct Reference

#include <catch_string_manip.h>

Collaboration diagram for Catch::pluralise:

Public Member Functions

 pluralise (std::size_t count, std::string const &label)
 
 pluralise (std::size_t count, std::string const &label)
 

Public Attributes

std::size_t m_count
 
std::string m_label
 

Friends

std::ostream & operator<< (std::ostream &os, pluralise const &pluraliser)
 
std::ostream & operator<< (std::ostream &os, pluralise const &pluraliser)
 

Detailed Description

Definition at line 2870 of file catch.hpp.

Constructor & Destructor Documentation

◆ pluralise() [1/2]

Catch::pluralise::pluralise ( std::size_t count,
std::string const & label )

Definition at line 85 of file catch_string_manip.cpp.

86 : m_count( count ),
87 m_label( label )
88 {}
int * count
char * label

◆ pluralise() [2/2]

Catch::pluralise::pluralise ( std::size_t count,
std::string const & label )

Friends And Related Symbol Documentation

◆ operator<< [1/2]

std::ostream & operator<< ( std::ostream & os,
pluralise const & pluraliser )
friend

Definition at line 90 of file catch_string_manip.cpp.

90 {
91 os << pluraliser.m_count << ' ' << pluraliser.m_label;
92 if( pluraliser.m_count != 1 )
93 os << 's';
94 return os;
95 }
os_t os

◆ operator<< [2/2]

std::ostream & operator<< ( std::ostream & os,
pluralise const & pluraliser )
friend

Definition at line 90 of file catch_string_manip.cpp.

90 {
91 os << pluraliser.m_count << ' ' << pluraliser.m_label;
92 if( pluraliser.m_count != 1 )
93 os << 's';
94 return os;
95 }

Member Data Documentation

◆ m_count

std::size_t Catch::pluralise::m_count

Definition at line 36 of file catch_string_manip.h.

◆ m_label

std::string Catch::pluralise::m_label

Definition at line 37 of file catch_string_manip.h.


The documentation for this struct was generated from the following files: