DotNameLib
Loading...
Searching...
No Matches
StringFormatter.hpp
Go to the documentation of this file.
1#pragma once
2
4
5namespace dotnamecpp::utils {
6
7 class StringFormatter final : public IStringFormatter {
8 public:
9 StringFormatter() = default;
10 ~StringFormatter() override = default;
11
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
Interface for string formatting operations.
Definition IStringFormatter.hpp:12
StringFormatter & operator=(const StringFormatter &)=delete
StringFormatter & operator=(StringFormatter &&)=delete
std::string addDots(const std::string &str) const override
Add thousand separators (dots) to numeric string.
Definition StringFormatter.cpp:5
StringFormatter(StringFormatter &&)=delete
StringFormatter(const StringFormatter &)=delete
std::string removeDots(const std::string &str) const override
Remove thousand separators (dots) from numeric string.
Definition StringFormatter.cpp:24
~StringFormatter() override=default
Definition DirectoryManager.cpp:5