DotNameLib
Loading...
Searching...
No Matches
IStringFormatter.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <string>
4
5namespace dotnamecpp::utils {
6
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
Interface for string formatting operations.
Definition IStringFormatter.hpp:12
virtual std::string removeDots(const std::string &str) const =0
Remove thousand separators (dots) from numeric string.
virtual std::string addDots(const std::string &str) const =0
Add thousand separators (dots) to numeric string.
Definition DirectoryManager.cpp:5