CPC G06F 40/126 (2020.01) [H03M 7/6011 (2013.01); H03M 7/705 (2013.01)] | 20 Claims |
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.
|