mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-04 05:44:53 +00:00
[PR #453] GCI: Clean up function names and refactor some code. #1269
Reference in New Issue
Block a user
Delete Branch "%!s()"
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?
Original Pull Request: https://github.com/CCExtractor/ccextractor/pull/453
State: closed
Merged: No
Aside from renaming hex2int --> hex_to_int and processhex --> process_hex for consistency, I also took the liberty to implement a hex_string_to_int function. It seems like hexadecimal characters are accessed from a string before being passed to hex_to_int, so it seems logical to eliminate that extra step and generalize the behavior a bit more. I did not introduce the new hex_string_to_int function into existing code to make sure it's reviewed before it's used.