-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathReplace.hpp
More file actions
30 lines (26 loc) · 1.23 KB
/
Replace.hpp
File metadata and controls
30 lines (26 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* Replace.hpp :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: zelhajou <zelhajou@student.1337.ma> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/06/07 12:18:48 by zelhajou #+# #+# */
/* Updated: 2024/06/07 12:21:11 by zelhajou ### ########.fr */
/* */
/* ************************************************************************** */
#ifndef REPLACE_HPP
# define REPLACE_HPP
# include <iostream>
class Replace
{
public:
Replace(const std::string &filename, const std::string &s1, const std::string &s2);
bool process();
private:
void replace_string(std::string &str, const std::string &s1, const std::string &s2);
std::string filename;
std::string s1;
std::string s2;
};
#endif