mirror of
				https://github.com/catchorg/Catch2.git
				synced 2025-10-31 12:17:11 +01:00 
			
		
		
		
	Take changes to Clara from master
This commit is contained in:
		
							
								
								
									
										4
									
								
								include/external/clara.hpp
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										4
									
								
								include/external/clara.hpp
									
									
									
									
										vendored
									
									
								
							| @@ -370,7 +370,7 @@ inline auto Column::operator + (Column const& other) -> Columns { | |||||||
| // ----------- end of #include from clara_textflow.hpp ----------- | // ----------- end of #include from clara_textflow.hpp ----------- | ||||||
| // ........... back in clara.hpp | // ........... back in clara.hpp | ||||||
|  |  | ||||||
|  | #include <cctype> | ||||||
| #include <string> | #include <string> | ||||||
| #include <memory> | #include <memory> | ||||||
| #include <set> | #include <set> | ||||||
| @@ -664,7 +664,7 @@ namespace detail { | |||||||
|     } |     } | ||||||
|     inline auto convertInto( std::string const &source, bool &target ) -> ParserResult { |     inline auto convertInto( std::string const &source, bool &target ) -> ParserResult { | ||||||
|         std::string srcLC = source; |         std::string srcLC = source; | ||||||
|         std::transform( srcLC.begin(), srcLC.end(), srcLC.begin(), []( char c ) { return static_cast<char>( ::tolower(c) ); } ); |         std::transform( srcLC.begin(), srcLC.end(), srcLC.begin(), []( char c ) { return static_cast<char>( std::tolower(c) ); } ); | ||||||
|         if (srcLC == "y" || srcLC == "1" || srcLC == "true" || srcLC == "yes" || srcLC == "on") |         if (srcLC == "y" || srcLC == "1" || srcLC == "true" || srcLC == "yes" || srcLC == "on") | ||||||
|             target = true; |             target = true; | ||||||
|         else if (srcLC == "n" || srcLC == "0" || srcLC == "false" || srcLC == "no" || srcLC == "off") |         else if (srcLC == "n" || srcLC == "0" || srcLC == "false" || srcLC == "no" || srcLC == "off") | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Martin Hořeňovský
					Martin Hořeňovský