US 12,073,172 B2
Encoded string processing
Philip Hillyer Smith, III, Santa Clara, CA (US); and Richard Todd Minner, Santa Clara, CA (US)
Assigned to Micro Focus LLC, Santa Clara, CA (US)
Filed by MICRO FOCUS LLC, Santa Clara, CA (US)
Filed on Aug. 1, 2022, as Appl. No. 17/878,187.
Prior Publication US 2024/0037318 A1, Feb. 1, 2024
Int. Cl. G06F 40/126 (2020.01); H03M 7/30 (2006.01)
CPC G06F 40/126 (2020.01) [H03M 7/6011 (2013.01); H03M 7/705 (2013.01)] 20 Claims
OG exemplary drawing
 
1. A non-transitory computer-readable data storage medium storing program code executable by a processor to perform processing comprising:
setting a pointer to a first code unit of an original string encoding characters via a plurality of code units, including the first code unit, within an encoding scheme;
determining whether the code unit of the original string referenced by the pointer is valid within the encoding scheme;
in response to determining that the code unit of the original string referenced by the pointer is valid:
starting at the code unit referenced by the pointer, processing one or more code units of the original string that encode a single character within the encoding scheme;
appending the one or more code units as have been processed to a processed string;
appending, to a shadow array corresponding to the original string, a single shadow unit indicating that the one or more code units that have been processed are valid; and
advancing the pointer to the code unit of the original string following the one or more code units.