vdr 2.6.4
|
#include <tools.h>
Public Member Functions | |
cString (const char *S=NULL, bool TakePointer=false) | |
cString (const char *S, const char *To) | |
cString (const cString &String) | |
virtual | ~cString () |
operator const void * () const | |
operator const char * () const | |
const char * | operator* () const |
cString & | operator= (const cString &String) |
cString & | operator= (const char *String) |
cString & | Append (const char *String) |
cString & | Truncate (int Index) |
cString & | CompactChars (char c) |
Static Public Member Functions | |
static cString | sprintf (const char *fmt,...) __attribute__((format(printf |
static cString static cString | vsprintf (const char *fmt, va_list &ap) |
Private Attributes | |
char * | s |
cString::cString | ( | const char * | S = NULL , |
bool | TakePointer = false |
||
) |
cString::cString | ( | const char * | S, |
const char * | To | ||
) |
cString & cString::Append | ( | const char * | String | ) |
cString & cString::CompactChars | ( | char | c | ) |
Compact any sequence of characters 'c' to a single character, and strip all of them from the beginning and end of this string.
Definition at line 1143 of file tools.c.
References compactchars(), and s.
Referenced by cMenuRecordingEdit::Action(), cMenuPathEdit::ApplyChanges(), cMenuRecordingEdit::ApplyChanges(), and cSVDRPServer::CmdCPYR().
|
inline |
|
inline |
|
inline |
cString & cString::operator= | ( | const char * | String | ) |
|
static |
Definition at line 1149 of file tools.c.
References esyslog.
Referenced by cMenuRecordingEdit::Action(), cTrueColorDemo::Action(), cIndexFileGenerator::Action(), cPluginManager::Active(), cArgs::AddArg(), AddDirectory(), cPluginManager::AddPlugin(), cMenuPathEdit::ApplyChanges(), cMenuRecordingEdit::ApplyChanges(), cPlugin::CacheDirectory(), cShutdownHandler::CallShutdownCommand(), cDvbTuner::cDvbTuner(), cMenuSetupCAMItem::Changed(), cChannel::ClearObsoleteChannel(), cMenuCommands::cMenuCommands(), cMenuPathEdit::cMenuPathEdit(), cMenuSetupPlugins::cMenuSetupPlugins(), cMenuRecordings::Commands(), cPlugin::ConfigDirectory(), cMenuEditFolder::Confirm(), cShutdownHandler::ConfirmShutdown(), cPictureMenu::cPictureMenu(), cRecordControl::cRecordControl(), cRecording::cRecording(), cRecording::cRecording(), cRecordingInfo::cRecordingInfo(), cBackTrace::Demangle(), cMenuFolder::DescendPath(), DrawDeviceData(), cSkinLCARSDisplayMenu::DrawDisk(), cSkinLCARSDisplayMenu::DrawInfo(), cSkinLCARSDisplayMenu::DrawLoad(), cSkinLCARSDisplayMenu::DrawTimer(), cSkinCursesDisplayMenu::DrawTitle(), cSkinClassicDisplayMenu::DrawTitle(), cSkinSTTNGDisplayMenu::DrawTitle(), DvbName(), cMenuCommands::Execute(), cRecording::FileName(), cSkinSTTNGDisplayChannel::Flush(), cMenuCam::GenerateTitle(), cDvbTuner::GetBondingParams(), cMenuFolder::GetFolder(), cEvent::GetParentalRatingString(), cDvbDeviceProbe::GetSubsystemId(), HandleRemoteTimerModifications(), cOsdMenu::hk(), I18nInitialize(), I18nRegister(), cMenuRecordingItem::IncrementCounter(), cIndexFile::IndexFileName(), IndexToHMSF(), cDvbDevice::Initialize(), cRecordingUserCommand::InvokeCommand(), cThemes::Load(), cChannels::MarkObsoleteChannels(), cRecordings::MoveRecordings(), cChannel::Name(), cMenuTimers::OnOff(), cMenuRecordings::Open(), cMpeg2Parser::Parse(), cH264Parser::ParseSequenceParameterSet(), cH265Parser::ParseSequenceParameterSet(), cTimer::PatternAndFile(), cMenuSchedule::PrepareScheduleAllThis(), cMenuSchedule::PrepareScheduleThisThis(), cDvbHdFfDeviceProbe::Probe(), cCiConditionalAccessSupport::Process(), cSVDRPClientHandler::ProcessConnections(), cDvbFrontend::QueryDeliverySystems(), cInterface::QueryKeys(), cArgs::ReadDirectory(), RecordingInUseMessage(), RemoteTimerError(), RemoteTimerError(), cSVDRPServer::Reply(), cPlugin::ResourceDirectory(), cThemes::Save(), cChannelCamRelations::Save(), cMenuFolder::Select(), cSVDRPClientHandler::SendDiscover(), cIpAddress::Set(), cMenuEditSrcItem::Set(), cMenuChannelItem::Set(), cMenuFolderItem::Set(), cMenuTimerItem::Set(), cMenuEditIntxItem::Set(), cMenuEditTimeItem::Set(), cSkinLCARSDisplayChannel::SetChannel(), cSkinCursesDisplayMenu::SetEvent(), cSkinClassicDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cRecordingInfo::SetFileName(), cMenuEditTimer::SetFolder(), cMenuSetupPage::SetPlugin(), cSkinDisplayChannel::SetPositioner(), cSkinCursesDisplayMenu::SetRecording(), cSkinClassicDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), SetRecordingsSortMode(), cMenuSetupPage::SetSection(), cMenuSetupLNB::Setup(), cMenuEditItem::SetValue(), cChannel::ShortName(), SpinUpDisk(), cCutter::Start(), cSetup::Store(), cTimers::StoreRemoteTimers(), cVideoDiskUsage::String(), cPluginSvdrpdemo::SVDRPCommand(), cRecording::Title(), cEvent::ToDescr(), cTimer::ToDescr(), cSatCableNumbers::ToString(), cTimer::ToText(), cChannel::ToText(), cMark::ToText(), cChannel::TransponderDataToString(), cMenuMain::Update(), cMenuScheduleItem::Update(), cCountdown::Update(), cCamSlots::WaitForAllCamSlotsReady(), cRecording::WriteInfo(), and cSubtitleDebug::WriteJpeg().
cString & cString::Truncate | ( | int | Index | ) |
Truncate the string at the given Index (if Index is < 0 it is counted from the end of the string).
Definition at line 1133 of file tools.c.
References s.
Referenced by cSVDRPServer::CmdGRAB(), cPictureControl::DisplayCaption(), cSkinLCARSDisplayMenu::DrawDate(), and cPictureMenu::Set().
|
static |
Definition at line 1162 of file tools.c.
References esyslog.
Referenced by cThread::SetDescription().
|
private |
Definition at line 180 of file tools.h.
Referenced by Append(), cNullTerminate::cNullTerminate(), CompactChars(), cString(), cString(), cString(), operator const char *(), operator const void *(), operator*(), operator=(), operator=(), cNullTerminate::Set(), skipspace(), strgetlast(), Truncate(), and ~cString().