bool COrgOp::Decode_GetNextToken( CStr &roDst, CStr &roSrc ) const { int j = roSrc.Find( 0, ORG_OP_DELIM ); if( j < 0 ) return false; roDst = roSrc.GetSub( 0, j ); roSrc.Del( 0, j+1 ); // ORG_OP_DELIM auch löschen ORG_OP_LOG( "token: %s\n", roDst.GetData() ); return true; }
void CCurvePathBezier3::Load( const CStr &roData ) { Clear(); int i = 0; while( true ) { const int j = roData.Find( i, DELIM ); if( j < 0 ) break; CCurveBezier3 *poC = new CCurveBezier3; poC->Load( roData.GetSub( i, j-i ) ); m_oLstCurve.Append( poC ); i = j + 1; } }
bool COrgOp::Decode_GetNextLine( CStr &roDst, CStr &roSrc ) const { int j; j = roSrc.Find( 0, ORG_OP_DELIM ); if( j < 0 ) return false; roSrc.Del( 0, ++j ); j = roSrc.Find( 0, ORG_OP_NEWLINE ); if( j < 0 ) return false; roDst = roSrc.GetSub( 0, j ); roSrc.Del( 0, j+sizeof( ORG_OP_NEWLINE ) ); ORG_OP_LOG( "line: %s\n", roDst.GetData() ); return true; }