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& operator=(RedactableString&&) = default;
22 RedactableString(RedactableString const&) = default;
23
24public:
25 // member functions
26 // NOLINTBEGIN
27 MCAPI RedactableString(::std::string&& unredactedString, ::std::optional<::std::string>&& redactedString);
28
29 MCAPI void append(::std::string rhs);
30
31 MCAPI ::Bedrock::Result<void> erase(uint64 offset, uint64 count);
32
33 MCAPI ::Bedrock::Safety::RedactableString& operator+=(::std::string const& unredactedSuffix);
34
35 MCAPI void operator+=(::Bedrock::Safety::RedactableString const& rhs);
36
37 MCAPI ::Bedrock::Safety::RedactableString& operator=(::std::string&& unredactedString);
38
39 MCAPI bool operator==(::Bedrock::Safety::RedactableString const& rhs) const;
40
41 MCAPI void set(::std::string&& unredactedString);
42
43 MCAPI void setRedacted(::std::optional<::std::string>&& redactedString);
44 // NOLINTEND
45
46public:
47 // constructor thunks
48 // NOLINTBEGIN
49 MCAPI void* $ctor(::std::string&& unredactedString, ::std::optional<::std::string>&& redactedString);
50 // NOLINTEND
51
52public:
53 // destructor thunk
54 // NOLINTBEGIN
55 MCFOLD void $dtor();
56 // NOLINTEND
57};
58
59} // namespace Bedrock::Safety
Definition RedactableString.h:10