| 155 | } |
| 156 | |
| 157 | std::string bytesString( size_t size ) |
| 158 | { |
| 159 | if ( size < 1024 ) |
| 160 | return fmt::format( "{} bytes", size ); |
| 161 | if ( size < 1024*1024 ) |
| 162 | return fmt::format( "{:.2f} Kb", size / 1024.f ); |
| 163 | if ( size < 1024*1024*1024 ) |
| 164 | return fmt::format( "{:.2f} Mb", size / float(1024*1024) ); |
| 165 | return fmt::format( "{:.2f} Gb", size / float(1024*1024*1024) ); |
| 166 | } |
| 167 | |
| 168 | bool hasProhibitedChars( const std::string& line ) |
| 169 | { |
no outgoing calls
no test coverage detected