vdr
2.2.0
|
#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 & | 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::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 1074 of file tools.c.
References compactchars().
Referenced by cMenuRecordingEdit::Action(), cMenuPathEdit::ApplyChanges(), cMenuRecordingEdit::ApplyChanges(), and cSVDRP::CmdCPYR().
|
inline |
Definition at line 178 of file tools.h.
References safe_read(), safe_write(), strchrn(), strcountchr(), strcpyrealloc(), strn0cpy(), strreplace(), WriteAllOrNothing(), and writechar().
|
static |
Definition at line 1080 of file tools.c.
References esyslog.
Referenced by cTrueColorDemo::Action(), cMenuRecordingEdit::Action(), cPluginManager::Active(), cArgs::AddArg(), AddDirectory(), cPluginManager::AddPlugin(), cMenuPathEdit::ApplyChanges(), cMenuRecordingEdit::ApplyChanges(), cPlugin::CacheDirectory(), cShutdownHandler::CallShutdownCommand(), cMenuSetupCAMItem::Changed(), cMenuCommands::cMenuCommands(), cMenuFolderItem::cMenuFolderItem(), cMenuSetupPlugins::cMenuSetupPlugins(), cMenuRecordings::Commands(), cPlugin::ConfigDirectory(), cMenuEditFolder::Confirm(), cShutdownHandler::ConfirmShutdown(), cPictureMenu::cPictureMenu(), cRecordControl::cRecordControl(), cRecording::cRecording(), cRecordingInfo::cRecordingInfo(), cMenuFolder::DescendPath(), DrawDeviceData(), cSkinLCARSDisplayMenu::DrawDisk(), cSkinLCARSDisplayMenu::DrawInfo(), cSkinLCARSDisplayMenu::DrawLoad(), cSkinLCARSDisplayMenu::DrawTimer(), cSkinClassicDisplayMenu::DrawTitle(), cSkinCursesDisplayMenu::DrawTitle(), cSkinSTTNGDisplayMenu::DrawTitle(), cDvbDevice::DvbName(), cMenuCommands::Execute(), cRecording::FileName(), cSkinSTTNGDisplayChannel::Flush(), cMenuCam::GenerateTitle(), cDvbTuner::GetBondingParams(), cMenuFolder::GetFolder(), cEvent::GetParentalRatingString(), cDvbDeviceProbe::GetSubsystemId(), cOsdMenu::hk(), I18nInitialize(), I18nRegister(), cMenuRecordingItem::IncrementCounter(), cIndexFile::IndexFileName(), IndexToHMSF(), cDvbDevice::Initialize(), cRecordingUserCommand::InvokeCommand(), cThemes::Load(), cChannels::MarkObsoleteChannels(), cRecordings::MoveRecordings(), cChannel::Name(), cMenuRecordings::Open(), cMenuSchedule::PrepareScheduleAllThis(), cMenuSchedule::PrepareScheduleThisThis(), cDvbHdFfDeviceProbe::Probe(), cCiConditionalAccessSupport::Process(), cDvbDevice::QueryDeliverySystems(), cInterface::QueryKeys(), cArgs::ReadDirectory(), RecordingInUseMessage(), cPlugin::ResourceDirectory(), cThemes::Save(), cMenuFolder::Select(), cMenuEditIntxItem::Set(), cMenuEditSrcItem::Set(), cMenuChannelItem::Set(), cMenuTimerItem::Set(), cSkinLCARSDisplayChannel::SetChannel(), cSkinClassicDisplayMenu::SetEvent(), cSkinCursesDisplayMenu::SetEvent(), cSkinSTTNGDisplayMenu::SetEvent(), cSkinLCARSDisplayMenu::SetEvent(), cRecordingInfo::SetFileName(), cMenuEditTimer::SetFolder(), cMenuSetupPage::SetPlugin(), cSkinDisplayChannel::SetPositioner(), cSkinClassicDisplayMenu::SetRecording(), cSkinCursesDisplayMenu::SetRecording(), cSkinSTTNGDisplayMenu::SetRecording(), cSkinLCARSDisplayMenu::SetRecording(), SetRecordingsSortMode(), cMenuSetupPage::SetSection(), cMenuSetupLNB::Setup(), cMenuEditItem::SetValue(), cChannel::ShortName(), SpinUpDisk(), cSetup::Store(), cVideoDiskUsage::String(), cPluginSvdrpdemo::SVDRPCommand(), cRecording::Title(), cTimer::ToDescr(), cEvent::ToDescr(), cSatCableNumbers::ToString(), cTimer::ToText(), cChannel::ToText(), cMark::ToText(), cChannel::TransponderDataToString(), cCountdown::Update(), cMenuMain::Update(), cMenuScheduleItem::Update(), 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 1064 of file tools.c.
Referenced by cSVDRP::CmdGRAB(), cPictureControl::DisplayCaption(), cSkinLCARSDisplayMenu::DrawDate(), and cPictureMenu::Set().
|
static |
Definition at line 1093 of file tools.c.
References esyslog.
Referenced by cSVDRP::Reply(), and cThread::SetDescription().
|
private |
Definition at line 170 of file tools.h.
Referenced by cString(), and operator=().