]> granicus.if.org Git - icu/commitdiff
fixup! Rip out compound base unit calculation.
authorHugo van der Merwe <17109322+hugovdm@users.noreply.github.com>
Fri, 3 Apr 2020 09:52:41 +0000 (11:52 +0200)
committerHugo van der Merwe <17109322+hugovdm@users.noreply.github.com>
Fri, 3 Apr 2020 09:52:41 +0000 (11:52 +0200)
icu4c/source/i18n/unitsdata.cpp

index 2464ccbefa86b2a57f1bc8d8417401cd40c1244e..b80b50273a6fab307d35a71b2c23a1c7e2e1a9b2 100644 (file)
@@ -131,19 +131,9 @@ class ConversionRateDataSink : public ResourceSink {
 };
 
 /**
- * Collects conversion information for a "single unit" (a unit whose complexity
- * is UMEASURE_UNIT_SINGLE).
- *
- * This function currently only supports higher-dimensionality input units if
- * they map to "single unit" output units. This means it don't support
- * square-bar, one-per-bar, square-joule or one-per-joule. (Some unit types in
- * this class: volume, consumption, torque, force, pressure, speed,
- * acceleration, and more).
- *
- * TODO(hugovdm): maybe find and share (in documentation) a solid argument for
- * why these kinds of input units won't be needed with higher dimensionality? Or
- * start supporting them... Also: add unit tests demonstrating the
- * U_ILLEGAL_ARGUMENT_ERROR returned for such units.
+ * Collects conversion information for a "SINGLE" unit (a unit whose complexity
+ * is UMEASURE_UNIT_SINGLE). For a COMPOUND or SEQUENCE unit an error will
+ * occur.
  *
  * @param unit The input unit. Its complexity must be UMEASURE_UNIT_SINGLE, but
  * it may have a dimensionality != 1.