src/HumdrumFileBase.cpp
void HumdrumFileBase::addUniqueTokens(vector<HTp>& target,
		vector<HTp>& source) {
	int i, j;
	bool found;
	for (i=0; i<(int)source.size(); i++) {
		found = false;
		for (j=0; j<(int)target.size(); j++) {
			if (source[i] == target[i]) {
				found = true;
			}
		}
		if (!found) {
			target.push_back(source[i]);
		}
	}
}
//////////////////////////////
//
// HumdrumFileBase::addUniqueTokens -- Used for non-null token analysis.  The
//    analysis is recursive like rhythmic analysis in the HumdrumFileStructure
//    class, but this algorithm does not terminate secondary traversals when
//    recursing.  Perhaps that should be fixed (utilizing the "rhycheck"
//    variable in HumdrumTokens)
//
:addUniqueTokens -- Used for non-null token analysis.  The
analysis is recursive like rhythmic analysis in the HumdrumFileStructure
class, but this algorithm does not terminate secondary traversals when
recursing.  Perhaps that should be fixed (utilizing the "rhycheck"
variable in HumdrumTokens)
: addUniqueTokens -- Used for non - null token analysis . The analysis is recursive like rhythmic analysis in the HumdrumFileStructure class but this algorithm does not terminate secondary traversals when recursing . Perhaps that should be fixed ( utilizing the " rhycheck " variable in HumdrumTokens )
void HumdrumFileBase::addUniqueTokens(vector<HTp>& target,
		vector<HTp>& source) {
	int i, j;
	bool found;
	for (i=0; i<(int)source.size(); i++) {
		found = false;
		for (j=0; j<(int)target.size(); j++) {
			if (source[i] == target[i]) {
				found = true;
			}
		}
		if (!found) {
			target.push_back(source[i]);
		}
	}
}
void HumdrumFileBase :: addUniqueTokens ( vector < HTp > & target , vector < HTp > & source ) { int i , j ; bool found ; for ( i = 0 ; i < ( int ) source . size ( ) ; i ++ ) { found = false ; for ( j = 0 ; j < ( int ) target . size ( ) ; j ++ ) { if ( source [ i ] == target [ i ] ) { found = true ; } } if ( ! found ) { target . push_back ( source [ i ] ) ; } } }
HumdrumFileBase::addUniqueTokens -- Used for non-null token analysis.
HumdrumFileBase :: addUniqueTokens -- Used for non - null token analysis .