Audacity 3.2.0
|
A class, that stores anonymized message. More...
#include <AnonymizedMessage.h>
Public Member Functions | |
AnonymizedMessage ()=default | |
Creates an empty message. More... | |
AnonymizedMessage (const AnonymizedMessage &)=default | |
AnonymizedMessage (AnonymizedMessage &&)=default | |
AnonymizedMessage & | operator= (const AnonymizedMessage &)=default |
AnonymizedMessage & | operator= (AnonymizedMessage &&)=default |
AnonymizedMessage (std::string message) | |
Creates a message from std::string. More... | |
AnonymizedMessage (const std::wstring &message) | |
Creates a message from std::wstring. More... | |
AnonymizedMessage (const wxString &message) | |
Creates a message from wxString. More... | |
AnonymizedMessage (const char *message) | |
Creates a message from const char*. More... | |
AnonymizedMessage (const wchar_t *message) | |
Creates a message from const wchar_t*. More... | |
bool | Empty () const noexcept |
Checks, if the message is empty. More... | |
size_t | Length () const noexcept |
Returns the length of the message. More... | |
const std::string & | GetString () const noexcept |
Returns the UTF8 representation of the message. More... | |
wxString | ToWXString () const noexcept |
Convert the message to wxString. More... | |
const char * | c_str () const noexcept |
Checks, if the message is empty. More... | |
size_t | length () const noexcept |
Returns the length of the message. More... | |
Private Member Functions | |
void | CleanupPaths () |
Private Attributes | |
std::string | mMessage |
A class, that stores anonymized message.
Input message is anonymized by looking for path-like patterns. Messages are stored in UTF8 format.
Definition at line 25 of file AnonymizedMessage.h.
|
default |
Creates an empty message.
|
default |
|
default |
audacity::sentry::AnonymizedMessage::AnonymizedMessage | ( | std::string | message | ) |
Creates a message from std::string.
Definition at line 22 of file AnonymizedMessage.cpp.
References CleanupPaths().
audacity::sentry::AnonymizedMessage::AnonymizedMessage | ( | const std::wstring & | message | ) |
Creates a message from std::wstring.
Definition at line 28 of file AnonymizedMessage.cpp.
audacity::sentry::AnonymizedMessage::AnonymizedMessage | ( | const wxString & | message | ) |
Creates a message from wxString.
Definition at line 33 of file AnonymizedMessage.cpp.
audacity::sentry::AnonymizedMessage::AnonymizedMessage | ( | const char * | message | ) |
Creates a message from const char*.
Definition at line 38 of file AnonymizedMessage.cpp.
audacity::sentry::AnonymizedMessage::AnonymizedMessage | ( | const wchar_t * | message | ) |
Creates a message from const wchar_t*.
Definition at line 43 of file AnonymizedMessage.cpp.
|
noexcept |
Checks, if the message is empty.
Definition at line 68 of file AnonymizedMessage.cpp.
References mMessage.
Referenced by audacity::sentry::Report::ReportImpl::ReportImpl(), and audacity::sentry::anonymous_namespace{SentryReport.cpp}::SerializeException().
|
private |
Definition at line 78 of file AnonymizedMessage.cpp.
References mMessage.
Referenced by AnonymizedMessage().
|
noexcept |
Checks, if the message is empty.
Definition at line 48 of file AnonymizedMessage.cpp.
References mMessage.
|
noexcept |
Returns the UTF8 representation of the message.
Definition at line 58 of file AnonymizedMessage.cpp.
References mMessage.
|
noexcept |
Returns the length of the message.
Definition at line 53 of file AnonymizedMessage.cpp.
References mMessage.
|
noexcept |
Returns the length of the message.
Definition at line 73 of file AnonymizedMessage.cpp.
References mMessage.
Referenced by audacity::sentry::Report::ReportImpl::ReportImpl(), and audacity::sentry::anonymous_namespace{SentryReport.cpp}::SerializeException().
|
default |
|
default |
|
noexcept |
Convert the message to wxString.
Definition at line 63 of file AnonymizedMessage.cpp.
References mMessage, and audacity::ToWXString().
|
private |
Definition at line 66 of file AnonymizedMessage.h.
Referenced by c_str(), CleanupPaths(), Empty(), GetString(), Length(), length(), and ToWXString().