Utilizing created character index for switch statements
AssigneeInternational Business Machines Corporation
InventorsXing Xing Pan, Jiu Fu Guo, Xiao Feng Guan, Allan Kielstra
Life of this patent
Estimating the term…
Abstract
Provided is a method for string comparison. The method includes receiving a plurality of target strings. Each target string of the plurality of target strings comprises a sequence of characters. The method further includes creating a character index for the plurality of target strings having a plurality of entries corresponding to the sequence of characters. The method further includes prioritizing the plurality of entries. The method further includes determining an evaluation method for the plurality of target strings based on the plurality of prioritized entries. The method further includes performing the evaluation method for the plurality of target strings.
Claims7
A computer-implemented method, comprising:
- receiving a plurality of target strings, wherein each target string of the plurality of target strings comprises a sequence of characters;
- creating a character index for the plurality of target strings, the character index having a plurality of entries corresponding to the sequence of characters;
- prioritizing the plurality of entries;
- determining an evaluation method for the plurality of target strings based on the prioritized plurality of entries;
- generating an action table including an action for each possible outcome of the evaluation method;
- receiving a variable string;
- and
- performing the evaluation method for the plurality of target strings, wherein the performed evaluation method is performed with respect to the variable string.
Dependencies are inferred from the claim text.