Code conversion method and device

A code conversion and source code technology, applied in the field of code conversion methods and devices, can solve the problems of high labor cost and increase the workload of technicians, and achieve the effect of reducing labor costs

Active Publication Date: 2017-01-04
ADVANCED NEW TECH CO LTD
View PDF4 Cites 18 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0004] Among them, when a technician writes a piece of code with a certain function according to a computer language coding format, the piece of code can be applied on the computer language platform corresponding to the computer language coding format. When the code with this function is applied on the computer language platform corresponding to the computer language coding format, a piece of code with this function must be written according to another computer language coding format, but this will increase the workload of technicians, resulting in higher labor costs. high

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
  • Code conversion method and device
  • Code conversion method and device
  • Code conversion method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0065] Reference will now be made in detail to the exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numerals in different drawings refer to the same or similar elements unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the present invention. Rather, they are merely examples of apparatuses and methods consistent with aspects of the invention as recited in the appended claims.

[0066] figure 1 is a flow chart of a code conversion method shown according to an exemplary embodiment, such as figure 1 As shown, the method includes the following steps.

[0067] In step S101, a request input by the user for format conversion of the source code in the source encoding format is received;

[0068] The request carries the identification of the source code and the target encodi...

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 relates to a code conversion method and a code conversion device. The code conversion method comprises the following steps of receiving a request of performing format conversion on source codes in a source coding format input by a user, and analyzing the source codes according to the source coding format, obtaining data character strings contained in the source codes and syntax character strings in the source coding format; converting the syntax character strings in the source coding format into syntax character strings corresponding to a target coding format; combining the data character strings with the syntax character strings corresponding to the target coding format so as to form target codes in the target coding format. Thus, if a section of source codes, written according to the source coding format and possessed with a certain function, is needed to be applied to a language platform of which the supporting coding format is different from the source coding format, just converting the source coding format of the source codes into the coding format supported by the language platform, therefore the converted codes can be applied to the language platform, and the labor cost can be reduced in comparison with the prior art.

Description

technical field [0001] The invention relates to the field of computer technology, in particular to a code conversion method and device. Background technique [0002] At present, there are various computer language platforms in the computer field, such as JS (JavaScript, literal translation scripting language) language platform, PHP (Professional Hypertext Preprocessor, professional hypertext preprocessing) language platform and C# (object-oriented Each computer language platform has its own computer language encoding format, and the computer language encoding formats corresponding to each computer language platform are different. [0003] For any computer language platform, only the code written in the computer language encoding format corresponding to the computer language platform can be applied on the computer language platform. For example, only codes written in the JS language encoding format corresponding to the JS language platform can be used on the JS language plat...

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): G06F9/44
Inventor 徐达峰
Owner ADVANCED NEW TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products