feat(libSceIcu): implement usearch_setOffset #27181
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/27181"
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:30:23Z.
What
Implement
usearch_setOffsetwith registered-handle validation, complete offset handling and ICU status propagation.Tested
Current integration validation: Ubuntu 24.04 x86_64 Docker, GCC 13.3, CMake 3.28.3, Ninja, Release, BUILD_TESTING=ON, at
a613636be3b17d15c853565d715fafec7713afcfwith 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. No title or console run.Revalidated on 2026-12-02 at
45afe27e53ed9e9fe49cf4b027655e0ddd176ae5with 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:51:35Z.
Review: COMMENTED
Reviewed — comments
This review covers the setOffset change, but the full pull request was not reviewed, so a formal approval is not justified.
What I ran
Reviewed head
e1219c721eba1ab54de06fb41eafd10735888912. I inspected the prepared diff, the setOffset implementation and host wrapper, and its focused test. I ran no commands or tests; the author reports Linux and Windows test runs in the PR description.Results
Negative control
Not run; no test command was run during this review.
Findings
Blocking
None identified in the inspected setOffset path.
Non-blocking
None.
Sources
Not verified
I read
description.md,commits.md,manifest.json,diff.patch,README.md,core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/StringSearchHost.cpp, andcore/libs/prx/libSceIcu/tests/StringSearch.cpp. The prepared file listing marks all changed files included, with no exclusions; I did not read the full text of most changed files or all added lines. Build configuration, other changed behavior, and the author-reported tests were not independently verified.To get this to a good state
Nothing is required for the inspected setOffset path. Complete review of the remaining changed files and run the relevant checks before making a formal decision.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T08:27:10Z.
Review: COMMENTED
Actionable comments posted: 3
ba006be0-2be9-4e82-9f19-239eef506b4cReviewing files that changed from the base of the PR and between
12b4fd5d6aand79f7519c05..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/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-matched-length.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-offset.mddocs/dev/debt/changes/feat-libsceicu-data-break-iterator.mddocs/dev/debt/changes/feat-libsceicu-data-collator.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T08:37:05Z.
Review: COMMENTED
Reviewed — no blocking findings
The reviewed change at head
79f7519c05868e97162f205236f3a9e2c1b29713implements the describedusearch_setOffsetpath; I found no verified blocking defect in the inspected code.What I ran
No build or tests were run. I read the prepared description, commit list, manifest, and diff, then used
repo_read.pyto inspectStringSearch.cppandStringSearchHost.cppat the pinned head.Results
Findings
Blocking
None found in the inspected
usearch_setOffsetimplementation.Non-blocking
None.
Not verified
I inspected only the
usearch_setOffsetimplementation and its host wrapper within the diff. The remaining changed files and hunks were not read, so this is an incomplete review and does not support approval.review/files/contains no included changed-file texts; full changed-file coverage was not verified. Console behavior was not verified. The author-reported test runs were not performed by me.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T09:56:41Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the available evidence supports merging.
What I ran
Reviewed head
82c12331cd88d29541d5e32c3cba682de5110810using the prepared diff and pinned reader. No commands or tests were run; Linux and Windows test results are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The patch changes 36 files; all are marked included in the manifest. Read the changed
StringSearch.cppandStringSearchHost.cppimplementation, relevant diff hunks and tests; did not read every added line of every changed file, so the full multi-feature change is not completely verified. Console behavior and the author-reported Linux and Windows test runs were not independently verified. No files were excluded by rule, per the manifest.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by coderabbitai[bot] on 2026-11-27T10:43:24Z.
Review: COMMENTED
Actionable comments posted: 1
0a528ea4-0159-4f2f-ba75-a7d9e62cc3f8Reviewing files that changed from the base of the PR and between
82c12331cdand5debb34a7e.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/tests/Collator.cppcore/libs/prx/libSceIcu/tests/StringSearch.cppdocs/dev/debt/changes/feat-icu-string-search-open.mdIncluded review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T10:51:56Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the inspected implementation delegates offset validation to ICU and propagates its status.
What I ran
Reviewed head
5debb34a7eb8037486de8862445cf2adaae9f6abusing the prepared diff and the pinned repository reader. No build or tests were run; Linux and Windows test results are author-reported.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
The full text of all changed files was not read, so this is not a complete review of every changed line. I read the prepared description, commits, manifest, diff, review README, and targeted source in
StringSearch.cpp,StringSearchHost.cpp, andConfiguration.cpp; the prepared diff contained the offset implementation and test changes. The changed files not read in full areBreakIterator.cpp,BreakIterator.hpp,Availability.cpp,CMakeLists.txtfiles,Collator.cpp,CollatorHost.cpp,CollatorHost.hpp,Data.cpp,Data.hpp,RecoveredSignatures.hpp,libSceIcu.hpp, changed tests, build and contributor documentation,.gitignore,IcuData.cmake,IcuDataBuilder.py,IcuDataFilter.json, and debt fragments. Excluded by the prepared diff rules: lockfiles, minified files,dist/,build/, and.svgfiles. Build/test execution and console behavior are unverified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T11:08:15Z.
Review: COMMENTED
Reviewed — no blocking findings
The
usearch_setOffsetimplementation inspected here has no verified blocking defect; the review is incomplete across the full pull request.What I ran
Reviewed head
febcd7ecc8a65bb3fffc1bab10a981f9d4f2440d. No commands or tests were run. The description reports Linux and Windows test runs; those were not performed by me.Results
Findings
Blocking
None verified in the code inspected.
Non-blocking
None.
Not verified
This was not a complete review of all changed files. I read 7 changed files:
core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/StringSearchHost.cpp,core/libs/prx/libSceIcu/tests/StringSearch.cpp,core/libs/prx/libSceIcu/RecoveredSignatures.hpp,core/libs/prx/libSceIcu/CMakeLists.txt,core/libs/prx/libSceIcu/Status.hpp, and the review diff. The remaining changed files were not read, so their behavior and the full PR’s build and test claims are not verified.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files before relying on this as a full PR review.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T11:26:14Z.
Review: APPROVED
Reviewed — looks good
Nothing blocks this change; the implementation delegates offset handling and ICU status propagation for registered search handles to ICU 78.1, with coverage for a valid offset and an out-of-bounds offset.
What I ran
Reviewed head
e92a47029945b3270123640ca98bc96f38591af6. No commands or tests were run.Results
Findings
Blocking
None.
Non-blocking
None.
Not verified
No test execution or console behavior was verified. The review focused on
StringSearch.cpp,StringSearchHost.cpp, theStringSearch.cpptests, and the relevant diff. Other changed files in the manifest were not read; the review bundle indicates all changed files were included.files.jsonwas not available in the review folder, so excluded-by-rule files were not verified.To get this to a good state
Nothing is required.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T14:17:35Z.
Review: APPROVED
Reviewed — looks good
The implementation delegates offset validation and ICU status handling for registered search handles to the pinned ICU implementation.
What I ran
Reviewed head
40c49b8a8b03a17fd728c4e0d79d829e6f50325ausingrepo_read.pyreview materials and targeted diff inspection. No build 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 changed-file set was not reviewed; targeted review focused on
StringSearch.cpp,StringSearchHost.cpp, and the added string-search tests. Other changed files, console behavior, and the author-reported Linux and Windows runs 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-27T16:01:58Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the points below are optional.
What I ran
Reviewed head
1e5b84237a421df980a8a45436f105ad78a4048fusing the prepared diff andrepo_read.pyfor targeted source reads. No build or tests were run. The PR description reports Linux and Windows test runs; I did not independently verify them.Results
Findings
Blocking
None.
Non-blocking
usearch_setOffsettest for a valid nonzero offset that asserts the next match position, in addition to checking status and out-of-range behavior. The added test currently exercises offset 2 and offset 9 but does not assert the resulting search position (review/diff.patch:2804).Not verified
I read the prepared description, commits, manifest, diff, and changed source around
usearch_setOffset,usearch_open, registry lookup, and break-iterator cloning. The manifest marks all changed files as included, but I did not read every included changed file; broad ICU data generation, collator, and break-iterator behavior therefore remain unverified. No programmatic checks or console comparisons were run.To get this to a good state
Nothing is required. Optionally, assert the next match position after setting a valid offset.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-27T20:37:14Z.
Review: COMMENTED
Reviewed — no blocking findings
The
usearch_setOffsetimplementation delegates offset handling to ICU 78.1 and forwards its status for registered search handles; the available evidence supports the stated behavior, though this review did not cover every changed line in the broader ICU integration.What I ran
Reviewed head
f17868d738f96eb367482ac345ff2adcb7569eaaagainst the prepared diff. No build or tests were run. Author-reported Linux and Windows test results are in the PR description.Results
Findings
Blocking
None found in the inspected offset implementation.
Non-blocking
None.
Not verified
The prepared manifest lists 41 changed files; all are included, with no excluded files. Read:
review/description.md,review/commits.md,review/manifest.json,review/README.md, the offset-related section ofreview/diff.patch,core/libs/prx/libSceIcu/StringSearch.cpp, andcore/libs/prx/libSceIcu/tests/StringSearch.cpp. The other changed files and their added lines were not read, so the wider ICU data, build, collation, and break-iterator changes are not verified. No tests or build checks were run by this review.To get this to a good state
Nothing is required. Optional: review the remaining changed lines in the broader ICU integration before relying on this review as a full PR assessment.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-28T14:45:38Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this change; the review is incomplete, so a formal approval is not justified.
What I ran
3b9c68b8fba3856c06e9685df09f8b11d19a3c39; inspected theusearch_setOffsetwrapper and its host delegation and test hunk.Results
Findings
Blocking
None found in the targeted code reviewed.
Non-blocking
None.
Not verified
The review bundle lists 42 changed files, all marked included, and no exclusions. Read:
review/description.md,review/commits.md,review/manifest.json, and selected ranges ofreview/diff.patch. The changed implementation files, remaining diff hunks, tests, build configuration, and documentation were not read in full; therefore their behavior and the overall change are not verified. No repository files were read throughrepo_read.py.To get this to a good state
Nothing is required. Optional: complete review of the remaining changed files before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-29T10:23:49Z.
Review: COMMENTED
Reviewed — no blocking findings
The
usearch_setOffsetchange delegates registered handles to ICU 78.1 and propagates the resulting status; this draft is limited to that implementation and its direct tests.What I ran
Reviewed head
f4dec5e66e5d91f2500b89fc5ee168854586154bagainst basemainusing the prepared diff andrepo_read.py. No build or test command was run.Results
Negative control
Not run; no test execution was available in this review.
Findings
Blocking
None identified in the reviewed
usearch_setOffsetpath.Non-blocking
None.
Sources
StringSearch.cppat the reviewed headStringSearch.cpptests at the reviewed headNot verified
The description reports that
guest_icu_recovered_signatures_testspassed in Linux and Windows Docker environments; those runs were not performed here. The full PR review is incomplete: of 47 changed files listed inreview/README.md, onlycore/libs/prx/libSceIcu/StringSearch.cppandcore/libs/prx/libSceIcu/tests/StringSearch.cppwere read at the pinned head. Preparedreview/description.md,review/commits.md,review/manifest.json, andreview/diff.patchwere also inspected. No changed files were excluded byreview/README.md.To get this to a good state
Nothing is required for the reviewed
usearch_setOffsetpath. 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:12:45Z.
Review: COMMENTED
Reviewed — no blocking findings
The inspected
usearch_setOffsetimplementation delegates registered handles to ICU 78.1 and propagates its status; the author reports Linux and Windows tests passed, which I did not run.What I ran
Read the prepared change description, commit list, diff, manifest and review folder README; inspected
StringSearch.cpp,StringSearchHost.cpp, and the related string search tests at head45c88ea0e24f68640d6e1eccf7bef93f115f5798. I did not run commands or tests.Results
Findings
Blocking
None identified in the inspected
usearch_setOffsetpath.Non-blocking
None.
Not verified
Most changed files and their added lines were not read, so the rest of the implementation, build changes, and test coverage are not verified. The author reports Linux x86_64 Docker and Windows x86_64 Docker/Wine test runs; neither was independently confirmed. Console behavior is also unverified.
Files 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/tests/StringSearch.cpp. The review folder’s file list marks all 43 changed files as included; the remaining changed files were not read.To get this to a good state
Nothing is required. The points below are optional: review the remaining changed files and independently run the reported Linux and Windows checks before relying on those results.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-11-30T19:01:36Z.
Review: COMMENTED
Reviewed — no blocking findings
The
usearch_setOffsetpath delegates the position and ICU status through registered search state, but this review did not cover all changed files, so approval is not justified.What I ran
Reviewed head
ab327a66f3f6504151ef9e6398798e1b857ec290. I inspected the prepared diff and the full prepared text forStringSearch.cpp,StringSearchHost.cpp, andtests/StringSearch.cpp. The pinned reader search could not run because it tried to write its log in the read-only run folder. No tests or builds were run.Results
Negative control
Not run; no test was executed.
Findings
Blocking
None verified in the inspected
usearch_setOffsetpath.Non-blocking
None.
Sources
StringSearch.cppat the reviewed headStringSearchHost.cppat the reviewed headNot verified
Read:
core/libs/prx/libSceIcu/StringSearch.cpp,core/libs/prx/libSceIcu/StringSearchHost.cpp, andcore/libs/prx/libSceIcu/tests/StringSearch.cpp, in addition to the prepared description, commit list, manifest, diff, and file inventory. The inventory lists 47 reviewed files and 0 excluded files; the remaining 44 reviewed files were not read. No runtime, console, or host test behavior was confirmed.To get this to a good state
Nothing is required. Optional: review the remaining changed files before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T01:33:58Z.
Review: COMMENTED
Reviewed — no blocking findings
No blocking defect was verified in the inspected
usearch_setOffsetimplementation; review of the remaining changed files is incomplete.What I ran
Reviewed head
bbb41f126015c30ee18038cb8c31bf07d2aab0f8using the prepared review materials. No tests were run. The author reports three ICU tests and convention checks passed; those results were not independently verified.Results
usearch_setOffsetsource reviewNegative control
Not run; no test was executed or modified for a negative control.
Findings
Blocking
None in the inspected
usearch_setOffsetimplementation.Non-blocking
None.
Sources
StringSearch.cppat the reviewed headStringSearchHost.cppat the reviewed headStringSearch.cpptests at the reviewed headNot verified
Inspected prepared full texts:
StringSearch.cpp,StringSearchHost.cpp,tests/StringSearch.cpp,IcuData.cmake,IcuDataBuilder.py,IcuDataFilter.json,Icu.cmake, andicu-host/CMakeLists.txt, along with the description, commits, manifest, diff, and files list. The reader access failed because it could not write its access log in the read-only run; the prepared snapshots were used instead.manifest.jsonlists 47 changed files and none lacked full text;files.jsonlists no rule-excluded files. The other changed files were not read, so their behavior is not verified.To get this to a good state
Nothing is required. Optional: review the remaining changed files before making a formal approval decision.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T12:06:39Z.
Review: COMMENTED
Reviewed — no blocking findings
Nothing blocks this; the points below are optional.
What I ran
Reviewed head
45afe27e53ed9e9fe49cf4b027655e0ddd176ae5. I used the pinned reader to inspect the prepared change and the search implementation and test; I did not run tests or builds. The author reports 3/3 tests passing on Ubuntu 24.04, but I did not verify that run.Results
Findings
Blocking
None verified in the inspected search code.
Non-blocking
core/libs/prx/libSceIcu/StringSearch.cpp:215; implementation, test)Sources
The wrapper validates the registered search handle, locks its state, delegates to the host ICU call, and writes back changed status. The related test covers valid and out-of-range offsets. See the wrapper, host call, and test.
Not verified
I read
description.md,commits.md,manifest.json,diff.patch, andfiles.json, plus the pinned source ranges listed above.files.jsonreports no rule-based exclusions. I did not inspect the remaining changed source and documentation files individually, so this is not a complete review of the full change set. Console behavior and the author-reported test run were not verified.To get this to a good state
Nothing is required. Optionally add an assertion that checks the match position after setting the offset.
Imported from boykopovar/AnyPS5. Originally posted by MarcZX10 on 2026-12-02T19:38:09Z.
Review: COMMENTED
Reviewed — comments
The
usearch_setOffsetwrapper delegates to ICU and propagates its status; I did not assess the other changed files in this large PR.What I ran
Reviewed head
a613636be3b17d15c853565d715fafec7713afcf. I inspected the prepared description, commit list, manifest, exclusion list, and relevantdiff.patchhunks, then read the pinnedStringSearch.cppcontext withrepo_read.py. No tests or builds were run.Results
Negative control
Not run; no tests were executed.
Findings
Blocking
None identified in the targeted
usearch_setOffsetcode.Non-blocking
core/libs/prx/libSceIcu/tests/StringSearch.cpp:392). Consider adding a behavioral assertion when search navigation is available.Sources
StringSearch.cppat the reviewed headStringSearchHost.cppat the reviewed headNot verified
Source context read:
core/libs/prx/libSceIcu/StringSearch.cpplines 112–247. Prepared review inputs read:description.md,commits.md,manifest.json,diff.patch(targeted portions), andfiles.json. The other 42 changed files listed as reviewed infiles.jsonwere not assessed in source context.files.jsonreports no rule-based exclusions.To get this to a good state
Nothing is required. The behavioral test improvement above is optional.
Imported from boykopovar/AnyPS5. Originally posted by ligmaSec on 2026-12-03T12:33:45Z.
Review: COMMENTED
Built the branch’s string-search sources on Linux with ICU 78.1 and ran the fixture’s
CheckIcuStringSearchcases directly. They passed, including the offset checks.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.