mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
Merge 4349839c72 into 2aadc53a44
This commit is contained in:
commit
44465bd751
1 changed files with 4 additions and 4 deletions
|
|
@ -119,19 +119,19 @@ short_version (string orig, string::size_type target_length)
|
|||
orig.replace (pos, 1, "");
|
||||
}
|
||||
|
||||
/* remove upper-case vowels, starting at end */
|
||||
/* remove lower-case consonants, starting at end */
|
||||
|
||||
while (orig.length() > target_length) {
|
||||
if ((pos = orig.find_last_of (_("AEIOU"))) == string::npos) {
|
||||
if ((pos = orig.find_last_of (_("bcdfghjklmnpqrtvwxyz"))) == string::npos) {
|
||||
break;
|
||||
}
|
||||
orig.replace (pos, 1, "");
|
||||
}
|
||||
|
||||
/* remove lower-case consonants, starting at end */
|
||||
/* remove upper-case vowels, starting at end */
|
||||
|
||||
while (orig.length() > target_length) {
|
||||
if ((pos = orig.find_last_of (_("bcdfghjklmnpqrtvwxyz"))) == string::npos) {
|
||||
if ((pos = orig.find_last_of (_("AEIOU"))) == string::npos) {
|
||||
break;
|
||||
}
|
||||
orig.replace (pos, 1, "");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue