forked from unicode-org/icu
-
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.
ICU-22261 Refactor MF2 attributes and options parsing code
Previously, there were separate overrides for the options and attributes parsing methods in the parser that were used in different context. (Options can appear in Operator and Markup, while attributes can appear in Expression and Markup.) This is a refactoring that eliminates this duplicated code. To enable it, a builder is added for the internal OptionMap type. Separately, this patch also explicitly deletes copy constructors and copy assignment operators for all Builder classes; a bug in an earlier version of this patch caused me to notice this hadn't been done. Also explicitly deletes move constructors/assignment operators with the exception of OptionMap::Builder (OptionMap is non-public, so that shouldn't cause confusion).
- Loading branch information
1 parent
bae39ad
commit 9e1c66d
Showing
4 changed files
with
208 additions
and
310 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
Oops, something went wrong.