src/HumdrumFileBase.cpp
void HumdrumFileBase::insertLine(int index, const string& line) {
	HLp s = new HumdrumLine(line);
	m_lines.insert(m_lines.begin() + index, s);

	// Update the line indexes for this line and the following ones:
	for (int i=index; i<(int)m_lines.size(); i++) {
		m_lines[i]->setLineIndex(i);
	}
}
////////////////////////////
//
// HumdrumFileBase::insertLine -- Add a line to the file's contents.  The file's
//    spine and rhythmic structure should be recalculated after an append.
//
:insertLine -- Add a line to the file's contents.  The file's
spine and rhythmic structure should be recalculated after an append.
: insertLine -- Add a line to the file ' s contents . The file ' s spine and rhythmic structure should be recalculated after an append .
void HumdrumFileBase::insertLine(int index, const string& line) {
	HLp s = new HumdrumLine(line);
	m_lines.insert(m_lines.begin() + index, s);
	for (int i=index; i<(int)m_lines.size(); i++) {
		m_lines[i]->setLineIndex(i);
	}
}
void HumdrumFileBase :: insertLine ( int index , const string & line ) { HLp s = new HumdrumLine ( line ) ; m_lines . insert ( m_lines . begin ( ) + index , s ) ; for ( int i = index ; i < ( int ) m_lines . size ( ) ; i ++ ) { m_lines [ i ] -> setLineIndex ( i ) ; } }
HumdrumFileBase::insertLine -- Add a line to the file's contents.
HumdrumFileBase :: insertLine -- Add a line to the file ' s contents .
// Update the line indexes for this line and the following ones: