mirror of
https://github.com/Microsoft/calculator.git
synced 2025-08-21 05:43:10 -07:00
Changes order of units of Length to add Angstroms
This commit changes the order of the units of length so that Angstrom is before Nanometers. Increments orders of all other units by 1 and sets order of Angstroms to 1.
This commit is contained in:
parent
bee08deacb
commit
8d616db492
1 changed files with 15 additions and 15 deletions
|
@ -401,54 +401,54 @@ void UnitConverterDataLoader::GetUnits(_In_ unordered_map<ViewMode, vector<Order
|
||||||
|
|
||||||
vector<OrderedUnit> lengthUnits;
|
vector<OrderedUnit> lengthUnits;
|
||||||
lengthUnits.push_back(OrderedUnit{
|
lengthUnits.push_back(OrderedUnit{
|
||||||
UnitConverterUnits::Length_Angstrom, GetLocalizedStringName(L"UnitName_Angstrom"), GetLocalizedStringName(L"UnitAbbreviation_Angstrom"), 15 });
|
UnitConverterUnits::Length_Angstrom, GetLocalizedStringName(L"UnitName_Angstrom"), GetLocalizedStringName(L"UnitAbbreviation_Angstrom"), 1 });
|
||||||
lengthUnits.push_back(OrderedUnit{ UnitConverterUnits::Length_Centimeter,
|
lengthUnits.push_back(OrderedUnit{ UnitConverterUnits::Length_Centimeter,
|
||||||
GetLocalizedStringName(L"UnitName_Centimeter"),
|
GetLocalizedStringName(L"UnitName_Centimeter"),
|
||||||
GetLocalizedStringName(L"UnitAbbreviation_Centimeter"),
|
GetLocalizedStringName(L"UnitAbbreviation_Centimeter"),
|
||||||
4,
|
5,
|
||||||
useUSCustomary,
|
useUSCustomary,
|
||||||
useSI,
|
useSI,
|
||||||
false });
|
false });
|
||||||
lengthUnits.push_back(
|
lengthUnits.push_back(
|
||||||
OrderedUnit{ UnitConverterUnits::Length_Foot, GetLocalizedStringName(L"UnitName_Foot"), GetLocalizedStringName(L"UnitAbbreviation_Foot"), 8 });
|
OrderedUnit{ UnitConverterUnits::Length_Foot, GetLocalizedStringName(L"UnitName_Foot"), GetLocalizedStringName(L"UnitAbbreviation_Foot"), 9 });
|
||||||
lengthUnits.push_back(OrderedUnit{ UnitConverterUnits::Length_Inch,
|
lengthUnits.push_back(OrderedUnit{ UnitConverterUnits::Length_Inch,
|
||||||
GetLocalizedStringName(L"UnitName_Inch"),
|
GetLocalizedStringName(L"UnitName_Inch"),
|
||||||
GetLocalizedStringName(L"UnitAbbreviation_Inch"),
|
GetLocalizedStringName(L"UnitAbbreviation_Inch"),
|
||||||
7,
|
8,
|
||||||
useSI,
|
useSI,
|
||||||
useUSCustomary,
|
useUSCustomary,
|
||||||
false });
|
false });
|
||||||
lengthUnits.push_back(OrderedUnit{
|
lengthUnits.push_back(OrderedUnit{
|
||||||
UnitConverterUnits::Length_Kilometer, GetLocalizedStringName(L"UnitName_Kilometer"), GetLocalizedStringName(L"UnitAbbreviation_Kilometer"), 6 });
|
UnitConverterUnits::Length_Kilometer, GetLocalizedStringName(L"UnitName_Kilometer"), GetLocalizedStringName(L"UnitAbbreviation_Kilometer"), 7 });
|
||||||
lengthUnits.push_back(
|
lengthUnits.push_back(
|
||||||
OrderedUnit{ UnitConverterUnits::Length_Meter, GetLocalizedStringName(L"UnitName_Meter"), GetLocalizedStringName(L"UnitAbbreviation_Meter"), 5 });
|
OrderedUnit{ UnitConverterUnits::Length_Meter, GetLocalizedStringName(L"UnitName_Meter"), GetLocalizedStringName(L"UnitAbbreviation_Meter"), 6 });
|
||||||
lengthUnits.push_back(
|
lengthUnits.push_back(
|
||||||
OrderedUnit{ UnitConverterUnits::Length_Micron, GetLocalizedStringName(L"UnitName_Micron"), GetLocalizedStringName(L"UnitAbbreviation_Micron"), 2 });
|
OrderedUnit{ UnitConverterUnits::Length_Micron, GetLocalizedStringName(L"UnitName_Micron"), GetLocalizedStringName(L"UnitAbbreviation_Micron"), 3 });
|
||||||
lengthUnits.push_back(
|
lengthUnits.push_back(
|
||||||
OrderedUnit{ UnitConverterUnits::Length_Mile, GetLocalizedStringName(L"UnitName_Mile"), GetLocalizedStringName(L"UnitAbbreviation_Mile"), 10 });
|
OrderedUnit{ UnitConverterUnits::Length_Mile, GetLocalizedStringName(L"UnitName_Mile"), GetLocalizedStringName(L"UnitAbbreviation_Mile"), 11 });
|
||||||
lengthUnits.push_back(OrderedUnit{
|
lengthUnits.push_back(OrderedUnit{
|
||||||
UnitConverterUnits::Length_Millimeter, GetLocalizedStringName(L"UnitName_Millimeter"), GetLocalizedStringName(L"UnitAbbreviation_Millimeter"), 3 });
|
UnitConverterUnits::Length_Millimeter, GetLocalizedStringName(L"UnitName_Millimeter"), GetLocalizedStringName(L"UnitAbbreviation_Millimeter"), 4 });
|
||||||
lengthUnits.push_back(OrderedUnit{
|
lengthUnits.push_back(OrderedUnit{
|
||||||
UnitConverterUnits::Length_Nanometer, GetLocalizedStringName(L"UnitName_Nanometer"), GetLocalizedStringName(L"UnitAbbreviation_Nanometer"), 1 });
|
UnitConverterUnits::Length_Nanometer, GetLocalizedStringName(L"UnitName_Nanometer"), GetLocalizedStringName(L"UnitAbbreviation_Nanometer"), 2 });
|
||||||
lengthUnits.push_back(OrderedUnit{ UnitConverterUnits::Length_NauticalMile,
|
lengthUnits.push_back(OrderedUnit{ UnitConverterUnits::Length_NauticalMile,
|
||||||
GetLocalizedStringName(L"UnitName_NauticalMile"),
|
GetLocalizedStringName(L"UnitName_NauticalMile"),
|
||||||
GetLocalizedStringName(L"UnitAbbreviation_NauticalMile"),
|
GetLocalizedStringName(L"UnitAbbreviation_NauticalMile"),
|
||||||
11 });
|
12 });
|
||||||
lengthUnits.push_back(
|
lengthUnits.push_back(
|
||||||
OrderedUnit{ UnitConverterUnits::Length_Yard, GetLocalizedStringName(L"UnitName_Yard"), GetLocalizedStringName(L"UnitAbbreviation_Yard"), 9 });
|
OrderedUnit{ UnitConverterUnits::Length_Yard, GetLocalizedStringName(L"UnitName_Yard"), GetLocalizedStringName(L"UnitAbbreviation_Yard"), 10 });
|
||||||
lengthUnits.push_back(OrderedUnit{ UnitConverterUnits::Length_Paperclip,
|
lengthUnits.push_back(OrderedUnit{ UnitConverterUnits::Length_Paperclip,
|
||||||
GetLocalizedStringName(L"UnitName_Paperclip"),
|
GetLocalizedStringName(L"UnitName_Paperclip"),
|
||||||
GetLocalizedStringName(L"UnitAbbreviation_Paperclip"),
|
GetLocalizedStringName(L"UnitAbbreviation_Paperclip"),
|
||||||
12,
|
13,
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
true });
|
true });
|
||||||
lengthUnits.push_back(OrderedUnit{
|
lengthUnits.push_back(OrderedUnit{
|
||||||
UnitConverterUnits::Length_Hand, GetLocalizedStringName(L"UnitName_Hand"), GetLocalizedStringName(L"UnitAbbreviation_Hand"), 13, false, false, true });
|
UnitConverterUnits::Length_Hand, GetLocalizedStringName(L"UnitName_Hand"), GetLocalizedStringName(L"UnitAbbreviation_Hand"), 14, false, false, true });
|
||||||
lengthUnits.push_back(OrderedUnit{ UnitConverterUnits::Length_JumboJet,
|
lengthUnits.push_back(OrderedUnit{ UnitConverterUnits::Length_JumboJet,
|
||||||
GetLocalizedStringName(L"UnitName_JumboJet"),
|
GetLocalizedStringName(L"UnitName_JumboJet"),
|
||||||
GetLocalizedStringName(L"UnitAbbreviation_JumboJet"),
|
GetLocalizedStringName(L"UnitAbbreviation_JumboJet"),
|
||||||
14,
|
15,
|
||||||
false,
|
false,
|
||||||
false,
|
false,
|
||||||
true });
|
true });
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue