MCPcopy Create free account
hub / github.com/devosoft/avida / Reverse

Method Reverse

avida-core/source/tools/cString.cc:447–455  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

445
446
447void cString::Reverse()
448{
449 cString new_st(GetSize());
450 for( int i=0; i<GetSize(); ++i ){
451 // new_st[i] = (*this)[GetSize()-i-1]; // @CAO Problem in new gcc
452 new_st[i] = value->GetData()[GetSize()-i-1];
453 }
454 (*this) = new_st;
455}
456
457
458void cString::CompressWhitespace()

Callers

nothing calls this directly

Calls 1

GetDataMethod · 0.45

Tested by

no test coverage detected