Unlock instant, AI-driven research and patent intelligence for your innovation.

Character string processing method and device

A string and character technology, applied in the field of text information processing, can solve problems such as incomplete string content and filtering

Inactive Publication Date: 2017-03-29
BEIJING GRIDSUM TECH CO LTD
View PDF2 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] In view of this, the main purpose of the method and device for processing a string provided by the present invention is to solve the problem that the character string whose ASCII code value is 0 in the string cannot be filtered by the Python language, resulting in subsequent transfer of the string to other programming When the language is processed, the content of the string read by other programming languages ​​is incomplete; or, when the string is subsequently processed by the Python language itself, the Python language still needs to read the character whose ASCII code value is 0 in the string

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 processing method and device
  • Character string processing method and device
  • Character string processing method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0024] Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided for more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0025] Embodiments of the present invention provide a method for character string processing, such as figure 1 As shown, the method includes:

[0026] 101. Obtain a character string to be processed.

[0027] In the embodiment of the present invention, when obtaining the character string to be processed, the character string to be processed can be obtained based on any programming language in the prior art, where there may be an Am...

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 processing method and device, and relates to the technical field of text information processing. The main purpose is to solve the problem that the Python language cannot filter characters whose ASCII code values are 0, resulting in that when the character string is transferred to other programming languages for processing subsequently, the contents of the character string read by the programming languages are incomplete; or resulting in that when the character string is processed by the Python language subsequently, the Python language still needs to read the characters whose ASCII code values are 0 in the character string. The main technical scheme of the character string processing method disclosed by the invention comprises the following steps: obtaining a to-be-processed character string; identifying whether characters whose American standard code for information ASCII code values are 0 in the to-be-processed character string; if so, deleting the characters whose ASCII code values are 0, and outputting and displaying the characters whose ASCII code values are not 0 in the to-be-processed character string. The character string processing method and device disclosed by the invention is used in a process of processing the characters whose ASCII code values are 0 based on the Python language.

Description

technical field [0001] The invention relates to the technical field of text information processing, in particular to a method and device for character string processing. Background technique [0002] With the continuous updating of computer technology, the types of programming languages ​​also increase. Among them, programming languages ​​are formal languages ​​used to define computer programs, including: Python language, C language, C++ language, etc., and strings are used in almost all A data type that can be implemented in a programming language. [0003] Different programming languages ​​use American Standard Code for Information Interchange (ASCII code) to represent the characters in the string when reading the content of the string. Usually in a string, the characters contained must be meaningful, but characters with an ASCII code value of zero are meaningless. Due to the differences in the programming languages ​​themselves, different programming languages ​​will rea...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F17/22
Inventor 李来
Owner BEIJING GRIDSUM TECH CO LTD