mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-823 Misc API documentation bug fixes
X-SVN-Rev: 4182
This commit is contained in:
parent
fbc872b0bf
commit
af28ebc2cd
1 changed files with 9 additions and 8 deletions
|
@ -536,15 +536,16 @@ public:
|
|||
* Sets the minimum strength to be used in comparison or transformation.
|
||||
* <p>Example of use:
|
||||
* <pre>
|
||||
* . UErrorCode status = U_ZERO_ERROR;
|
||||
* . Collator*myCollation = Collator::createInstance(Locale::US,
|
||||
* \code
|
||||
* UErrorCode status = U_ZERO_ERROR;
|
||||
* Collator*myCollation = Collator::createInstance(Locale::US,
|
||||
* status);
|
||||
* . if (U_FAILURE(status)) return;
|
||||
* . myCollation->setStrength(Collator::PRIMARY);
|
||||
* . // result will be "abc" == "ABC"
|
||||
* . // tertiary differences will be ignored
|
||||
* . Collator::ComparisonResult result = myCollation->compare("abc",
|
||||
* "ABC");
|
||||
* if (U_FAILURE(status)) return;
|
||||
* myCollation->setStrength(Collator::PRIMARY);
|
||||
* // result will be "abc" == "ABC"
|
||||
* // tertiary differences will be ignored
|
||||
* Collator::ComparisonResult result = myCollation->compare("abc",
|
||||
* \endcode "ABC");
|
||||
* </pre>
|
||||
* @see Collator#getStrength
|
||||
* @param newStrength the new comparison level.
|
||||
|
|
Loading…
Add table
Reference in a new issue