mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
ICU-13647 fix SearchIterator docs sample: getMatchedLength() not getMatchLength()
This commit is contained in:
parent
ebb374ae30
commit
616b3c5647
2 changed files with 2 additions and 4 deletions
|
@ -72,8 +72,7 @@ U_NAMESPACE_BEGIN
|
|||
* UErrorCode error = U_ZERO_ERROR;
|
||||
* for (int pos = iter->first(error); pos != USEARCH_DONE;
|
||||
* pos = iter->next(error)) {
|
||||
* printf("Found match at %d pos, length is %d\n", pos,
|
||||
* iter.getMatchLength());
|
||||
* printf("Found match at %d pos, length is %d\n", pos, iter.getMatchedLength());
|
||||
* }
|
||||
* </code></pre>
|
||||
*
|
||||
|
|
|
@ -121,8 +121,7 @@ U_NAMESPACE_BEGIN
|
|||
* pos != USEARCH_DONE;
|
||||
* pos = iter.next(error))
|
||||
* {
|
||||
* printf("Found match at %d pos, length is %d\n", pos,
|
||||
* iter.getMatchLength());
|
||||
* printf("Found match at %d pos, length is %d\n", pos, iter.getMatchedLength());
|
||||
* }
|
||||
* </code></pre>
|
||||
* <p>
|
||||
|
|
Loading…
Add table
Reference in a new issue