US 11,750,211 B2
Encoding method and apparatus, storage medium, and computer device
Qiang Zuo, Shenzhen (CN)
Assigned to BYD COMPANY LIMITED, Shenzhen (CN)
Appl. No. 17/611,834
Filed by BYD COMPANY LIMITED, Shenzhen (CN)
PCT Filed Jun. 19, 2020, PCT No. PCT/CN2020/097038
§ 371(c)(1), (2) Date Nov. 16, 2021,
PCT Pub. No. WO2020/259400, PCT Pub. Date Dec. 30, 2020.
Claims priority of application No. 201910553814.0 (CN), filed on Jun. 25, 2019.
Prior Publication US 2022/0224352 A1, Jul. 14, 2022
Int. Cl. H03M 7/14 (2006.01); H04L 1/00 (2006.01)
CPC H03M 7/14 (2013.01) [H04L 1/0056 (2013.01)] 11 Claims
OG exemplary drawing
 
1. An encoding method, comprising:
traversing a to-be-encoded string;
searching for a preset string in the to-be-encoded string; and
deleting the preset string in the to-be-encoded string if the preset string is found, to obtain a target string,
wherein after the preset string is found, the method further comprises:
obtaining an index value of the found preset string in the to-be-encoded string; and
during the deleting the preset string in the to-be-encoded string, to obtain a target string, the method further comprises:
inserting the index value into the target string in a preset insertion manner, a length of the preset string being not less than a placeholder length of the index value.