Patent ID: 8321785
Filing Date: 2012-11-27
Classification: G06F

Abstract:
1. A computer-implemented method of replacing at least a part of a text with another text, the method comprising: providing a unit of text to a text buffer, the unit of text having a total number of characters; dividing the unit of text into subsets comprising a plurality of shift blocks and one or more replacement blocks, the one or more replacement blocks being replaceable by a respective replacement text of variable length, wherein: the plurality of shift blocks has a first number of shift characters, the one or more replacement blocks have a second number of replacement characters, and a sum of the first number and the second number equals the total number; based on one operation of replacing each replacement block with the respective replacement text, determining a final position of each shift block within the text buffer such that all of the plurality of shift blocks are processable in the one operation; determining an order of shifting the plurality shift blocks in the one operation based at least in part on the final position of each shift block; and in the one operation, shifting each shift block of the plurality of shift blocks and replacing the one or more replacement blocks with the respective replacement text to provide a text string having a length based on the first number of shift characters and the variable length of the respective replacement text.