Audacity  3.0.3
Classes | Typedefs | Functions
TranslatableString.h File Reference
#include <stddef.h>
#include <functional>
#include <wx/string.h>
#include <vector>
Include dependency graph for TranslatableString.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  TranslatableString
 Holds a msgid for the translation catalog; may also bind format arguments. More...
 
struct  TranslatableString::PluralTemp< N >
 
struct  std::hash< TranslatableString >
 

Typedefs

using TranslatableStrings = std::vector< TranslatableString >
 

Functions

TranslatableString operator+ (TranslatableString x, TranslatableString y)
 
template<typename Sink >
Sink & operator<< (Sink &sink, const TranslatableString &str)
 Allow TranslatableString to work with shift output operators. More...
 
TranslatableString Verbatim (wxString str)
 Require calls to the one-argument constructor to go through this distinct global function name. More...
 

Typedef Documentation

◆ TranslatableStrings

Definition at line 295 of file TranslatableString.h.

Function Documentation

◆ operator+()

TranslatableString operator+ ( TranslatableString  x,
TranslatableString  y 
)
inline

Definition at line 289 of file TranslatableString.h.

291 {
292  return std::move(x += std::move(y));
293 }

◆ operator<<()

template<typename Sink >
Sink& operator<< ( Sink &  sink,
const TranslatableString str 
)
inline

Allow TranslatableString to work with shift output operators.

Definition at line 313 of file TranslatableString.h.

314 {
315  return sink << str.Translation();
316 }

References TranslatableString::Translation().

Here is the call graph for this function:

◆ Verbatim()

TranslatableString Verbatim ( wxString  str)
inline

Require calls to the one-argument constructor to go through this distinct global function name.

This makes it easier to locate and review the uses of this function, separately from the uses of the type.

Definition at line 321 of file TranslatableString.h.

322 { return TranslatableString( std::move( str ) ); }

Referenced by anonymous_namespace{PluginMenus.cpp}::AddEffectMenuItemGroup(), BatchEvalCommand::Apply(), MacroCommands::ApplyMacro(), ExportFFmpeg::AskResample(), NyquistEffect::BuildEffectWindow(), anonymous_namespace{ClipMenus.cpp}::FoundTrack::ComposeTrackName(), ImportFileHandle::CreateProgress(), CommandManager::DescribeCommandsAndShortcuts(), VSTEffectsModule::DiscoverPluginsAtPath(), anonymous_namespace{FileMenus.cpp}::DoExport(), PluginManager::DropFile(), EVT_COMMAND_RANGE(), ProjectFileIO::Exec(), LadspaEffect::GetDescription(), VampEffect::GetDescription(), TimerRecordDialog::GetDisplayDate(), ExportPCMOptions::GetEncodings(), GetFFmpegVersion(), Languages::GetLanguages(), GetMP3Version(), DevicePrefs::GetNamesAndLabels(), CommandManager::GetPrefixedLabelFromName(), LWSlider::GetTip(), ExportPCMOptions::GetTypes(), anonymous_namespace{HelpMenus.cpp}::HelpMenu(), Importer::Import(), ImportRawDialog::ImportRawDialog(), ExportFFmpeg::InitCodecs(), ExportPlugin::InitProgress(), Ruler::TickSizes::LabelString(), ApplyMacroDialog::OnApplyToFiles(), HelpActions::Handler::OnMenuTree(), MeterPanel::OnMouse(), PluginRegistrationDialog::OnOK(), MacrosWindow::OnRemove(), KeyConfigPrefs::OnSet(), XMLFileReader::Parse(), NyquistEffect::ParseFileTypes(), XMLFileReader::ParseString(), PitchName_Absolute(), FrequencyPlotDialog::Populate(), AccessibleLinksFormatter::Populate(), anonymous_namespace{PluginMenus.cpp}::PopulateMacrosMenu(), ExportMultipleDialog::PopulateOrExchange(), EffectEqualization::PopulateOrExchange(), EffectScienFilter::PopulateOrExchange(), VampEffect::PopulateOrExchange(), DevicePrefs::PopulateOrExchange(), ModulePrefs::PopulateOrExchange(), ThemePrefs::PopulateOrExchange(), SpectrumPrefs::PopulatePaddingChoices(), TimerRecordDialog::PreActionDelay(), NyquistEffect::Process(), NyquistEffect::ProcessOne(), ControlToolBar::RegenerateTooltips(), TimerRecordDialog::RunWaitDialog(), ProjectFileIO::SaveProject(), DBConnection::SetDBError(), ToolBar::SetLabel(), ProjectFileIO::SetProjectTitle(), DeviceToolBar::ShowComboDialog(), PrefsDialog::ShowModal(), AudioIO::StartStream(), NyquistEffect::UnQuoteMsgid(), MessageBoxTarget::Update(), AdornedRulerPanel::UpdateButtonStates(), MixerTrackCluster::UpdateForStateChange(), AButton::UpdateStatus(), and TimerRecordDialog::WaitForStart().

TranslatableString
Holds a msgid for the translation catalog; may also bind format arguments.
Definition: TranslatableString.h:32
TranslatableString::Translation
wxString Translation() const
Definition: TranslatableString.h:79