OpendTect  7.0
Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
CmdDrive::StringProcessor Class Reference

Public Member Functions

 StringProcessor (BufferString &bs)
 
 StringProcessor (const char *str)
 
void addCmdFileEscapes (const char *extraescapesymbols=0)
 
void addFileMultiStrEscapes ()
 
void appendCharElements (const char *tail)
 
const char * buf () const
 
void capitalize (bool yn=true)
 
void cleanUp ()
 
int consecutiveDQuoted (const char **remnant=0) const
 
bool convertToDouble (double *=0) const
 
bool convertToInt (int *=0) const
 
void filterAmpersands ()
 
const char * findAssignment (const char *tokens="=") const
 
const char * getCharElement (int idx) const
 
bool isEscapedSymbol (const char *) const
 
void makeDirSepIndep (int startpos=-1)
 
const char * nextAction (BufferString &) const
 
int nrCharElements () const
 
int nrDQuotes () const
 
const char * parseBracketed (BufferString &unbracketedstr, char begin='[', char end=']') const
 
const char * parseDQuoted (BufferString &unquotedstr) const
 
const char * parseIdentifier (BufferString &) const
 
char preParseProcedure (FileMultiString &key, FileMultiString &parameters) const
 
void removeCmdFileEscapes ()
 
void removeExtraSpace ()
 
int removeNumAppendix ()
 
bool removeTokenAppendix (char token)
 
void removeTrailingDots ()
 
char stripOuterBrackets (const char *beginsymbols, const char *endsymbols)
 

Static Public Member Functions

static const char * sAllEscSymbols ()
 
static const char * sDressVoidBeginBrackets ()
 
static const char * sDressVoidEndBrackets ()
 
static const char * sInputStrEscSymbols ()
 
static const char * sItemNameEscSymbols ()
 
static const char * sKeyStrEscSymbols ()
 
static const char * sMatchVoidBeginBrackets ()
 
static const char * sMatchVoidEndBrackets ()
 
static const char * sMenuPathEscSymbols ()
 
static const char * sTreePathEscSymbols ()
 
static const char * sWinAssertEscSymbols ()
 
static const char * sWinNameEscSymbols ()
 

Protected Attributes

BufferStringbufstr_
 
const char * constptr_
 

Detailed Description

<>

Constructor & Destructor Documentation

◆ StringProcessor() [1/2]

CmdDrive::StringProcessor::StringProcessor ( BufferString bs)
inline

◆ StringProcessor() [2/2]

CmdDrive::StringProcessor::StringProcessor ( const char *  str)
inline

Member Function Documentation

◆ addCmdFileEscapes()

void CmdDrive::StringProcessor::addCmdFileEscapes ( const char *  extraescapesymbols = 0)

◆ addFileMultiStrEscapes()

void CmdDrive::StringProcessor::addFileMultiStrEscapes ( )

◆ appendCharElements()

void CmdDrive::StringProcessor::appendCharElements ( const char *  tail)

◆ buf()

const char* CmdDrive::StringProcessor::buf ( ) const
inline

◆ capitalize()

void CmdDrive::StringProcessor::capitalize ( bool  yn = true)

◆ cleanUp()

void CmdDrive::StringProcessor::cleanUp ( )

◆ consecutiveDQuoted()

int CmdDrive::StringProcessor::consecutiveDQuoted ( const char **  remnant = 0) const

◆ convertToDouble()

bool CmdDrive::StringProcessor::convertToDouble ( double *  = 0) const

◆ convertToInt()

bool CmdDrive::StringProcessor::convertToInt ( int *  = 0) const

◆ filterAmpersands()

void CmdDrive::StringProcessor::filterAmpersands ( )

◆ findAssignment()

const char* CmdDrive::StringProcessor::findAssignment ( const char *  tokens = "=") const

◆ getCharElement()

const char* CmdDrive::StringProcessor::getCharElement ( int  idx) const

◆ isEscapedSymbol()

bool CmdDrive::StringProcessor::isEscapedSymbol ( const char *  ) const

◆ makeDirSepIndep()

void CmdDrive::StringProcessor::makeDirSepIndep ( int  startpos = -1)

◆ nextAction()

const char* CmdDrive::StringProcessor::nextAction ( BufferString ) const

◆ nrCharElements()

int CmdDrive::StringProcessor::nrCharElements ( ) const

◆ nrDQuotes()

int CmdDrive::StringProcessor::nrDQuotes ( ) const

◆ parseBracketed()

const char* CmdDrive::StringProcessor::parseBracketed ( BufferString unbracketedstr,
char  begin = '[',
char  end = ']' 
) const

◆ parseDQuoted()

const char* CmdDrive::StringProcessor::parseDQuoted ( BufferString unquotedstr) const

◆ parseIdentifier()

const char* CmdDrive::StringProcessor::parseIdentifier ( BufferString ) const

◆ preParseProcedure()

char CmdDrive::StringProcessor::preParseProcedure ( FileMultiString key,
FileMultiString parameters 
) const

◆ removeCmdFileEscapes()

void CmdDrive::StringProcessor::removeCmdFileEscapes ( )

◆ removeExtraSpace()

void CmdDrive::StringProcessor::removeExtraSpace ( )

◆ removeNumAppendix()

int CmdDrive::StringProcessor::removeNumAppendix ( )

◆ removeTokenAppendix()

bool CmdDrive::StringProcessor::removeTokenAppendix ( char  token)

◆ removeTrailingDots()

void CmdDrive::StringProcessor::removeTrailingDots ( )

◆ sAllEscSymbols()

static const char* CmdDrive::StringProcessor::sAllEscSymbols ( )
inlinestatic

◆ sDressVoidBeginBrackets()

static const char* CmdDrive::StringProcessor::sDressVoidBeginBrackets ( )
inlinestatic

◆ sDressVoidEndBrackets()

static const char* CmdDrive::StringProcessor::sDressVoidEndBrackets ( )
inlinestatic

◆ sInputStrEscSymbols()

static const char* CmdDrive::StringProcessor::sInputStrEscSymbols ( )
inlinestatic

◆ sItemNameEscSymbols()

static const char* CmdDrive::StringProcessor::sItemNameEscSymbols ( )
inlinestatic

◆ sKeyStrEscSymbols()

static const char* CmdDrive::StringProcessor::sKeyStrEscSymbols ( )
inlinestatic

◆ sMatchVoidBeginBrackets()

static const char* CmdDrive::StringProcessor::sMatchVoidBeginBrackets ( )
inlinestatic

◆ sMatchVoidEndBrackets()

static const char* CmdDrive::StringProcessor::sMatchVoidEndBrackets ( )
inlinestatic

◆ sMenuPathEscSymbols()

static const char* CmdDrive::StringProcessor::sMenuPathEscSymbols ( )
inlinestatic

◆ sTreePathEscSymbols()

static const char* CmdDrive::StringProcessor::sTreePathEscSymbols ( )
inlinestatic

◆ stripOuterBrackets()

char CmdDrive::StringProcessor::stripOuterBrackets ( const char *  beginsymbols,
const char *  endsymbols 
)

◆ sWinAssertEscSymbols()

static const char* CmdDrive::StringProcessor::sWinAssertEscSymbols ( )
inlinestatic

◆ sWinNameEscSymbols()

static const char* CmdDrive::StringProcessor::sWinNameEscSymbols ( )
inlinestatic

Member Data Documentation

◆ bufstr_

BufferString* CmdDrive::StringProcessor::bufstr_
protected

◆ constptr_

const char* CmdDrive::StringProcessor::constptr_
protected

Generated at for the OpendTect seismic interpretation project. Copyright (C): dGB Beheer B.V. 1995-2024