void Domain::ToString( AString& tAString ) { tAString << FullPath; tAString._('[')._( Format::Int32( CntLogCalls,3 ) )._("] "); // get verbosities tAString._(" { "); for( size_t i= 0; i < Data.size() ; i++ ) { LoggerData& ld= Data[i]; tAString._(i!=0 ? ", " : "" ) ._('(') ._('[')._( Format::Int32(ld.LogCallsPerDomain, 3) )._( "], " ); aworx::lox::ToString( ld.LoggerVerbosity, ld.Priority, tAString ) ._( ')' ); } tAString._(" }"); }
//--------------------------------------------------------------------------------------------------------- //--- Tokenizer //--------------------------------------------------------------------------------------------------------- void tokenizerTest( const char* inputString, AString& res, char delim, char newDelim, Whitespaces trim, int inpStart= -1, int inpEnd= -1 ) { Substring inp( inputString ); if ( inpStart < 0 ) inpStart= 0; if ( inpEnd < 0 ) inpEnd= inp.Length() - 1; inp.Set( inp, inpStart, inpEnd-inpStart +1 ); res.Clear(); Tokenizer tok( inp, delim ); while( tok.HasNext() ) { res._( tok.Next(trim) ); res._( newDelim ); } }
template<> void write( AString* val, AString& target ) { target._(val); }