DotNameLib
Loading...
Searching...
No Matches
IStringFormatter.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <string>
4
5
namespace
dotnamecpp::utils
{
6
12
class
IStringFormatter
{
13
public
:
14
virtual
~IStringFormatter
() =
default
;
15
22
[[nodiscard]]
23
virtual
std::string
addDots
(
const
std::string &str)
const
= 0;
24
31
[[nodiscard]]
32
virtual
std::string
removeDots
(
const
std::string &str)
const
= 0;
33
};
34
35
}
// namespace dotnamecpp::utils
dotnamecpp::utils::IStringFormatter
Interface for string formatting operations.
Definition
IStringFormatter.hpp:12
dotnamecpp::utils::IStringFormatter::removeDots
virtual std::string removeDots(const std::string &str) const =0
Remove thousand separators (dots) from numeric string.
dotnamecpp::utils::IStringFormatter::~IStringFormatter
virtual ~IStringFormatter()=default
dotnamecpp::utils::IStringFormatter::addDots
virtual std::string addDots(const std::string &str) const =0
Add thousand separators (dots) to numeric string.
dotnamecpp::utils
Definition
DirectoryManager.cpp:5
src
Utils
String
IStringFormatter.hpp
Generated by
1.14.0