mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-07 14:31:31 +00:00
ICU-21349 Improve forIdentifier docs to exclude long_unit_identifier.
This commit is contained in:
parent
1c61c57ece
commit
01da2732b7
2 changed files with 7 additions and 5 deletions
|
@ -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
|
||||
*/
|
||||
|
|
|
@ -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>
|
||||
*
|
||||
|
|
Loading…
Add table
Reference in a new issue