This patch refactors the legacy implementation of the CJK counter styles
by:
- Removing the handing of negative numbers, so that we can use unsigned
in the algorithm and handle -2147483648 correctly. Note that negative
sign is already handled by the caller GenerateRepresentation()
- Moving some code to make the code for CJK algorithms more compact
This is the last patch for the clean up of the legacy counter style
implementation.
Bug: 1228531
Change-Id: I59e18980b27c5f03f73e0178e9be0db9cfa6c430
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3036216
Reviewed-by: Anders Hartvoll Ruud <andruud@chromium.org>
Commit-Queue: Xiaocheng Hu <xiaochengh@chromium.org>
Cr-Commit-Position: refs/heads/master@{#905375}