Efficient character counting for variable length encoding formats
AssigneeSap SE
InventorsMarco Patrick Schroeder, Suyeon Maeng, Sooyoung Kim, Kyungwook Ko
Life of this patent
Estimating the term…
Loading patent…
AssigneeSap SE
InventorsMarco Patrick Schroeder, Suyeon Maeng, Sooyoung Kim, Kyungwook Ko
Estimating the term…
Technologies and solutions are also provided for determining a number of characters in encoded data, particularly for encoding formats that have variable byte lengths. Bytes in the encoding format can have different types, including at least one type that represents a continuation byte. That is, rather than having all data for a character being in a single byte, the data is encoded using two or more bytes. The number of continuation bytes can be counted and subtracted from a total number of bytes in a data set to determine the number of characters in the data set. Optionally, the validity of the data set with respect to an encoding format can be determined prior to, or concurrently with, determining a number of characters in the data set. SIMD techniques can be used with the character counting/validation processes to improve their performance.
A computing system comprising:
The computing system of 3, wherein the variable-length format is CESU-8 and wherein the defined interval is a selected byte position within three-byte sequences selected from the data set.
A method, implemented in a computing system comprising at least one hardware processor and at least one memory coupled to the at least one hardware processor, the method comprising:
The method of 10, wherein the variable-length format is CESU-8 and wherein the defined interval is a selected byte position within three-byte sequences selected from the data set.
One or more non-transitory computer-readable storage media comprising:
The one or more non-transitory computer-readable storage media of 17, wherein the variable-length format is CESU-8 and wherein the defined interval is a selected byte position within three-byte sequences selected from the data set.
Dependencies are inferred from the claim text.