Skip to content

Commit 67572d5

Browse files
Add octet to Information and octet/s to Bitrate (#1546)
The octet is commonly used in place of the byte in French speaking countries and Romania (I'm gonna trust Wikipedia on that one), and in telecoms and internet stantards.
1 parent d2648d7 commit 67572d5

File tree

22 files changed

+2359
-136
lines changed

22 files changed

+2359
-136
lines changed

Common/UnitDefinitions/BitRate.json

+13
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,19 @@
3535
"Abbreviations": [ "B/s" ]
3636
}
3737
]
38+
},
39+
{
40+
"SingularName": "OctetPerSecond",
41+
"PluralName": "OctetsPerSecond",
42+
"FromUnitToBaseFunc": "{x} * 8",
43+
"FromBaseToUnitFunc": "{x} / 8",
44+
"Prefixes": [ "Kilo", "Mega", "Giga", "Tera", "Peta", "Exa", "Kibi", "Mebi", "Gibi", "Tebi", "Pebi", "Exbi" ],
45+
"Localization": [
46+
{
47+
"Culture": "en-US",
48+
"Abbreviations": [ "o/s" ]
49+
}
50+
]
3851
}
3952
]
4053
}

Common/UnitDefinitions/Information.json

+13
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@
1616
}
1717
]
1818
},
19+
{
20+
"SingularName": "Octet",
21+
"PluralName": "Octets",
22+
"FromUnitToBaseFunc": "{x} * 8",
23+
"FromBaseToUnitFunc": "{x} / 8",
24+
"Prefixes": [ "Kilo", "Mega", "Giga", "Tera", "Peta", "Exa", "Kibi", "Mebi", "Gibi", "Tebi", "Pebi", "Exbi" ],
25+
"Localization": [
26+
{
27+
"Culture": "en-US",
28+
"Abbreviations": [ "o" ]
29+
}
30+
]
31+
},
1932
{
2033
"SingularName": "Bit",
2134
"PluralName": "Bits",

Common/UnitEnumValues.g.json

+28-2
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,20 @@
122122
"TebibitPerSecond": 23,
123123
"TebibytePerSecond": 24,
124124
"TerabitPerSecond": 25,
125-
"TerabytePerSecond": 26
125+
"TerabytePerSecond": 26,
126+
"ExaoctetPerSecond": 29,
127+
"ExbioctetPerSecond": 31,
128+
"GibioctetPerSecond": 32,
129+
"GigaoctetPerSecond": 35,
130+
"KibioctetPerSecond": 30,
131+
"KilooctetPerSecond": 27,
132+
"MebioctetPerSecond": 36,
133+
"MegaoctetPerSecond": 34,
134+
"OctetPerSecond": 28,
135+
"PebioctetPerSecond": 33,
136+
"PetaoctetPerSecond": 46,
137+
"TebioctetPerSecond": 42,
138+
"TeraoctetPerSecond": 40
126139
},
127140
"BrakeSpecificFuelConsumption": {
128141
"GramPerKiloWattHour": 1,
@@ -595,7 +608,20 @@
595608
"Tebibit": 23,
596609
"Tebibyte": 24,
597610
"Terabit": 25,
598-
"Terabyte": 26
611+
"Terabyte": 26,
612+
"Exaoctet": 33,
613+
"Exbioctet": 35,
614+
"Gibioctet": 27,
615+
"Gigaoctet": 28,
616+
"Kibioctet": 30,
617+
"Kilooctet": 32,
618+
"Mebioctet": 36,
619+
"Megaoctet": 34,
620+
"Octet": 31,
621+
"Pebioctet": 29,
622+
"Petaoctet": 39,
623+
"Tebioctet": 43,
624+
"Teraoctet": 40
599625
},
600626
"Irradiance": {
601627
"KilowattPerSquareCentimeter": 1,

UnitsNet.NanoFramework/GeneratedCode/Quantities/BitRate.g.cs

+156
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NanoFramework/GeneratedCode/Quantities/Information.g.cs

+156
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NanoFramework/GeneratedCode/Units/BitRateUnit.g.cs

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NanoFramework/GeneratedCode/Units/InformationUnit.g.cs

+13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

UnitsNet.NumberExtensions.Tests/GeneratedCode/NumberToBitRateExtensionsTest.g.cs

+52
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)