DotNameLib
Loading...
Searching...
No Matches
StringFormatter.hpp
Go to the documentation of this file.
1
#pragma once
2
3
#include <
Utils/String/IStringFormatter.hpp
>
4
5
namespace
dotnamecpp::utils
{
6
7
class
StringFormatter
final :
public
IStringFormatter
{
8
public
:
9
StringFormatter
() =
default
;
10
~StringFormatter
()
override
=
default
;
11
12
StringFormatter
(
const
StringFormatter
&) =
delete
;
13
StringFormatter
&
operator=
(
const
StringFormatter
&) =
delete
;
14
StringFormatter
(
StringFormatter
&&) =
delete
;
15
StringFormatter
&
operator=
(
StringFormatter
&&) =
delete
;
16
17
[[nodiscard]]
18
std::string
addDots
(
const
std::string &str)
const override
;
19
[[nodiscard]]
20
std::string
removeDots
(
const
std::string &str)
const override
;
21
};
22
23
}
// namespace dotnamecpp::utils
IStringFormatter.hpp
dotnamecpp::utils::IStringFormatter
Interface for string formatting operations.
Definition
IStringFormatter.hpp:12
dotnamecpp::utils::StringFormatter::operator=
StringFormatter & operator=(const StringFormatter &)=delete
dotnamecpp::utils::StringFormatter::operator=
StringFormatter & operator=(StringFormatter &&)=delete
dotnamecpp::utils::StringFormatter::addDots
std::string addDots(const std::string &str) const override
Add thousand separators (dots) to numeric string.
Definition
StringFormatter.cpp:5
dotnamecpp::utils::StringFormatter::StringFormatter
StringFormatter(StringFormatter &&)=delete
dotnamecpp::utils::StringFormatter::StringFormatter
StringFormatter(const StringFormatter &)=delete
dotnamecpp::utils::StringFormatter::removeDots
std::string removeDots(const std::string &str) const override
Remove thousand separators (dots) from numeric string.
Definition
StringFormatter.cpp:24
dotnamecpp::utils::StringFormatter::StringFormatter
StringFormatter()=default
dotnamecpp::utils::StringFormatter::~StringFormatter
~StringFormatter() override=default
dotnamecpp::utils
Definition
DirectoryManager.cpp:5
src
Utils
String
StringFormatter.hpp
Generated by
1.14.0