Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Character string look-up method and device

A string and target string technology, applied in electrical digital data processing, instruments, calculations, etc., can solve the problems of high error rate and low audit efficiency, and achieve the effect of improving search efficiency and reducing search error rate.

Active Publication Date: 2016-08-17
GUANGZHOU HUADUO NETWORK TECH
View PDF6 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In order to solve the problems in the prior art that the code style needs to be reviewed by specialized reviewers, the review efficiency is low and the error rate is high, the embodiment of the present invention provides a string search method and device

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Character string look-up method and device
  • Character string look-up method and device
  • Character string look-up method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0020] In order to make the object, technical solution and advantages of the present invention clearer, the implementation manner of the present invention will be further described in detail below in conjunction with the accompanying drawings.

[0021] The character string search method provided by various embodiments of the present invention is applied to an electronic device running a state machine, for example, the electronic device may be a personal computer or a code detection server or the like.

[0022] In order to simplify the description, the method for searching for a character string is executed by a computer as an example below, but this is not intended to be a limitation.

[0023] Please refer to figure 1 , which shows a flow chart of a character string search method provided by an embodiment of the present invention. The method includes:

[0024] Step 102, read the configuration information of the state machine, the configuration information of the state machin...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a character string look-up method and device, and belongs to the field of program development. The method comprises the steps that state machine configuration information is read, wherein the state configuration information comprises at least two sub-states, each sub-state is used for looking up a corresponding character string, and the character strings corresponding to at least two sub-states have a context relation; the target character string according with the predetermined contextual feature is looked up in a target text through a state machine according to the state machine configuration information. According to the method and device, the problems that a code style needs to be audited by a professional auditor, the audit efficiency is low, and the error rate is high are solved; the purpose that when the target character string with the complex contextual feature is looked up, only corresponding state machine configuration needs to be generated according to the target character string, and the state machine is indicated to automatically look up the target character string according to the state machine configuration, so that the look-up error rate is decreased while the look-up efficiency is improved.

Description

technical field [0001] The embodiments of the present invention relate to the field of program development, and in particular to a character string search method and device. Background technique [0002] During the program development process, in order to improve the readability of the code and facilitate subsequent code debugging, each developer in the team needs to maintain a consistent code style. [0003] For example, in order to facilitate code debugging, in the code written by developers, the code corresponding to the log printing function must be included in the catch statement, that is, the logth statement must be included in the catch statement. When reviewing the code style, the auditor checks whether the catch statement of the code contains a logth statement, and if the catch statement does not contain a logth statement, it is determined that the catch statement does not conform to the code style, and is identified. [0004] In the process of implementing the pre...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F11/36
CPCG06F11/3608
Inventor 刘洋成
Owner GUANGZHOU HUADUO NETWORK TECH
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products