| 
									
										
										
										
											2016-04-20 11:57:49 +03:00
										 |  |  | #pragma once
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 15:26:33 +02:00
										 |  |  | #include <cstddef>
 | 
					
						
							| 
									
										
										
										
											2016-04-20 11:57:49 +03:00
										 |  |  | #include <string>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 15:26:33 +02:00
										 |  |  | std::size_t count_lines(const std::string &filename); | 
					
						
							| 
									
										
										
										
											2016-04-20 11:57:49 +03:00
										 |  |  | 
 | 
					
						
							|  |  |  | void prepare_logdir(); | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 15:26:33 +02:00
										 |  |  | std::string file_contents(const std::string &filename); | 
					
						
							| 
									
										
										
										
											2016-04-20 11:57:49 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 15:26:33 +02:00
										 |  |  | std::size_t count_lines(const std::string &filename); | 
					
						
							| 
									
										
										
										
											2016-04-20 11:57:49 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 15:26:33 +02:00
										 |  |  | std::size_t get_filesize(const std::string &filename); | 
					
						
							| 
									
										
										
										
											2016-04-20 11:57:49 +03:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2018-03-09 15:26:33 +02:00
										 |  |  | bool ends_with(std::string const &value, std::string const &ending); |