xtd 0.2.0
Loading...
Searching...
No Matches
replace_event_args.hpp
Go to the documentation of this file.
1
4#pragma once
5#include "message.hpp"
6#include <xtd/event_args>
7#include <cstdint>
8
10namespace xtd {
12 namespace forms {
24 public:
26
29 replace_event_args() = default;
35 replace_event_args(const xtd::string& find_string, const xtd::string& replace_string, bool match_case, bool whole_word) : find_string_(find_string), replace_string_(replace_string), match_case_(match_case), whole_word_(whole_word) {}
37
39 replace_event_args(const replace_event_args&) = default;
40 replace_event_args& operator =(const replace_event_args&) = default;
42
44
48 const xtd::string& find_string() const noexcept {return find_string_;}
49
52 const xtd::string& replace_string() const noexcept {return replace_string_;}
53
56 bool match_case() const noexcept {return match_case_;}
57
60 bool whole_word() const noexcept {return whole_word_;}
61
63
64 private:
65 xtd::string find_string_;
66 xtd::string replace_string_;
67 bool match_case_ = false;
68 bool whole_word_ = false;
69 };
70 }
71}
Represents text as a sequence of character units.
Definition basic_string.hpp:79
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
Provides data for the xtd::forms::replace_dialog::replace and xtd::forms::replace_dialog::replace_all...
Definition replace_event_args.hpp:23
const xtd::string & find_string() const noexcept
Gets the string to find.
Definition replace_event_args.hpp:48
bool whole_word() const noexcept
Gets the whole word value.
Definition replace_event_args.hpp:60
replace_event_args(const xtd::string &find_string, const xtd::string &replace_string, bool match_case, bool whole_word)
Initializes a new instance of the xtd::forms::replace_event_args class.
Definition replace_event_args.hpp:35
bool match_case() const noexcept
Gets the match case value.
Definition replace_event_args.hpp:56
replace_event_args()=default
Initializes a new instance of the xtd::forms::replace_event_args class.
const xtd::string & replace_string() const noexcept
Gets the replaced string.
Definition replace_event_args.hpp:52
Contains xtd::forms::message class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition xtd_about_box.hpp:12
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10