xtd 1.0.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
43 [[nodiscard]] auto find_string() const noexcept -> const xtd::string& {return find_string_;}
44
47 [[nodiscard]] auto replace_string() const noexcept -> const xtd::string& {return replace_string_;}
48
51 [[nodiscard]] auto match_case() const noexcept -> bool {return match_case_;}
52
55 [[nodiscard]] auto whole_word() const noexcept -> bool {return whole_word_;}
56
58
59 private:
60 xtd::string find_string_;
61 xtd::string replace_string_;
62 bool match_case_ = false;
63 bool whole_word_ = false;
64 };
65 }
66}
Represents the base class for classes that contain event data, and provides a value to use for events...
Definition event_args.hpp:18
auto find_string() const noexcept -> const xtd::string &
Gets the string to find.
Definition replace_event_args.hpp:43
auto match_case() const noexcept -> bool
Gets the match case value.
Definition replace_event_args.hpp:51
auto whole_word() const noexcept -> bool
Gets the whole word value.
Definition replace_event_args.hpp:55
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
auto replace_string() const noexcept -> const xtd::string &
Gets the replaced string.
Definition replace_event_args.hpp:47
replace_event_args()=default
Initializes a new instance of the xtd::forms::replace_event_args class.
xtd::basic_string< char > string
Represents text as a sequence of UTF-8 code units.
Definition __string_definitions.hpp:43
Contains xtd::forms::message class.
The xtd::forms namespace contains classes for creating Windows-based applications that take full adva...
Definition texts.hpp:219
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8