feat(libSceLibcInternal): implement money facet get and put members #17628
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/17628"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from boykopovar/AnyPS5. Originally posted by B-Howell on 2026-11-09T04:51:03Z.
What
Supersedes #15790, which was closed under the former open-PR cap.
Implement the public get and put overloads for narrow and wide money facets. Each forwards the original arguments to the matching virtual method on the guest facet and returns its iterator. The eight existing NIDs are unchanged and no exports are added.
The forwarding behavior follows the C++ standard's locale.money.get.members and locale.money.put.members requirements. The slot order follows the pinned STL source and the existing guest facet layout. The guest fixture covers all eight dispatches, arguments, return values and derived overrides. Native console vtable slots remain unverified. The base money parsing and formatting virtuals remain unimplemented.
Tested
On
b6dc92f733b2ae14aeb6f11d2173125ab1169288, Windows 11 with WinLibs GCC 15.2.0 UCRT and Ubuntu WSL2 with GCC 11.4 each passed the money-facet and ConstantMembers guest tests 3/3 per test and all 65 public-header checks. Both build checkouts restored cleanly. The focused test exercises all eight overloads by their native export names. The standard NID patcher exposed all eight expected NIDs in a disposable copy of the Windows control binary. Conventions passed.The Windows negative control at
62e7e734retained the fixture, header and registration, restoredExport.cppfromd03beaf110, and emptied the new provider source. The target built successfully, and CTest exited 8 with the expected diagnostic from the stub forG84okRnyJJgafter finding all eight exports.The original overlap scan screened 1,976 open PR heads. I reviewed all 13 skipped shared-file comparisons at their exact heads. The scan found a shared debt insertion point with #16237. After #15992 landed, this refresh implemented its seven typed names and preserved the eighth NID through its existing alias registration. See the merge-order discussion. This branch retains the exception provider from #16024, the time_get providers and shared iterator layout from #16005, and the six error-category and codecvt providers from #15696. The source audit confirmed that only the eight money providers change.
The pinned tools/progress.py collector counts 12,680 of 37,899 implemented library functions (33.46%), up from 12,672 (33.44%) on
75c65bf. libSceLibcInternal rises from 299 to 307 of 1,137, with the same denominator.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)🤖 Generated with Codex