Symmetric text replacement
AssigneeCharter Communications Operating, LLC
InventorMarek Hajduczenia
Life of this patent
Estimating the term…
Abstract
Systems, methods, and devices of various embodiments may receive first and second text strings for performing a symmetric text replacement. An original recitation of the first or second text strings may be located, wherein at least one intervening other text string is disposed between the first and second text strings. Each original recitation of the first text string may be replaced with a substituted recitation of the second text string in response to determining the located original recitation of the first and second text strings matches the first text string. Similarly, each original recitation of the second text string may be replaced with a substituted recitation of the first text string in response to determining the located original recitation of the first and second text strings matches the second text string.
Claims27
A method of automatically editing a text document, comprising:
- receiving, by a processor of a computing device, first and second text strings for performing a symmetric text replacement and swapping in a text file;
- locating, in the text file, at least one original recitation of either of the first and second text strings, wherein at least one intervening other text string is disposed between the first and second text strings;
- determining, by the processor, whether the located at least one original recitation of the first and second text strings matches the first text string or the second text string;
- and
- replacing, in the text file:
- each original recitation of the first text string with a substituted recitation of the second text string in response to determining the located original recitation of the first and second text strings matches the first text string, and
- each original recitation of the second text string with a substituted recitation of the first text string in response to determining the located original recitation of the first and second text strings matches the second text string, wherein a position of each of the at least one intervening other text strings disposed between the first and second text strings remains between the substituted recitation of the first and second text strings after replacing the at least one original recitation of the first and second text strings.
A text editing device, comprising:
- a user interface;
- and
- a processor coupled to the user interface and configured to perform operations comprising:
- receiving via the user interface first and second text strings for performing a symmetric text replacement and swapping in a text file;
- locating, in the text file, at least one original recitation of either of the first and second text strings, wherein at least one intervening other text string is disposed between the first and second text strings;
- determining whether the located at least one original recitation of the first and second text strings matches the first text string or the second text string;
- and
- replacing, in the text file:
- each original recitation of the first text string with a substituted recitation of the second text string in response to determining the located original recitation of the first and second text strings matches the first text string, and
- each original recitation of the second text string with a substituted recitation of the first text string in response to determining the located original recitation of the first and second text strings matches the second text string wherein a position of each of the at least one intervening other text strings disposed between the first and second text strings remains between the substituted recitation of the first and second text strings after replacing the at least one original recitation of the first and second text strings.
A non-transitory processor-readable storage medium having stored thereon processor-executable instructions configured to cause a processor of a text editing device to perform operations comprising:
- receiving first and second text strings for performing a symmetric text replacement and swapping in a text file;
- locating, in the text file, at least one original recitation of either of the first and second text strings, wherein at least one intervening other text string is disposed between the first and second text strings;
- determining whether the located at least one original recitation of the first and second text strings matches the first text string or the second text string;
- and
- replacing, in the text file:
- each original recitation of the first text string with a substituted recitation of the second text string in response to determining the located original recitation of the first and second text strings matches the first text string, and
- each original recitation of the second text string with a substituted recitation of the first text string in response to determining the located original recitation of the first and second text strings matches the second text string, wherein a position of each of the at least one intervening other text strings disposed between the first and second text strings remains between the substituted recitation of the first and second text strings after replacing the at least one original recitation of the first and second text strings.
Dependencies are inferred from the claim text.