Skip to content

Commit

Permalink
425: Add new Metric Prefixes to EBNFUnitFormat
Browse files Browse the repository at this point in the history
Task-Url: #425
  • Loading branch information
keilw committed Oct 3, 2024
1 parent b3cce33 commit 9d66132
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@
import javax.measure.format.MeasurementParseException;

import tech.units.indriya.AbstractUnit;
import tech.units.indriya.format.SimpleUnitFormat.Flavor;
import tech.units.indriya.internal.format.UnitFormatParser;
import tech.units.indriya.unit.AnnotatedUnit;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,6 @@ private int formatInternal(Unit<?> unit, Appendable buffer) throws IOException {
// unit.
buffer.append(unit.getSymbol());
return NOOP_PRECEDENCE;
// TODO add case for MixedUnit
} else { // A transformed unit or new unit type!
UnitConverter converter = null;
boolean printSeparator = false;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
# 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions
# and the following disclaimer in the documentation and/or other materials provided with the distribution.
#
# 3. Neither the name of JSR-363 nor the names of its contributors may be used to endorse or promote products
# 3. Neither the name of JSR-385 nor the names of its contributors may be used to endorse or promote products
# derived from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
Expand Down Expand Up @@ -73,10 +73,6 @@ tech.units.indriya.unit.Units.CELSIUS = \u00B0C
tech.units.indriya.unit.Units.CELSIUS.1 = \u2103
tech.units.indriya.unit.Units.CELSIUS.2 = Celsius
tech.units.indriya.unit.Units.COULOMB = C
#tech.units.indriya.unit.Units.DEGREE_ANGLE = \u00B0
#tech.units.indriya.unit.Units.MINUTE_ANGLE = '
#tech.units.indriya.unit.Units.SECOND_ANGLE = "
#tech.units.indriya.unit.Units.ELECTRON_VOLT = eV
tech.units.indriya.unit.Units.FARAD = F
tech.units.indriya.unit.Units.GRAM = g
tech.units.indriya.unit.Units.GRAY = Gy
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ tech.units.indriya.unit.Units.HERTZ.2 = \u30D8\u30EB\u30C4
tech.units.indriya.unit.Units.METRE = \u7C73
#tech.units.indriya.unit.Units.ROENTGEN = \u306E
tech.units.indriya.unit.Units.SECOND = \u79D2
#tech.units.indriya.unit.US.LITER = \u5347
#tech.units.indriya.unit.US.METER = \u7C73
#tech.units.indriya.unit.US.TON = \u30C8\u30F3
javax.measure.MetricPrefix.CENTI = \u5398
javax.measure.MetricPrefix.DECI = \u5206
javax.measure.MetricPrefix.DECA = \u5341
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#
# Units of Measurement Reference Implementation
# Copyright (c) 2005-2020, Jean-Marie Dautelle, Werner Keil, Otavio Santana.
# Copyright (c) 2005-2024, Jean-Marie Dautelle, Werner Keil, Otavio Santana.
#
# All rights reserved.
#
Expand Down

0 comments on commit 9d66132

Please sign in to comment.