53 " (*.png)|*.[pP][nN][gG]",
57 " (*.png; *.gif)|*.png;*.gif",
58 " (*.png; *.gif)|*.[pP][nN][gG];*.[gG][iI][fF]",
81const static std::vector<std::string>
extensionList = {
"dxf",
"svg",
"SCH",
"^g.*" };
115 BOOST_TEST_INFO(
"Case insensitive test for extension " + testExt.ext );
116 BOOST_CHECK_EQUAL( extPresent_insense, testExt.insense_result );
118 BOOST_TEST_INFO(
"Case sensitive test for extension " + testExt.ext );
119 BOOST_CHECK_EQUAL( extPresent_sense, testExt.sense_result );
131 const std::string exp_filter =
136 BOOST_CHECK_EQUAL( resp, exp_filter );
155 BOOST_CHECK_EQUAL( resp, exp_filter );
Data used to construct a simple test of one or more extensions and get a filter string for WX dialogs...
std::vector< std::string > m_exts
The list of exts handled.
std::string m_re_filter
Filter for regex-capable environments (case insensitive filter in a case-sensitive environment)
std::string m_filter_case_insenstive
Filter for case-insensitive environments.
BOOST_AUTO_TEST_SUITE(CadstarPartParser)
BOOST_AUTO_TEST_SUITE_END()
static constexpr bool should_use_regex_filters()
static const std::vector< testExtensions > testExtensionList
BOOST_AUTO_TEST_CASE(FileNameComparison)
Check correct comparison of file names.
static const std::vector< std::string > extensionList
static const std::vector< ExtWildcardFilterCase > ext_wildcard_cases
static constexpr bool should_use_windows_filters()
wxString AddFileExtListToFilter(const std::vector< std::string > &aExts)
Build the wildcard extension file dialog wildcard filter to add to the base message dialog.
bool compareFileExtensions(const std::string &aExtension, const std::vector< std::string > &aReference, bool aCaseSensitive)
Compare the given extension against the reference extensions to see if it matches any of the referenc...
Definition of file extensions used in Kicad.