Add Binary Data units (bits, kilobytes, kibibytes ... yottabytes)

Authored by JJRcop on Jul 17 2019, 1:56 AM.

Description

Add Binary Data units (bits, kilobytes, kibibytes ... yottabytes)

Summary:
New data category BinaryDataCategory featuring bits and bytes, both SI units and powers of two, from normal bits all the way up to Yibibytes.

This only features ( positive SI prefix | IEC power of two prefix ) + ( bits | bytes ), and does not include units like nibbles (half a byte), octets (alternative form of byte), or prefixes that are less than 1. My reasoning behind this is to keep it clean and uncluttered.

FEATURE: 402798
FIXED-IN: 5.61

Test Plan:
Open KRunner and attempt to use new units.
New units show up successfully.

Reviewers: broulik, Plasma, ngraham

Reviewed By: ngraham

Subscribers: abetts, cfeck, apol, aacid, ngraham, kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D20181

Details

Committed
ngrahamJul 17 2019, 2:03 AM
Reviewer
ngraham
Differential Revision
D20181: Add Binary Data units (bits, kilobytes, kibibytes ... yottabytes)
Parents
R292:c5e8a1a826f3: Remove unused includes
Branches
Unknown
Tags
Unknown