DotNameLib
Loading...
Searching...
No Matches
dotnamecpp::utils::StringFormatter Class Referencefinal

#include <StringFormatter.hpp>

Inheritance diagram for dotnamecpp::utils::StringFormatter:
Collaboration diagram for dotnamecpp::utils::StringFormatter:

Public Member Functions

 StringFormatter ()=default
 ~StringFormatter () override=default
 StringFormatter (const StringFormatter &)=delete
StringFormatteroperator= (const StringFormatter &)=delete
 StringFormatter (StringFormatter &&)=delete
StringFormatteroperator= (StringFormatter &&)=delete
std::string addDots (const std::string &str) const override
 Add thousand separators (dots) to numeric string.
std::string removeDots (const std::string &str) const override
 Remove thousand separators (dots) from numeric string.
Public Member Functions inherited from dotnamecpp::utils::IStringFormatter
virtual ~IStringFormatter ()=default

Constructor & Destructor Documentation

◆ StringFormatter() [1/3]

dotnamecpp::utils::StringFormatter::StringFormatter ( )
default
Here is the caller graph for this function:

◆ ~StringFormatter()

dotnamecpp::utils::StringFormatter::~StringFormatter ( )
overridedefault

◆ StringFormatter() [2/3]

dotnamecpp::utils::StringFormatter::StringFormatter ( const StringFormatter & )
delete
Here is the call graph for this function:

◆ StringFormatter() [3/3]

dotnamecpp::utils::StringFormatter::StringFormatter ( StringFormatter && )
delete
Here is the call graph for this function:

Member Function Documentation

◆ addDots()

std::string dotnamecpp::utils::StringFormatter::addDots ( const std::string & str) const
nodiscardoverridevirtual

Add thousand separators (dots) to numeric string.

Parameters
str
Returns
std::string

Implements dotnamecpp::utils::IStringFormatter.

◆ operator=() [1/2]

StringFormatter & dotnamecpp::utils::StringFormatter::operator= ( const StringFormatter & )
delete
Here is the call graph for this function:

◆ operator=() [2/2]

StringFormatter & dotnamecpp::utils::StringFormatter::operator= ( StringFormatter && )
delete
Here is the call graph for this function:

◆ removeDots()

std::string dotnamecpp::utils::StringFormatter::removeDots ( const std::string & str) const
nodiscardoverridevirtual

Remove thousand separators (dots) from numeric string.

Parameters
str
Returns
std::string

Implements dotnamecpp::utils::IStringFormatter.


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