feat(libSceIcu): name 74 unknown exports from their NIDs #13410

Merged
CodingBreadd merged 2 commits from upstream-pr/13410 into main 2026-10-30 20:43:14 +00:00
CodingBreadd commented 2026-10-30 13:56:14 +00:00 (Migrated from github.com)

Imported from boykopovar/AnyPS5. Originally posted by CodingBreadd on 2026-10-30T13:56:14Z.


What

Names 74 of the 96 sceIcuUnknown_*_nid_no_patch exports of libSceIcu. Each new name is the ICU C API identifier whose tools/nid_names.py hash equals the stub's NID; candidates were every identifier in the ICU 78.1 common, i18n and io sources. Examples: u_charType, u_strToLower, u_isalpha, u_getIntPropertyValue, res_getTableItemByKey, UCNV_FROM_U_CALLBACK_SUBSTITUTE.

Every renamed export still throws through NotImplemented_nid_no_patch, keeps the no-parameter import-resolution convention and is declared once in Identified.hpp. Missing-import and unimplemented-call errors now name the ICU function instead of the NID. The debt entry records that a name match does not establish ICU's prototype or behavior.

The other 22 unknowns also hash to ICU names, but open pull requests already rename and implement them, so this PR leaves them alone: 20 in #12320, and u_getUnicodeVersion and u_strCompareIter in #13457.

Tested

Windows 11, WinLibs GCC 15.2.0 (UCRT, POSIX, SEH). Built libSceIcu and the patched libSceIcu.prx; the patched export table holds the same 96 NIDs as before. ctest -R "guest_icu|public_headers": 71/71 passed. tools/check_conventions.py --base origin/main passes. No title tested.

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: none
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

🤖 Generated with Claude Code

<!-- greyfinch-sync:boykopovar/AnyPS5:issue:5085507000 --> Imported from [boykopovar/AnyPS5](https://github.com/boykopovar/AnyPS5/pull/13410). Originally posted by [CodingBreadd](https://github.com/CodingBreadd) on 2026-10-30T13:56:14Z. --- ### What Names 74 of the 96 `sceIcuUnknown_*_nid_no_patch` exports of libSceIcu. Each new name is the ICU C API identifier whose `tools/nid_names.py` hash equals the stub's NID; candidates were every identifier in the ICU 78.1 `common`, `i18n` and `io` sources. Examples: `u_charType`, `u_strToLower`, `u_isalpha`, `u_getIntPropertyValue`, `res_getTableItemByKey`, `UCNV_FROM_U_CALLBACK_SUBSTITUTE`. Every renamed export still throws through `NotImplemented_nid_no_patch`, keeps the no-parameter import-resolution convention and is declared once in `Identified.hpp`. Missing-import and unimplemented-call errors now name the ICU function instead of the NID. The debt entry records that a name match does not establish ICU's prototype or behavior. The other 22 unknowns also hash to ICU names, but open pull requests already rename and implement them, so this PR leaves them alone: 20 in #12320, and `u_getUnicodeVersion` and `u_strCompareIter` in #13457. ### Tested Windows 11, WinLibs GCC 15.2.0 (UCRT, POSIX, SEH). Built `libSceIcu` and the patched `libSceIcu.prx`; the patched export table holds the same 96 NIDs as before. `ctest -R "guest_icu|public_headers"`: 71/71 passed. `tools/check_conventions.py --base origin/main` passes. No title tested. ### Checklist <!-- Rules behind each item: https://github.com/boykopovar/AnyPS5/blob/main/CONTRIBUTING.md --> - [x] Based on current `main`; no other open PR implements the same functions - [x] One topic per PR; follow-ups go in a new PR - [x] No comments in code except [technical debt](https://github.com/boykopovar/AnyPS5/blob/main/docs/dev/CONVENTIONS.md) - [x] Unimplemented paths throw (`NotImplemented_nid_no_patch`); silent stubs are listed under Silent stubs in their library's [technical debt](https://github.com/boykopovar/AnyPS5/tree/main/docs/dev/debt) file - [x] No notes, investigation `.md` files or images added to the repository (attach them to this PR) - [x] New third-party code is a submodule built from source - [x] Generic behaviour, not specific to one title - [x] Depends on: none - [x] Fixes: none - [x] Unblocks: none - [x] GPUs tested: n/a - [x] AI-assisted: yes 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
boykopovar/AnyPS5!13410
No description provided.