ICU-21349 Improve forIdentifier docs to exclude long_unit_identifier.

This commit is contained in:
Hugo van der Merwe 2021-01-14 20:57:53 +01:00
parent 1c61c57ece
commit 01da2732b7
2 changed files with 7 additions and 5 deletions

View file

@ -375,14 +375,15 @@ class U_I18N_API MeasureUnit: public UObject {
MeasureUnit(MeasureUnit &&other) noexcept;
/**
* Construct a MeasureUnit from a CLDR Unit Identifier, defined in UTS 35.
* Validates and canonicalizes the identifier.
* Construct a MeasureUnit from a CLDR Core Unit Identifier, defined in UTS
* 35. (Core unit identifiers and mixed unit identifiers are supported, long
* unit identifiers are not.) Validates and canonicalizes the identifier.
*
* <pre>
* MeasureUnit example = MeasureUnit::forIdentifier("furlong-per-nanosecond")
* </pre>
*
* @param identifier The CLDR Unit Identifier
* @param identifier The CLDR Unit Identifier.
* @param status Set if the identifier is invalid.
* @draft ICU 67
*/

View file

@ -412,8 +412,9 @@ public class MeasureUnit implements Serializable {
}
/**
* Construct a MeasureUnit from a CLDR Unit Identifier, defined in UTS 35.
* Validates and canonicalizes the identifier.
* Construct a MeasureUnit from a CLDR Core Unit Identifier, defined in UTS
* 35. (Core unit identifiers and mixed unit identifiers are supported, long
* unit identifiers are not.) Validates and canonicalizes the identifier.
*
* Note: dimensionless <code>MeasureUnit</code> is <code>null</code>
*