|
|
@ -187,7 +187,7 @@ generate(Iter begin, Iter end, TQStringList& target)
|
|
|
|
// Check word-starting letters first.
|
|
|
|
// Check word-starting letters first.
|
|
|
|
for( j=0; j < item.length(); ++j ) {
|
|
|
|
for( j=0; j < item.length(); ++j ) {
|
|
|
|
if( isLegalAccelerator(item, j)
|
|
|
|
if( isLegalAccelerator(item, j)
|
|
|
|
&& !used_accels.contains(item[j])
|
|
|
|
&& !used_accels.tqcontains(item[j])
|
|
|
|
&& (0 == j || (j > 0 && item[j-1].isSpace())) ) {
|
|
|
|
&& (0 == j || (j > 0 && item[j-1].isSpace())) ) {
|
|
|
|
found = true;
|
|
|
|
found = true;
|
|
|
|
found_idx = j;
|
|
|
|
found_idx = j;
|
|
|
@ -199,7 +199,7 @@ generate(Iter begin, Iter end, TQStringList& target)
|
|
|
|
// No word-starting letter; search for any letter.
|
|
|
|
// No word-starting letter; search for any letter.
|
|
|
|
for( j=0; j < item.length(); ++j ) {
|
|
|
|
for( j=0; j < item.length(); ++j ) {
|
|
|
|
if( isLegalAccelerator(item, j)
|
|
|
|
if( isLegalAccelerator(item, j)
|
|
|
|
&& !used_accels.contains(item[j]) ) {
|
|
|
|
&& !used_accels.tqcontains(item[j]) ) {
|
|
|
|
found = true;
|
|
|
|
found = true;
|
|
|
|
found_idx = j;
|
|
|
|
found_idx = j;
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|