| 190 | } |
| 191 | |
| 192 | std::wstring BunitStr(const Bunit& unit) |
| 193 | { |
| 194 | switch (unit) { |
| 195 | case BunitB: |
| 196 | return L"B"; |
| 197 | case BunitkB: |
| 198 | return L"kB"; |
| 199 | case BunitMB: |
| 200 | return L"MB"; |
| 201 | case BunitGB: |
| 202 | return L"GB"; |
| 203 | case BunitTB: |
| 204 | return L"TB"; |
| 205 | } |
| 206 | return NULL; |
| 207 | } |
| 208 | |
| 209 | Tunit parseTUnit(const std::wstring& str) { |
| 210 | std::wstring wstr = to_lower_copy(str); |
no outgoing calls
no test coverage detected