isEndOfChorus method
Remove also the keyword
Implementation
bool isEndOfChorus() {
const String endOfChorusAbbreviation = '{eoc}';
const String endOfChorus = '{end_of_chorus}';
bool out = lyrics.contains(endOfChorus) ||
lyrics.contains(endOfChorusAbbreviation);
if (out) {
lyrics = lyrics.replaceAll(endOfChorus, '');
lyrics = lyrics.replaceAll(endOfChorusAbbreviation, '');
}
return out;
}