[PR #1921] [MERGED] IMPROVEMENT: 1. simplified verify_parity function. 2.Improved documentat… #2718

Open
opened 2026-01-29 17:23:35 +00:00 by claunia · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/CCExtractor/ccextractor/pull/1921
Author: @ChubbyChipmunk77
Created: 12/28/2025
Status: Merged
Merged: 12/30/2025
Merged by: @cfsmp3

Base: masterHead: simplify-and-document


📝 Commits (3)

  • 02d91c4 REFACTOR: 1. simplified verify_parity function. 2.Improved documentation for public function validate_cc_pair. 3. Added constant for 0x7F.
  • 7f55ae5 Fixed semantic naming and update doc comments
  • f5f4768 style: fix doc comment formatting for Clippy

📊 Changes

1 file changed (+35 additions, -11 deletions)

View changed files

📝 src/rust/src/lib.rs (+35 -11)

📄 Description

…ion for public function validate_cc_pair. 3. Added constant for 0x7F.

[IMPROVEMENT]

In raising this pull request, I confirm the following

  • I have read and understood the contributors guide.
  • I have checked that another pull request for this purpose does not exist.
  • I have considered, and confirmed that this submission will be valuable to others.
  • I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
  • I give this submission freely, and claim no ownership to its content.
  • I have mentioned this change in the changelog.

My familiarity with the project is as follows:

  • I have never used CCExtractor.

##Changes Made

  1. Replaced magic number 0x7F with named constant CC_BLANK_SPACE.
  2. Added comprehensive documentation to function validate_cc_pair.
  3. Simplified verify_parity function.

##Tests
All existing tests passed.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/CCExtractor/ccextractor/pull/1921 **Author:** [@ChubbyChipmunk77](https://github.com/ChubbyChipmunk77) **Created:** 12/28/2025 **Status:** ✅ Merged **Merged:** 12/30/2025 **Merged by:** [@cfsmp3](https://github.com/cfsmp3) **Base:** `master` ← **Head:** `simplify-and-document` --- ### 📝 Commits (3) - [`02d91c4`](https://github.com/CCExtractor/ccextractor/commit/02d91c4a03a7f5f7fa3840bcfe57007f566f69dc) REFACTOR: 1. simplified verify_parity function. 2.Improved documentation for public function validate_cc_pair. 3. Added constant for 0x7F. - [`7f55ae5`](https://github.com/CCExtractor/ccextractor/commit/7f55ae5c1d386533c9beda7d6bc5326013cf06dc) Fixed semantic naming and update doc comments - [`f5f4768`](https://github.com/CCExtractor/ccextractor/commit/f5f47685037b7d7fe162b0317bba00b683dce6a0) style: fix doc comment formatting for Clippy ### 📊 Changes **1 file changed** (+35 additions, -11 deletions) <details> <summary>View changed files</summary> 📝 `src/rust/src/lib.rs` (+35 -11) </details> ### 📄 Description …ion for public function validate_cc_pair. 3. Added constant for 0x7F. **[IMPROVEMENT]** **In raising this pull request, I confirm the following** - [x] I have read and understood the [contributors guide](https://github.com/CCExtractor/ccextractor/blob/master/.github/CONTRIBUTING.md). - [x] I have checked that another pull request for this purpose does not exist. - [x] I have considered, and confirmed that this submission will be valuable to others. - [x] I accept that this submission may not be used, and the pull request closed at the will of the maintainer. - [x] I give this submission freely, and claim no ownership to its content. - [ ] **I have mentioned this change in the [changelog](https://github.com/CCExtractor/ccextractor/blob/master/docs/CHANGES.TXT).** **My familiarity with the project is as follows:** - [x] I have never used CCExtractor. --- ##Changes Made 1. Replaced magic number 0x7F with named constant `CC_BLANK_SPACE`. 2. Added comprehensive documentation to function `validate_cc_pair`. 3. Simplified verify_parity function. ##Tests ✅ All existing tests passed. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
claunia added the pull-request label 2026-01-29 17:23:35 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/ccextractor#2718