mirror of
https://github.com/xiaoyifang/goldendict-ng.git
synced 2024-11-23 20:14:05 +00:00
s
This commit is contained in:
parent
8f6ef372be
commit
d4d3e443b1
|
@ -1733,13 +1733,13 @@ vector< sptr< Dictionary::Class > > makeDictionaries( vector< string > const & f
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Make sure it's not an abbreviation file
|
// Make sure it's not an abbreviation file. extSize of ".dsl" or ".dsl.dz"
|
||||||
|
|
||||||
int extSize = ( uncompressedDsl ? 4 : 7 );
|
int extSize = ( uncompressedDsl ? 4 : 7 );
|
||||||
if ( fileName.size() - extSize >= 5
|
if ( fileName.size() >= ( 5 + extSize ) ) {
|
||||||
&& qstrnicmp( fileName.c_str() + fileName.size() - extSize - 5, "_abrv", 5 ) == 0 ) {
|
if ( QByteArrayView( fileName ).chopped( extSize ).last( 5 ).compare( "_abrv", Qt::CaseInsensitive ) ) {
|
||||||
// It is, skip it
|
// It is, skip it
|
||||||
continue;
|
continue;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned atLine = 0; // Indicates current line in .dsl, for debug purposes
|
unsigned atLine = 0; // Indicates current line in .dsl, for debug purposes
|
||||||
|
|
Loading…
Reference in a new issue