Format sizes to human readable format.
这个玩意儿是 Project Rhinestone 的副产品, 顺手把能支持的标准和格式都尽量支持了.
Features
* 2 standards: Decimal (1000), Binary (1024);
* 9 prefixes: none, K, M, G, T, P, E, Z, Y;
* 4 prefix types (expanded & abbreviated): Hybrid (used by Apple), Metric, JEDEC, IEC;
* 2 base units (expanded & abbreviated): byte (B), bit (b);
* Customizable available prefixes range;
* Customizable abbrev cap;
* Customizable number of digits after decimal point;
* Customizable option for trimming trailing zeros after decimal point;
* Customizable option for whether to use "Zero" to replace "0" when the size is 0.
ref:
https://github.com/AlexRezit/PRSizeFormatter