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: Ie5a2f402399b51120214a9ce8c8e4f5c249d0160 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3225781 Reviewed-by: Jungshik Shin <[email protected]> Commit-Queue: Frank Tang <[email protected]> Cr-Commit-Position: refs/heads/main@{#932782} NOKEYCHECK=True GitOrigin-RevId: 1556ec8248fe58e802191662a319c683fe52e3f1
- Loading branch information