mirror of
https://github.com/microsoft/PowerToys.git
synced 2024-12-22 16:08:00 +08:00
2.4 KiB
2.4 KiB
Unit Converter Plugin
The Unit Convert plugin as the name suggests is used to perform unit conversion on the user entered query. This plugin uses a package called UnitsNet.
Currently Supported Units
- Acceleration
- Angle
- Area
- Duration
- Energy
- Information
- Length
- Mass
- Power
- Pressure
- Speed
- Temperature
- Volume
These are the ones that are currently enabled (though UnitsNet supports many more). They are defined in Main.cs
.
InputInterpreter
- Class which manipulates user input such that it may be interpreted correctly and thus converted.
- Uses a regex amongst other things to do this.
UnitHandler
- Class that does the actual conversion.
- Supports abbreviations in user input (single, double, or none).