forked from google/mozc
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
RewriteAd()
and RewriteEra()
arguments
This patch moves `num_done` to an out argument to simplify the caller code. It also changes `RewriteEra()` to be consistent with `RewriteAd()`, to skip rewriting the segment that starts with the `kNenKey`. This makes the two functions more consistent, makes the caller a bit more readable, and reduces some minor CPU cycles. But the change isn't observable, unless we have a rewrite pattern that starts with the `kNenKey` in future, such as an era name starting with the `kNenKey`. PiperOrigin-RevId: 650501471
- Loading branch information
1 parent
183b5e8
commit a6eb8c8
Showing
2 changed files
with
25 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters