US 12,265,819 B2
Code updating method and apparatus, electronic device, and non-volatile computer-readable storage medium
Bo Liu, Jiangsu (CN)
Assigned to SUZHOU METABRAIN INTELLIGENT TECHNOLOGY CO., LTD., Jiangsu (CN)
Appl. No. 18/724,351
Filed by SUZHOU METABRAIN INTELLIGENT TECHNOLOGY CO., LTD., Jiangsu (CN)
PCT Filed Dec. 27, 2022, PCT No. PCT/CN2022/142511
§ 371(c)(1), (2) Date Jun. 26, 2024,
PCT Pub. No. WO2023/213093, PCT Pub. Date Nov. 9, 2023.
Claims priority of application No. 202210477825 (CN), filed on May 5, 2022.
Prior Publication US 2025/0060954 A1, Feb. 20, 2025
Int. Cl. G06F 8/65 (2018.01)
CPC G06F 8/65 (2013.01) 20 Claims
OG exemplary drawing
 
1. A code updating method, comprising:
acquiring a target character string, wherein the target character string is a common code of source codes of at least two products, first line spacings in the source codes of the at least two products are the same, and each of the first line spacings is a spacing between a line where the target character string is located and a first line of codes to be modified;
matching the target character string with source codes of a first product, and taking a line where a character string, that matches the target character string, in the first product is located as a first line of first target codes of the first product; wherein the first product is one of the at least two products, and the first target codes at least further comprise the codes to be modified and codes between the first line and the codes to be modified;
generating a patch file for the first target codes of the first product; and
respectively applying the patch file to the first target codes of the at least two products.