Skip to content

String normalization becomes caller responsibility - MOD-9985#6426

Merged
DarthB merged 1 commit intomasterfrom
normalization_as_caller_responsibility
Jul 3, 2025
Merged

String normalization becomes caller responsibility - MOD-9985#6426
DarthB merged 1 commit intomasterfrom
normalization_as_caller_responsibility

Conversation

@DarthB
Copy link
Copy Markdown
Contributor

@DarthB DarthB commented Jul 3, 2025

Describe the changes in the pull request

String normalization / case folding was part of the put_string method of the RSSortingVector.

Move the code for string normalization outside of RSSortingVector, leading to a better division of concerns and also simplifying the C interface and upcoming Rust FFI code.

Is extracted from: #6311

Main objects this PR modified

  1. document.c/h
  2. sortable.h

Mark if applicable

  • This PR introduces API changes
  • This PR introduces serialization changes

@github-actions github-actions bot added the size:S label Jul 3, 2025
@DarthB DarthB marked this pull request as ready for review July 3, 2025 09:48
@codecov
Copy link
Copy Markdown

codecov bot commented Jul 3, 2025

Codecov Report

Attention: Patch coverage is 78.57143% with 3 lines in your changes missing coverage. Please review.

Project coverage is 89.25%. Comparing base (96be547) to head (67a4bcd).
Report is 3 commits behind head on master.

Files with missing lines Patch % Lines
src/document.c 75.00% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #6426      +/-   ##
==========================================
- Coverage   89.31%   89.25%   -0.06%     
==========================================
  Files         251      251              
  Lines       41298    41301       +3     
  Branches     3614     3614              
==========================================
- Hits        36884    36863      -21     
- Misses       4370     4394      +24     
  Partials       44       44              
Flag Coverage Δ
flow 81.96% <78.57%> (-0.18%) ⬇️
unit 46.84% <0.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Copy Markdown
Collaborator

@raz-mon raz-mon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👌

@DarthB DarthB added this pull request to the merge queue Jul 3, 2025
@CLAassistant
Copy link
Copy Markdown

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

Merged via the queue into master with commit 0875702 Jul 3, 2025
19 of 23 checks passed
@DarthB DarthB deleted the normalization_as_caller_responsibility branch July 3, 2025 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants