Skip to content

Commit

Permalink
Merge branch 'feat/core/9121-regex-map-epic-ldml' into feat/resources…
Browse files Browse the repository at this point in the history
…/7042-add-pcm-epic-ldml
  • Loading branch information
srl295 authored Aug 24, 2023
2 parents c7b6787 + ab29171 commit 79adf5e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/src/kmx/kmx_plus.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,8 +272,8 @@ struct COMP_KMXPLUS_TRAN_GROUP {
struct COMP_KMXPLUS_TRAN_TRANSFORM {
KMXPLUS_STR from;
KMXPLUS_STR to;
KMXPLUS_ELEM mapFrom;
KMXPLUS_ELEM mapTo;
KMXPLUS_STR mapFrom; // variable name
KMXPLUS_STR mapTo; // variable name
};

struct COMP_KMXPLUS_TRAN_REORDER {
Expand Down
4 changes: 3 additions & 1 deletion core/src/ldml/ldml_transforms.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -796,7 +796,9 @@ transforms::load(
const kmx::COMP_KMXPLUS_TRAN_TRANSFORM *element = tranHelper.getTransform(group->index + itemNumber);
const std::u32string fromStr = kmx::u16string_to_u32string(kplus.strs->get(element->from));
const std::u32string toStr = kmx::u16string_to_u32string(kplus.strs->get(element->to));
newGroup.emplace_back(fromStr, toStr, element->mapFrom, element->mapTo, kplus); // creating a transform_entry
KMX_DWORD mapFrom = element->mapFrom; // copy, because of alignment
KMX_DWORD mapTo = element->mapTo; // copy, because of alignment
newGroup.emplace_back(fromStr, toStr, mapFrom, mapTo, kplus); // creating a transform_entry
}
transforms->addGroup(newGroup);
} else if (group->type == LDML_TRAN_GROUP_TYPE_REORDER) {
Expand Down

0 comments on commit 79adf5e

Please sign in to comment.