]> granicus.if.org Git - icu/commit
ICU-20769 refactor UResourceBundle.fResData & init_resb_result()
authorMarkus Scherer <markus.icu@gmail.com>
Thu, 26 Aug 2021 21:44:49 +0000 (14:44 -0700)
committerMarkus Scherer <markus.icu@gmail.com>
Tue, 31 Aug 2021 02:26:33 +0000 (02:26 +0000)
commita300d8dd029bd32133e111fc3a777ddf2515f1f0
treef33d5f5a6cb16c44c3bf6c947672995c8d7757ad
parent985c05a3efb3fa7b13313ce072264154420988fe
ICU-20769 refactor UResourceBundle.fResData & init_resb_result()
- replace UResourceBundle.fResData with access via fData
- change ResourceDataValue.resData into a pointer
- move C tests to C++ that stack-allocate now-C++ UResourceBundle
- init_resb_result():
  - remove redundant ResourceData parameter
  - simplify memory management, and various small simplifications
  - /LOCALE/path reuse valid locale, no ures_open()
  - pull alias-fetching code into separate function getAliasTargetAsResourceBundle()
  - `const char *` for keyPath pieces
  - s/noAlias/recursionDepth/
- getAllItemsWithFallback() set correct parentBundle.fValidLocaleDataEntry
icu4c/source/common/uresbund.cpp
icu4c/source/common/uresdata.h
icu4c/source/common/uresimp.h
icu4c/source/test/cintltst/crestst.c
icu4c/source/test/cintltst/creststn.c
icu4c/source/test/cintltst/creststn.h
icu4c/source/test/intltest/restsnew.cpp
icu4c/source/test/intltest/restsnew.h
icu4c/source/tools/genrb/derb.cpp