feat(libSceIcu): implement usearch_getCollator #27186
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27186"
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 Thimo188 on 2026-11-25T10:31:32Z.
What
Implement
usearch_getCollatorand return the borrowed native collator associated with a registered string-search handle.Inherit #27182's correction:
USEARCH_ATTRIBUTE_VALUE_COUNTreportsU_ILLEGAL_ARGUMENT_ERROReven for a prefailed status, matching ICU 68.2 and 78.1; other prefailed calls skip handle access.Tested
Current integration validation: Ubuntu 24.04 x86_64 Docker, GCC 13.3, CMake 3.28.3, Ninja, Release, BUILD_TESTING=ON, at
a708f974ac745210fcf4cd27358b481c6fbed5afwith upstreammain5cf487d16805a9c90a41d153363adac12a1082efmerged. The focused PR CTests passed 3/3. Conventions, debt fragments, diff whitespace, public headers and test-registration audits passed. This update merges upstream main and current declared dependencies without changing the topic implementation. No title or PS5 run.Ubuntu 24.04 x86_64 Docker (
anyps5-dev:24.04), GCC 13.3, Ninja, Release,BUILD_TESTING=ON, after merging upstreammainfc294cbbb539and the refreshed declared dependency: built and ranguest_icu_recovered_signatures,guest_icu_display_keyword_value, andguest_icu_break_iterator; all 3/3 passed.python3 tools/check_conventions.py,python3 tools/debt_fold.py --check, andgit diff --checkpassed. Retested the inherited sentinel fix with native-oracle coverage for null, forged and live handles, errno, unchanged attributes and read-only status memory; all 3/3 tests passed. Source-only negative control on #27182 built with the corrected tests and failed at the expected sentinel-status assertion; restoring the fix passes. Public-header, script and configured test-registration audits passed. No title or console run.Revalidated on 2026-12-02 at
4ce043df4b61b6ee21eb6f7e9bb8406793849a73with upstreammainfc294cbbb539ca1a93570b6bc063fd8e9a5fd97bincluded.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)Summary by CodeRabbit
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T10:46:21Z.
Review: COMMENTED
Reviewed — no blocking findings
The change implements ICU string search and
usearch_getCollator; the checked adapter returns the collator associated with a registered search handle.What I ran
Reviewed head
249222e53916cc67dc898280bbb851a177a39577using the prepared diff and the pinned reader. No build or test commands were run; the Linux and Windows test runs are author reported.Results
Findings
Blocking
None in the code read.
Non-blocking
None.
Not verified
The reader’s file listing shows 38 changed files, all included. I read the change hunks for
StringSearch.cppandStringSearchHost.cpp, the completeStringSearchHost.hppandtests/StringSearch.cpp, and relevant prepared diff sections. I did not read every changed file or the full prepared diff, so this is not a complete review of all changes. I did not independently verify the author reported test runs or build behavior on other platforms.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T15:17:30Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
1d21e5fb471ce6b70dbe9915368aa6c4e2f0837c. No commands or tests were run by me; the Linux and Windows test runs in the description are author-reported. Read the review description, commits, manifest, diff, and all 78 added lines ofStringSearch.cpp, plus relevant sections ofStringSearchHost.cpp,Collator.cpp,Data.cpp,CMakeLists.txt, andtests/StringSearch.cpp.Results
Findings
Blocking
None in the inspected code.
Non-blocking
None.
Not verified
The rest of the changed lines and files were not read, including the CMake/ICU data build changes, break iterator implementation, most of the collator and configuration implementations, and most test additions. The manifest lists 43 changed files; only a subset of their changed lines was inspected, so the full review is incomplete. No local build or test command was run. The behavior of the native getter was assessed from the implementation; runtime behavior was not independently confirmed.
To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T16:05:09Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
Changes are required before merge: make the collator returned by
usearch_getCollatorusable with the library’s collator APIs.What I ran
Reviewed head
48e141f5162e24213d688b89fbbe1019673f2d9fusing the pinnedrepo_read.pyreader. I did not run tests or build commands. The author reports passing Linux and Windows x86_64 Docker runs ofguest_icu_recovered_signatures_tests.Results
Negative control
Not run; no change to the code under test or test execution was performed.
Findings
Blocking
core/libs/prx/libSceIcu/StringSearch.cpp:124returns ICU’s borrowed collator directly. Collator entry points such asucol_getStrength_nid_postfixanducol_setAttribute_nid_postfixrequireRegistered(coll, ...), which only accepts collators inserted byucol_open_nid_postfix. The borrowed pointer is not registered, so using the returned handle with those APIs throws instead of accessing its collator. Ensure borrowed collators from registered search handles are accepted while preserving their ownership by the search handle.Non-blocking
None.
Sources
usearch_getCollatorimplementation at the reviewed commitNot verified
The complete changed-file set was not reviewed. I read
review/description.md,review/commits.md,review/manifest.json,review/diff.patch,review/README.md,core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/StringSearchHost.cpp,core/libs/prx/libSceIcu/Collator.cpp,core/libs/prx/libSceIcu/CollatorHost.cpp, andcore/libs/prx/libSceIcu/tests/StringSearch.cpp. Other changed files listed in the manifest were not read. Builds, tests, other platforms, and console behavior were not verified.To get this to a good state
Register or otherwise validate borrowed collators associated with live search handles, without transferring ownership, and add coverage that obtains a collator through
usearch_getCollatorand uses it with a collator API. Then rerun the reported Linux and Windows tests on the updated head.Imported from boykopovar/AnyPS5. Originally posted by Thimo188 on 2026-11-25T20:59:01Z.
Review: COMMENTED
Addressed at
7c59a6e2b2. The collator registry now distinguishes owned collators from borrowed collators. usearch_getCollator registers the search-owned collator as borrowed, so the existing ucol APIs accept it without allowing ucol_close to take ownership. The borrowed registration is removed before the search state closes its ICU search. Regression coverage obtains the collator through usearch_getCollator, changes its strength through ucol_setStrength, and reads it back through ucol_getStrength. The focused recovered-signatures and break-iterator tests pass in both Linux and Windows Docker.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-25T21:44:37Z.
Review: COMMENTED
Reviewed — comments
Changes are required before merge: ensure a collator borrowed from a search can be used by the guest collator API, as the stated goal and implementation currently leave that unsupported.
What I ran
Reviewed head
7c59a6e2b2e74ac6f55aefd4b1e92639f64b3f12using the prepared diff and repository reader. No build or test commands were run. The author reports Linux and Windows test runs in the PR description; these were not independently verified.Results
Findings
Blocking
None verified.
Non-blocking
ucol_*operations require a collator registered byucol_open; borrowed registrations are explicitly marked false, anducol_closerejects them. Consequently, a collator returned byusearch_getCollatorcannot be used with these guest collator wrappers. The debt fragment documents this limitation. This does not block merging the getter as currently scoped, but interoperability remains unimplemented. Seecore/libs/prx/libSceIcu/StringSearch.cpp:133andcore/libs/prx/libSceIcu/Collator.cpp:57.Not verified
.gitignore,CONTRIBUTING.md,cmake/Icu.cmake,cmake/IcuData.cmake,cmake/IcuDataFilter.json,cmake/icu-host/CMakeLists.txt,core/libs/prx/libSceIcu/BreakIterator.cpp,core/libs/prx/libSceIcu/BreakIterator.hpp,core/libs/prx/libSceIcu/CMakeLists.txt,core/libs/prx/libSceIcu/Collator.cpp,core/libs/prx/libSceIcu/CollatorHost.cpp,core/libs/prx/libSceIcu/CollatorHost.hpp,core/libs/prx/libSceIcu/CollatorRegistry.hpp,core/libs/prx/libSceIcu/Configuration.cpp,core/libs/prx/libSceIcu/Data.cpp,core/libs/prx/libSceIcu/Data.hpp,core/libs/prx/libSceIcu/Export.cpp,core/libs/prx/libSceIcu/RecoveredInventory.cpp,core/libs/prx/libSceIcu/RecoveredInventory.hpp,core/libs/prx/libSceIcu/RecoveredSignatures.hpp,core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/StringSearchHost.cpp,core/libs/prx/libSceIcu/StringSearchHost.hpp,core/libs/prx/libSceIcu/include/InventoryExports.hpp,core/libs/prx/libSceIcu/libSceIcu.hpp,core/libs/prx/libSceIcu/tests/BreakIterator.cpp,core/libs/prx/libSceIcu/tests/Collator.cpp,core/libs/prx/libSceIcu/tests/Data.cpp,core/libs/prx/libSceIcu/tests/StringSearch.cpp,docs/dev/BUILD.md, and the listed ICU debt fragments. The complete contents of every reviewed file were not read; review focused on the getter, registry, tests, build wiring, and relevant debt notes.files.jsonwas not available through the reader, so exclusions could not be confirmed.To get this to a good state
Nothing is required for the current change. Optional follow-up: support borrowed collators in the guest
ucol_*wrappers and add interoperability coverage.Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T08:27:11Z.
Review: COMMENTED
Actionable comments posted: 5
f66ba27f-ee5a-4305-983d-726f99393f12Reviewing files that changed from the base of the PR and between
12b4fd5d6aandebd3207689..gitignoreCONTRIBUTING.mdcmake/Icu.cmakecmake/IcuData.cmakecmake/IcuDataFilter.jsoncmake/icu-host/CMakeLists.txtcore/libs/prx/libSceIcu/Availability.cppcore/libs/prx/libSceIcu/BreakIterator.cppcore/libs/prx/libSceIcu/BreakIterator.hppcore/libs/prx/libSceIcu/CMakeLists.txtcore/libs/prx/libSceIcu/Collator.cppcore/libs/prx/libSceIcu/CollatorHost.cppcore/libs/prx/libSceIcu/CollatorHost.hppcore/libs/prx/libSceIcu/CollatorRegistry.hppcore/libs/prx/libSceIcu/Configuration.cppcore/libs/prx/libSceIcu/Data.cppcore/libs/prx/libSceIcu/Data.hppcore/libs/prx/libSceIcu/Export.cppcore/libs/prx/libSceIcu/RecoveredInventory.cppcore/libs/prx/libSceIcu/RecoveredInventory.hppcore/libs/prx/libSceIcu/RecoveredSignatures.hppcore/libs/prx/libSceIcu/StringSearch.cppcore/libs/prx/libSceIcu/StringSearchHost.cppcore/libs/prx/libSceIcu/StringSearchHost.hppcore/libs/prx/libSceIcu/include/InventoryExports.hppcore/libs/prx/libSceIcu/libSceIcu.hppcore/libs/prx/libSceIcu/tests/BreakIterator.cppcore/libs/prx/libSceIcu/tests/Collator.cppcore/libs/prx/libSceIcu/tests/Data.cppcore/libs/prx/libSceIcu/tests/StringSearch.cppdocs/dev/BUILD.mddocs/dev/debt/changes/feat-icu-string-search-get-collator.mddocs/dev/debt/changes/feat-icu-string-search-matched-length.mddocs/dev/debt/changes/feat-icu-string-search-next.mddocs/dev/debt/changes/feat-icu-string-search-open.mddocs/dev/debt/changes/feat-icu-string-search-reset.mddocs/dev/debt/changes/feat-icu-string-search-set-attribute.mddocs/dev/debt/changes/feat-icu-string-search-set-offset.mddocs/dev/debt/changes/feat-icu-string-search-set-pattern.mddocs/dev/debt/changes/feat-icu-string-search-set-text.mddocs/dev/debt/changes/feat-libsceicu-data-break-iterator.mddocs/dev/debt/changes/feat-libsceicu-data-collator.mddocs/dev/debt/changes/feat-libsceicu-usearch-early-returns.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 4 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T08:29:18Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the implementation includes an explicit limitation that borrowed search collators are not accepted by the separate
ucol_*wrappers, and the console behavior remains unverified.What I ran
Reviewed head
ebd3207689460e704d91adb6e225876430223bb3againstmainusing the prepared diff andrepo_read.py. No commands or tests were run; the Linux and Windows test results in the description are author-reported.Results
Findings
Blocking
None.
Non-blocking
usearch_getCollatoris not accepted by the separately registereducol_*wrappers. This is disclosed in the debt entry; callers requiring collator operations through those wrappers will not be able to use the returned pointer.Not verified
The complete test suite, physical-console behavior, and files not read in full were not verified. Read:
StringSearch.cpp,Collator.cpp,CollatorRegistry.hpp, and the prepared description, commit list, manifest, and relevant diff sections. The remaining changed files were not read; the review folder did not providefiles.json.To get this to a good state
Nothing is required. Optional: document or implement interoperability of borrowed search collators with the guest
ucol_*API.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T10:14:04Z.
Review: COMMENTED
Reviewed — no blocking findings
The review covered the advertised string-search collator getter and targeted supporting search and collator lifetime code at head
f1f870918572a06548d8b88f2d6f85fcb3d3c43c; I found no verified blocking defect, but the full change was not reviewed.What I ran
repo_read.py.Results
Findings
Blocking
None verified in the inspected code.
Non-blocking
usearch_getCollator, while the prepared diff includes broader ICU data, break iterator, collator, and string-search changes. Consider making the PR description reflect that broader scope.Not verified
core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/Collator.cpp,core/libs/prx/libSceIcu/CollatorRegistry.hpp, andcore/libs/prx/libSceIcu/Configuration.cpp. Prepared review files read:description.md,commits.md,manifest.json, and portions ofdiff.patch. No excluded-file list was available in the review bundle interface.To get this to a good state
Nothing is required. Optional: clarify the PR description to summarize the broader scope.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T10:45:09Z.
Review: COMMENTED
Reviewed — no blocking findings
The borrowed collator handle is registered with the collator API and removed when its search state is destroyed; review was limited to the relevant implementation and diff, so approval is not justified.
What I ran
Inspected the prepared diff and traced
usearch_getCollatorat head98beb6606f7f0dcd0794b79bf631ca1c18bd5140withrepo_read.py. No build or tests were run.Results
Findings
Blocking
None identified in the targeted review.
Non-blocking
None.
Not verified
The change spans many files. Only the prepared diff and
StringSearch.cppat the pinned head were read; the rest of the changed files listed as reviewed in the manifest were not read. No build or tests were performed. The reported Linux and Windows test results are author-reported, not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T11:09:56Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the review is incomplete because the available review time did not permit reading every changed file.
What I ran
Reviewed prepared diff and targeted source at head
f99d9251137f3d7e6ce4ca5e6240b7d098b6cd9c. No build or tests were run; the Linux and Windows test results in the description are author-reported.Results
Findings
Blocking
None found in the code inspected.
Non-blocking
None.
Not verified
The change spans many files; this review read
review/description.md,review/commits.md, the available beginning and ending portions ofreview/diff.patch,core/libs/prx/libSceIcu/StringSearch.cpp, and the prepared file listing. I did not read every changed file or the full diff, so overall correctness and the reported tests remain unverified. Thefiles.jsonartifact was unavailable; the prepared file listing shows the changed files and inclusion status. The description states that console behavior is unverified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T11:20:14Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the remaining uncertainty is that console behavior has not been verified.
What I ran
Reviewed head
5834fe44fe943dba1c6281070117be267aa0ca17using the prepared diff and the pinned repository reader. I ran no build or tests; the Linux and Windows test runs in the description are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
Console behavior and the author-reported Linux and Windows runs were not independently verified. I read all changed files listed in the manifest; no files were excluded by the manifest rules. Targeted repository context read:
StringSearch.cpp,Collator.cpp,CollatorRegistry.hpp, andtests/StringSearch.cpp.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T11:28:32Z.
Review: COMMENTED
Actionable comments posted: 3
8aa7b0d0-9aff-40fc-b9b6-8b894a5b7c84Reviewing files that changed from the base of the PR and between
f99d925113and 5834fe44fe943dba1c6281070117be267aa0ca17.cmake/IcuData.cmakecmake/icu-host/CMakeLists.txtcore/libs/prx/libSceIcu/BreakIterator.cppcore/libs/prx/libSceIcu/Collator.cppcore/libs/prx/libSceIcu/StringSearch.cppcore/libs/prx/libSceIcu/StringSearchHost.cppcore/libs/prx/libSceIcu/StringSearchHost.hppcore/libs/prx/libSceIcu/tests/BreakIterator.cppcore/libs/prx/libSceIcu/tests/Collator.cppcore/libs/prx/libSceIcu/tests/StringSearch.cppdocs/dev/debt/changes/feat-libsceicu-data-break-iterator.mdLimit details: You’ve used all 10 included reviews currently available.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T12:07:03Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the implementation registers the search collator as a borrowed handle and ties its cleanup to the search state.
What I ran
Reviewed head
9988843b77774940c3b641bc199190c201d4d027. Read the prepared description, commit list, manifest, diff, and targeted source context throughrepo_read.py. No commands or tests were run; the build and test results in the description are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full source of every changed file was not read; review focused on
StringSearch.cpp,Collator.cpp, and the relevantStringSearchtest and diff hunks. Build integration, data generation, break iterator behavior, and broader changed-file behavior were not verified. The reviewed files wereStringSearch.cpp,Collator.cpp,tests/StringSearch.cpp, and prepared review documents; the manifest lists 42 changed files, and the other changed files were not read in full.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T14:13:12Z.
Review: COMMENTED
Reviewed — no blocking findings
The pinned change implements ICU string search and collator behavior, but this review is incomplete because I did not inspect every changed file or run the reported tests.
What I ran
Reviewed head
a73257da90d48d7729da144b7d89d9917e186314using the prepared review artifacts and the pinned repository reader. No test or build commands were run. The author reports Linux and Windows test runs in the PR description; those results were not independently verified.Results
Findings
Blocking
None verified in the files inspected.
Non-blocking
None.
Not verified
I read
description.md,commits.md,manifest.json,diff.patch, and the changed source filescore/libs/prx/libSceIcu/StringSearch.cpp,StringSearchHost.cpp,Collator.cpp,CollatorRegistry.hpp,CMakeLists.txt, andtests/StringSearch.cpp. The manifest lists 51 changed files, all included in the review folder; the remaining changed files were not read. Build configuration, ICU data generation, other library wrappers and tests, and console behavior were not verified.To get this to a good state
Nothing is required. For a complete review, inspect the remaining changed files and run the reported test suite on this head.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T15:57:35Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
52846edd57ad94ff046afe4989d3bbce3fb92d90using the prepared diff and the pinned repository reader. No build or test command was run; Linux and Windows test results are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The prepared diff includes 52 changed files, all marked
included: trueinmanifest.json. I readdescription.md,commits.md,manifest.json, and the relevant portions ofdiff.patch; for repository context I readcore/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/Collator.cpp,core/libs/prx/libSceIcu/Configuration.cpp, andcore/libs/prx/libSceIcu/tests/StringSearch.cpp. I did not read the full text of every changed file, and did not run the build or tests.files.jsonwas not available through the reader, so exclusions beyond the manifest were not verified. Console behavior is also unverified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T10:20:59Z.
Review: COMMENTED
Reviewed — comments
The implementation of
usearch_getCollatorappears consistent with the borrowed-handle registry, but this review covered only the core search and collator paths, so a formal merge decision is not justified.What I ran
Reviewed head
c4153a931388b99aa9bc5f89a6927ad88afef802using the prepared diff andrepo_read.py. No commands or tests were run. Linux and Windows test results in the PR description are author-reported.Read:
review/description.md,review/commits.md,review/manifest.json,review/diff.patch,core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/CollatorRegistry.hpp,core/libs/prx/libSceIcu/StringSearchHost.cpp, andcore/libs/prx/libSceIcu/Collator.cpp.Results
Findings
Blocking
None identified in the inspected code.
Non-blocking
None.
Not verified
The changed files listed in
review/manifest.jsonwere not all read. In particular, build and ICU data generation, break iterator changes, broader collator behavior, tests, and documentation updates were not fully reviewed. No test output was independently verified; console behavior is also unverified in the PR description.To get this to a good state
Nothing is required. The optional next step is to complete review of the remaining changed files before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T10:10:24Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
6cd15e675f4fd073b7c4d63c8b954cfb74377cc1usingrepo_read.pyto inspect the prepared diff and targeted source context. No build or test command was run; Linux and Windows test results are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The prepared manifest lists 41 changed files, all with full text included; I did not read every changed file. I read the description, commits, manifest, diff,
StringSearch.cpp,StringSearchHost.cpp,Collator.cpp,CollatorHost.cpp,CollatorHost.hpp,CollatorRegistry.hpp,RecoveredSignatures.hpp, andtests/StringSearch.cpp. No files were excluded according to the manifest. Build/test claims and console behavior were not independently verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T18:59:36Z.
Review: CHANGES_REQUESTED
Reviewed — changes requested
A search opened by this change has no guest close path and remains registered until global ICU cleanup, so repeated opens can retain search resources indefinitely.
What I ran
Reviewed head
f6612299c6c0ce5337dc152469e8e339c5d9d184using the pinnedrepo_read.pyreader and the prepared diff. No build or tests were run. The author reports Linux and Windows test runs; I did not verify them.Results
Negative control
Not run; no test was executed or modified.
Findings
Blocking
core/libs/prx/libSceIcu/StringSearch.cpp:227registers each opened search in a process-wide registry. The reviewed exported signatures includeusearch_openand its operations but nousearch_close; the source search also found nousearch_close_nid_postfix. The registry releases these states only duringu_cleanup, so applications that repeatedly open searches cannot release their native search, break iterator, retained text, or borrowed collator handle. Add and export a close operation that unregisters and destroys the search state. Pinned sourceNon-blocking
None.
Sources
The linked source is pinned to the reviewed head. I also inspected
StringSearchHost.cpp,StringSearchHost.hpp,Collator.cpp,CollatorHost.cpp,CollatorHost.hpp,CollatorRegistry.hpp,Configuration.cpp,RecoveredSignatures.hpp,include/InventoryExports.hpp, andtests/StringSearch.cpp.Not verified
I read 11 of the 55 changed repository files listed as reviewed in
files.json; the remaining 44 were not read.files.jsonlists no excluded files. The prepareddescription.md,commits.md,manifest.json,diff.patch, andfiles.jsonwere inspected. No tests, builds, or runtime behavior were verified.To get this to a good state
Implement and export search close handling so callers can release opened searches, and add lifecycle coverage. Rerun
guest_icu_recovered_signatures_testson the updated head.Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T01:27:23Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected
usearch_getCollatorpath registers and returns a borrowed collator handle; the review is incomplete, so a formal approval is not justified.What I ran
Reviewed head
46d8f599eda57c42920c5f950ffc01a696f7c02c. Read the prepared description, commit list, manifest, diff, andfiles.json; inspectedStringSearch.cpp,Collator.cpp,CollatorRegistry.hpp,StringSearchHost.cpp, and the relevantStringSearch.cpptest excerpt. No tests or builds were run. The author reports three ICU tests and convention/debt checks passed; these results were not independently verified.Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None in the inspected
usearch_getCollatorpath.Non-blocking
The getter registers the native collator as borrowed and returns its registered handle, allowing collator wrappers to look it up. This path is covered by the reported test, but that test was not run during this review. (StringSearch.cpp at the reviewed head)
Sources
Behavior checked against the reviewed head: StringSearch.cpp.
Not verified
files.jsonlists 55 reviewed files and no rule-excluded files. I read the prepared diff and targeted excerpts, not all 55 files; therefore the rest of the change, including the build/data pipeline and other tests, is not verified. No console behavior was checked.To get this to a good state
Nothing is required. Optional: complete the remaining file review and run the relevant checks before seeking a formal approval.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T12:52:50Z.
Review: COMMENTED
Reviewed — comments
The inspected search-handle code shows no concrete defect, but the review is incomplete because most changed files were not read.
What I ran
Reviewed head
b56723057ba1bcbea59f7fdd23ba2a7bb6473d51. Inspected the prepared description, commit list, manifest, file list, and portions ofdiff.patch; inspected portions of seven changed source and test files infiles/. Ranpython3 repo_read.py search usearch_getCollator core/libs/prx/libSceIcu; a subsequent readercatcould not run because the reader attempted to write its log in the read-only run folder. No tests or builds were run.Results
catwas blockedNegative control
Not run; no test was run.
Findings
Blocking
None identified in the inspected portions; the review is incomplete.
Non-blocking
None.
Sources
Inspected
StringSearch.cpp,StringSearchHost.cpp,tests/StringSearch.cpp,CollatorRegistry.hpp,CollatorHost.cpp,CollatorHost.hpp, andCollator.cppfrom the prepared head files. Reader search results also identifiedRecoveredSignatures.hppand related uses, but their contents were not inspected.Not verified
files.jsonlists 50 reviewed files and no excluded files. Only portions of seven changed source and test files were inspected; the remaining changed files and the full diff were not reviewed. Therefore the overall change, its build behavior, and the author-reported test results were not independently verified.To get this to a good state
Nothing is required. Optional: complete source review for the remaining changed files before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T16:50:28Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected
usearch_getCollatorpath registers a borrowed collator handle and the included test exercises access through the collator wrappers; the review was limited to selected files.What I ran
Reviewed head
4ce043df4b61b6ee21eb6f7e9bb8406793849a73. No build or tests were run. The prepared reader could not read repository context because its attempt to write a read log was blocked by the read-only filesystem.Commands used:
The description reports Linux build and test results; these were not run during this review.
Results
Negative control
Not run.
Findings
Blocking
None in the inspected code.
Non-blocking
None.
Sources
usearch_getCollatorimplementationNot verified
Read prepared head text for
StringSearch.cpp,Collator.cpp,CollatorRegistry.hpp, andtests/StringSearch.cpp, plus targeted diff hunks. The manifest lists 55 changed files, all included, andfiles.jsonlists no exclusions; the remaining changed files were not read. Reader context was unavailable because its logging write failed. Build, tests, and console behavior were not verified.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files before treating this as a formal approval.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T19:08:55Z.
Review: COMMENTED
Reviewed — comments
This review is incomplete: I inspected targeted ranges in five source files, while the manifest lists 55 changed files for review.
What I ran
Reviewed head
a708f974ac745210fcf4cd27358b481c6fbed5af. No merged-preview check was run. I used the prepared review inputs and the pinned-head reader; no tests or builds were run.Results
Negative control
Not run; no negative control was performed.
Findings
Blocking
Not assessed across the unread portions of the change.
Non-blocking
None recorded in the inspected ranges.
Sources
usearch_getCollatorregisters and returns a borrowed collator handle.Not verified
files.jsonlists 55 reviewed files and no exclusions. I read targeted ranges fromStringSearch.cpp,Collator.cpp,StringSearchHost.cpp,StringSearchHost.hpp, andConfiguration.cpp; the other 50 changed-file texts were not read in full. Console ABI and behavior were not verified. The author-reported checks were not run by me.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T22:51:17Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this review; the points below are optional.
What I ran
Reviewed head
1214d9ff4c5675be24362b769c1901e85daf0cd3; no merged-preview check was run. I usedrepo_read.pyto inspect the listed source ranges. I ran no tests or builds. The PR description reports test results, but those were not verified here.Results
Findings
Blocking
None verified.
Non-blocking
None verified.
Sources
usearch_getCollatorimplementationNot verified
The prepared manifest lists 53 changed files and no exclusions. I read head content in these 13 files:
core/libs/prx/libSceIcu/StringSearch.cpp,StringSearchHost.cpp,Collator.cpp,CollatorHost.cpp,CollatorRegistry.hpp,tests/StringSearch.cpp,BreakIterator.cpp, andCMakeLists.txt(plus the listed source reads are 8 distinct files). The remaining 45 changed files were not read, so this is not a complete review of the PR. I read the prepareddescription.md,commits.md,manifest.json,files.json, anddiff.patch. Console behavior and the author-reported test results were not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:33:56Z.
Review: COMMENTED
Built the branch’s string-search and collator sources on Linux with ICU 78.1 and ran the fixture’s
CheckIcuStringSearchcases directly. They passed, including the borrowed collator and reset cases.AI-assisted: yes.
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.