Audacity 3.2.0
|
An explicitly nonlocalized string, not meant for the user to see. More...
#include <Identifier.h>
Public Member Functions | |
Identifier ()=default | |
Identifier (const wxString &str) | |
Allow implicit conversion to this class, but not from. More... | |
Identifier (const wxChar *str) | |
Allow implicit conversion to this class, but not from. More... | |
Identifier (const char *str) | |
Allow implicit conversion to this class, but not from. More... | |
Identifier (const Identifier &)=default | |
Identifier & | operator= (const Identifier &)=default |
Identifier (wxString &&str) | |
Identifier (Identifier &&id) | |
Identifier & | operator= (Identifier &&id) |
void | swap (Identifier &id) |
Identifier (std::initializer_list< Identifier > components, wxChar separator) | |
Convenience for building concatenated identifiers. More... | |
bool | empty () const |
size_t | size () const |
size_t | length () const |
const wxString & | GET () const |
Explicit conversion to wxString, meant to be ugly-looking and demanding of a comment why it's correct. More... | |
std::vector< Identifier > | split (wxChar separator) const |
Private Attributes | |
wxString | value |
An explicitly nonlocalized string, not meant for the user to see.
String manipulations are discouraged, other than splitting and joining on separator characters. Wherever GET is used to fetch the underlying wxString, there should be a comment explaining the need for it.
Definition at line 21 of file Identifier.h.
|
default |
|
inline |
|
inline |
Allow implicit conversion to this class, but not from.
Definition at line 31 of file Identifier.h.
|
inline |
Allow implicit conversion to this class, but not from.
Definition at line 34 of file Identifier.h.
|
default |
|
inline |
|
inline |
Definition at line 43 of file Identifier.h.
References anonymous_namespace{NoteTrack.cpp}::swap().
|
explicit |
Convenience for building concatenated identifiers.
The list must have at least two members (so you don't easily circumvent the restrictions on interconversions intended in TaggedIdentifier below)
Definition at line 14 of file Identifier.cpp.
References details::end(), and value.
|
inline |
Definition at line 61 of file Identifier.h.
Referenced by audacity::cloud::audiocom::sync::AudioComDialogBase::AudioComDialogBase(), ToolBarConfiguration::FindToolBar(), PluginManager::GetByCommandIdentifier(), audacity::cloud::audiocom::sync::anonymous_namespace{AudioComDialogBase.cpp}::GetOptionalPrefsIdentifier(), CommandManager::HandleTextualCommand(), MacrosWindow::InsertCommandAt(), NumericConverterFormats::Lookup(), CommandManager::Populator::NewIdentifier(), ThemeBase::ReadImageCache(), NumericConverter::SetFormatName(), HelpSystem::ShowHelp(), and NumericConverter::UpdateFormatter().
|
inline |
Explicit conversion to wxString, meant to be ugly-looking and demanding of a comment why it's correct.
Definition at line 66 of file Identifier.h.
Referenced by audacity::cloud::audiocom::sync::AudioComDialogBase::AudioComDialogBase(), TaggedIdentifier< Tag, CaseSensitive >::CONVERT(), ProjectStatus::DefaultFieldsRegistrator::DefaultFieldsRegistrator(), NormalizedKeyString::Display(), Journal::WindowPaths::FindByPath(), anonymous_namespace{ProjectFileManager.cpp}::FindHelpUrl(), CommandManager::CommandListEntry::FormatLabelForMenu(), audacity::cloud::audiocom::sync::anonymous_namespace{AudioComDialogBase.cpp}::GetOptionalPrefsIdentifier(), KeyConfigPrefs::MergeWithExistingKeys(), CommandManager::Populator::NewIdentifier(), anonymous_namespace{BatchProcessDialog.cpp}::OnApplyMacroDirectly(), CommandDispatch::OnAudacityCommand(), anonymous_namespace{PluginMenus.cpp}::OnEffect(), ErrorDialog::OnHelp(), ErrorReportDialog::OnHelp(), MacroCommandDialog::OnItemSelected(), AudioUnitEffectOptionsDialog::OnOk(), OpenInDefaultBrowser(), operator<(), operator==(), TimeToolBar::Populate(), ProjectSelectionManager::SetBandwidthSelectionFormatName(), SpectralSelectionBar::SetBandwidthSelectionFormatName(), ProjectSelectionManager::SetFrequencySelectionFormatName(), SpectralSelectionBar::SetFrequencySelectionFormatName(), ProjectSnap::SetSnapTo(), HelpSystem::ShowHelp(), EffectChangeSpeed::TransferDataFromWindow(), SpectralSelectionBar::UpdatePrefs(), TimeToolBar::UpdatePrefs(), Journal::Events::anonymous_namespace{JournalEvents.cpp}::WindowEventName(), XMLUtf8BufferWriter::WriteAttr(), XMLWriter::WriteAttr(), and ToolManager::WriteConfig().
|
inline |
Definition at line 63 of file Identifier.h.
|
default |
|
inline |
Definition at line 45 of file Identifier.h.
References anonymous_namespace{NoteTrack.cpp}::swap().
|
inline |
Definition at line 62 of file Identifier.h.
std::vector< Identifier > Identifier::split | ( | wxChar | separator | ) | const |
Definition at line 28 of file Identifier.cpp.
References value.
|
inline |
Definition at line 53 of file Identifier.h.
|
private |
Definition at line 71 of file Identifier.h.
Referenced by Identifier(), and split().