Go to the source code of this file.
|
#define | mAddCharToBufStr(bufstr, chr) { char str[2]; str[0] = mCast(char,chr); str[1] = '\0'; bufstr += str; } |
|
#define | mSepStrSize(fms) ( fms.isEmpty() ? 1 : fms.size() ) |
|
#define | mGetAmpFilteredStr(dest, src) |
|
#define | mGetEscConvertedFMS(fms, str, removecmdfileescapes) |
|
#define | mStripOuterBrackets(name, context) |
|
#define | mDressString(name, context, cleanup) |
|
#define | mDressNameString(name, context) mDressString( name, context, true ); |
|
#define | mDressUserInputString(name, context) mDressString( name, context, false ); |
|
#define | mIsSymbol(chr) ( !iswalnum(chr) && !iswspace(chr) ) |
|
#define | mGetColorString(color, isvalid, colorstr) |
|
#define | mUnscope(identstr, unscopedstr) const char* unscopedstr = *identstr=='@' ? identstr+1 : identstr; |
|
#define mAddCharToBufStr |
( |
|
bufstr, |
|
|
|
chr |
|
) |
| { char str[2]; str[0] = mCast(char,chr); str[1] = '\0'; bufstr += str; } |
#define mDressNameString |
( |
|
name, |
|
|
|
context |
|
) |
| mDressString( name, context, true ); |
#define mDressString |
( |
|
name, |
|
|
|
context, |
|
|
|
cleanup |
|
) |
| |
Value:{ \
if ( cleanup ) \
StringProcessor(name).cleanUp(); \
StringProcessor(name).addCmdFileEscapes( \
StringProcessor::context##EscSymbols() ); \
}
#define mStripOuterBrackets(name, context)
Definition: cmddriverbasics.h:53
#define mDressUserInputString |
( |
|
name, |
|
|
|
context |
|
) |
| mDressString( name, context, false ); |
#define mGetAmpFilteredStr |
( |
|
dest, |
|
|
|
src |
|
) |
| |
Value: StringProcessor(dest).filterAmpersands();
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
#define mGetColorString |
( |
|
color, |
|
|
|
isvalid, |
|
|
|
colorstr |
|
) |
| |
Value:\
FileMultiString colorstr; \
colorstr += isvalid ? (int) color.r() : 255; \
colorstr += isvalid ? (int) color.g() : 255; \
colorstr += isvalid ? (int) color.b() : 255; \
colorstr += isvalid ? (int) color.t() : 255; \
#define mGetEscConvertedFMS |
( |
|
fms, |
|
|
|
str, |
|
|
|
removecmdfileescapes |
|
) |
| |
Value:\
BufferString fms##bufstr( str ); \
StringProcessor( fms##bufstr ).addFileMultiStrEscapes(); \
if ( removecmdfileescapes ) \
StringProcessor( fms##bufstr ).removeCmdFileEscapes(); \
\
FileMultiString fms( fms##bufstr.buf() );
#define mIsSymbol |
( |
|
chr | ) |
( !iswalnum(chr) && !iswspace(chr) ) |
#define mSepStrSize |
( |
|
fms | ) |
( fms.isEmpty() ? 1 : fms.size() ) |
#define mStripOuterBrackets |
( |
|
name, |
|
|
|
context |
|
) |
| |
Value:StringProcessor(name).stripOuterBrackets( \
StringProcessor::context##VoidBeginBrackets(), \
StringProcessor::context##VoidEndBrackets() )
#define mUnscope |
( |
|
identstr, |
|
|
|
unscopedstr |
|
) |
| const char* unscopedstr = *identstr=='@' ? identstr+1 : identstr; |