Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Test ICU status correctly by using U_SUCCESS
This correction is needed for ICU70 which lazy build the internal break iterator instead of during constructor therefore shift the return of U_USING_DEFAULT_WARNING in status from usearch_open() to usearch_next(). Instead of explicitly check different possible status code the DCHECK should just use ICU macro U_SUCCESS() instead. This change is needed to land to unblock the landing of ICU70 which have unicode-org/icu#1473 that shift the returning of U_USING_DEFAULT_WARNING in status. Bug: 1260116 Change-Id: Ic1ed3dccc5d95e3fd1804321dc98fbe7255cff4d Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3225401 Commit-Queue: Kent Tamura <[email protected]> Commit-Queue: Frank Tang <[email protected]> Reviewed-by: Kent Tamura <[email protected]> Cr-Commit-Position: refs/heads/main@{#931923} NOKEYCHECK=True GitOrigin-RevId: 1bc5bb4ba6c7922ad7dd57bd57cb5644c6efccd8
- Loading branch information