feat(libSceIcu): implement uprv_isInvariantString and uprv_isInvariantUString #19998
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/19998"
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 MarcZX10 on 2026-11-14T10:44:31Z.
What
Two libSceIcu exports are still stubs that throw
NotImplemented_nid_no_patch:uprv_isInvariantStringanduprv_isInvariantUString. Their ICU 68 names are already used for their NIDs inLegacyExports.cpp.This PR implements them in a new file,
core/libs/prx/libSceIcu/InvariantChars.cpp, following ICU 68.2'scommon/uinvchar.cpp:github.com/unicode-org/icu@84e1f26ea7/icu4c/source/common/uinvchar.cppEach function is one commit (the first also adds the shared table and the CMake source), then one test commit per behaviour: the invariant set against the ranges that ICU documents, byte-string length and NUL semantics, and UTF-16 length and NUL semantics. The last commit updates
docs/dev/debt/libSceIcu.md.Licence and comments (open)
The file header carries ICU's notice, verbatim, as in the other libSceIcu ICU-derived PRs. This is the same open question as #19951, #19955, #19972 and #19985: AGENTS.md forbids comments in code, while the Unicode licence asks for its notice to stay with copies. This PR does not decide that; it follows the convention already agreed on those PRs, and a maintainer decision applies to all of them.
Tested
ctest -R '^guest_icu': 44 of 44 tests pass, including the newguest_icu_invariant_chars.tools/check_conventions.py --base upstream/main: passed.git diff --check: empty.Not run: the console, Windows, macOS. The ASCII charset family is assumed; the debt doc says so.
Overlap
tools/pr_overlap.pyis expected to fail closed on the shared libSceIcu files, as for the other PRs in this series.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)Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-14T10:51:28Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
c4e428c3ba:tools/check_conventions.pyfailed;git diff --checkclean.guest_icu_invariant_chars_testsbuilt cleanly.guest_icu_invariant_chars):core/libs/prx/libSceIcu/LegacyExports.cpp,core/libs/prx/libSceIcu/include/LegacyExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T00:20:28Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
d10d2a4ea5:tools/check_conventions.pyfailed;git diff --checkclean.CMakeLists.txtfailed to build.Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-15T00:44:01Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
f42308ff7a:tools/check_conventions.pyfailed;git diff --checkclean.guest_icu_invariant_chars_testsbuilt cleanly.guest_icu_invariant_chars):core/libs/prx/libSceIcu/LegacyExports.cpp,core/libs/prx/libSceIcu/include/LegacyExports.hppreverted tomain, the new tests do not build/link without the change; restoring it makes them build and pass.Requesting changes for the points above.
Imported from boykopovar/AnyPS5. Originally posted by PrivacyOnion on 2026-11-18T12:42:23Z.
Review: CHANGES_REQUESTED
Verified on Linux (Ubuntu 24.04, GCC 13.3, Ninja, Release) against
67cd3aaf9e:tools/check_conventions.pyfailed.guest_icu_invariant_chars_testsbuilt cleanly.guest_icu_invariant_chars):Requesting changes for the points above.
Pull request closed