LeviLamina
Loading...
Searching...
No Matches
RedactableString.h
1#pragma once
2
3#include "mc/_HeaderOutputPredefine.h"
4
5// auto generated inclusion list
6#include "mc/platform/Result.h"
7
8namespace Bedrock::Safety {
9
11public:
12 // member variables
13 // NOLINTBEGIN
14 ::std::string mUnredactedString;
15 ::std::optional<::std::string> mRedactedString;
16 // NOLINTEND
17
18public:
19 RedactableString() = default;
20 RedactableString& operator=(RedactableString const&) = default;
21 RedactableString(RedactableString const&) = default;
22
23public:
24 // member functions
25 // NOLINTBEGIN
26 MCAPI RedactableString(::std::string&& unredactedString, ::std::optional<::std::string>&& redactedString);
27
28 MCAPI void append(::std::string rhs);
29
30 MCAPI ::Bedrock::Result<void> erase(uint64 offset, uint64 count);
31
32 MCAPI ::Bedrock::Safety::RedactableString& operator+=(::std::string const& unredactedSuffix);
33
34 MCAPI void operator+=(::Bedrock::Safety::RedactableString const& rhs);
35
36 MCAPI ::Bedrock::Safety::RedactableString& operator=(::Bedrock::Safety::RedactableString&&);
37
38 MCAPI ::Bedrock::Safety::RedactableString& operator=(::std::string&& unredactedString);
39
40 MCAPI bool operator==(::Bedrock::Safety::RedactableString const& rhs) const;
41
42 MCAPI void set(::std::string const& unredactedString);
43
44 MCAPI void set(::std::string&& unredactedString);
45
46 MCAPI void setRedacted(::std::optional<::std::string>&& redactedString);
47 // NOLINTEND
48
49public:
50 // constructor thunks
51 // NOLINTBEGIN
52 MCAPI void* $ctor(::std::string&& unredactedString, ::std::optional<::std::string>&& redactedString);
53 // NOLINTEND
54
55public:
56 // destructor thunk
57 // NOLINTBEGIN
58 MCFOLD void $dtor();
59 // NOLINTEND
60};
61
62} // namespace Bedrock::Safety
Definition RedactableString.h:10