src/MuseRecordBasic.cpp
string MuseRecordBasic::extract(int start, int end) {
	string output;
	int count = end - start + 1;
	for (int i=0; i<count; i++) {
		if (i+start <= getLength()) {
			output += getColumn(i+start);
		} else {
			output += ' ';
		}
	}
	return output;
}
//////////////////////////////
//
// MuseRecordBasic::extract -- extracts the character columns from the
//	storage string.  Appends a null character to the end of the
//	copied string.
//
:extract -- extracts the character columns from the
storage string.  Appends a null character to the end of the
copied string.
: extract -- extracts the character columns from the storage string . Appends a null character to the end of the copied string .
string MuseRecordBasic::extract(int start, int end) {
	string output;
	int count = end - start + 1;
	for (int i=0; i<count; i++) {
		if (i+start <= getLength()) {
			output += getColumn(i+start);
		} else {
			output += ' ';
		}
	}
	return output;
}
string MuseRecordBasic :: extract ( int start , int end ) { string output ; int count = end - start + 1 ; for ( int i = 0 ; i < count ; i ++ ) { if ( i + start <= getLength ( ) ) { output += getColumn ( i + start ) ; } else { output += ' ' ; } } return output ; }
MuseRecordBasic::extract -- extracts the character columns from the
storage string.
MuseRecordBasic :: extract -- extracts the character columns from the storage string .