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
10class RedactableString {
11public:
12 // member variables
13 // NOLINTBEGIN
14 ::std::string mUnredactedString;
15 ::std::optional<::std::string> mRedactedString;
16 // NOLINTEND
17
18#ifdef LL_PLAT_S
19public:
20 RedactableString& operator=(RedactableString&&) = default;
21 RedactableString& operator=(RedactableString const&) = default;
22 RedactableString(RedactableString const&) = default;
23 RedactableString() = default;
24
25#else // LL_PLAT_C
26public:
27 RedactableString& operator=(RedactableString&&) = default;
28 RedactableString& operator=(RedactableString const&) = default;
29 RedactableString() = default;
30
31#endif
32public:
33 // member functions
34 // NOLINTBEGIN
35#ifdef LL_PLAT_C
36 MCAPI RedactableString(::Bedrock::Safety::RedactableString const&);
37#endif
38
39 MCAPI RedactableString(::std::string&& unredactedString, ::std::optional<::std::string>&& redactedString);
40
41 MCAPI void append(::std::string rhs);
42
43#ifdef LL_PLAT_C
44 MCAPI void clear();
45#endif
46
47 MCAPI ::Bedrock::Result<void> erase(uint64 offset, uint64 count);
48
49 MCAPI ::Bedrock::Safety::RedactableString operator+(::std::string const& str) const;
50
51 MCAPI ::Bedrock::Safety::RedactableString& operator+=(::std::string const& unredactedSuffix);
52
53 MCAPI void operator+=(::Bedrock::Safety::RedactableString const& rhs);
54
55 MCAPI ::Bedrock::Safety::RedactableString& operator=(::std::string&& unredactedString);
56
57 MCAPI bool operator==(::Bedrock::Safety::RedactableString const& rhs) const;
58
59 MCAPI void set(::std::string&& unredactedString);
60
61 MCAPI void set(::std::string const& unredactedString);
62
63 MCAPI void setRedacted(::std::optional<::std::string>&& redactedString);
64 // NOLINTEND
65
66public:
67 // constructor thunks
68 // NOLINTBEGIN
69#ifdef LL_PLAT_C
70 MCAPI void* $ctor(::Bedrock::Safety::RedactableString const&);
71#endif
72
73 MCAPI void* $ctor(::std::string&& unredactedString, ::std::optional<::std::string>&& redactedString);
74 // NOLINTEND
75
76public:
77 // destructor thunk
78 // NOLINTBEGIN
79 MCFOLD void $dtor();
80 // NOLINTEND
81};
82
83} // namespace Bedrock::Safety
Definition RedactableString.h:10