[go: up one dir, main page]
More Web Proxy on the site http://driver.im/

CN109325217B - File conversion method, system, device and computer readable storage medium - Google Patents

File conversion method, system, device and computer readable storage medium Download PDF

Info

Publication number
CN109325217B
CN109325217B CN201811094771.6A CN201811094771A CN109325217B CN 109325217 B CN109325217 B CN 109325217B CN 201811094771 A CN201811094771 A CN 201811094771A CN 109325217 B CN109325217 B CN 109325217B
Authority
CN
China
Prior art keywords
file
sub
converted
content
label
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201811094771.6A
Other languages
Chinese (zh)
Other versions
CN109325217A (en
Inventor
刘均
庄文龙
刘国柱
詹伟
程驰
王力
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Launch Technology Co Ltd
Original Assignee
Shenzhen Launch Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Launch Technology Co Ltd filed Critical Shenzhen Launch Technology Co Ltd
Priority to CN201811094771.6A priority Critical patent/CN109325217B/en
Publication of CN109325217A publication Critical patent/CN109325217A/en
Application granted granted Critical
Publication of CN109325217B publication Critical patent/CN109325217B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/14Tree-structured documents
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation
    • G06F40/154Tree transformation for tree-structured or markup documents, e.g. XSLT, XSL-FO or stylesheets
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Document Processing Apparatus (AREA)

Abstract

The application discloses a file conversion method, a system, a device and a computer readable storage medium, which are applied to the field of automobile diagnosis and comprise the following steps: analyzing the logic structure and the file content of the file to be converted; converting the file to be converted into a target file by using a preset conversion mapping table, the file content and the logic structure of the file to be converted; the method comprises the steps of establishing a conversion mapping table for storing the mapping relation between the file content of a file to be converted and the file content of a target file in advance, converting the file content of the file to be converted into the file content of the target file by using the conversion mapping table after the file content of the file to be converted is analyzed, generating the target file according to the logic structure of the file to be converted and the file content of the target file, realizing format conversion of the two files, converting the OTX file in a code format into an xml format, writing the OTX file in the code format more quickly, and converting the xml format into the code format so as to understand the content of the OTX file more quickly, thereby improving the working efficiency.

Description

File conversion method, system, device and computer readable storage medium
Technical Field
The present application relates to the field of vehicle diagnosis, and in particular, to a method, system, device and computer readable storage medium for file conversion.
Background
In the past, the compiling of the diagnosis flow of the automobile diagnosis software is realized through codes (C + + or Java), for example, a key matching flow, the judgment branch inside the key matching flow is more in circulation and processing, and the code compiling is more flexible, but now along with the use and popularization of the ISO13209OTX standard, all the diagnosis flows inside the automobile diagnosis software are represented by Open Test sequence Exchange (OTX) files in an Extensible Markup Language (xml) format, so that the formats are convenient to unify.
In the prior art, the generation mode of the OTX file in the xml format includes two modes, the first mode is to write the OTX file in the corresponding xml format directly according to the diagnosis process, and the second mode is to utilize the OTX tool of the third party to fill the content of each node in the whole process and finally save the content into the xml format; however, the first method is very heavy in workload for directly compiling xml, thousands of lines are needed for a common diagnosis process, the OTX tools of each tool supplier in the second method are different in use method, the grammar of the development tool needs to be learned, and the tool can fill some static data, and dynamic control is troublesome, such as judgment, branching, circulation and the like, so that the OTX files in the xml format of the automobile diagnosis process are difficult to directly edit and generate, difficult to understand, heavy in workload and low in working efficiency.
Therefore, a method for facilitating editing an OTX file generated in xml format is needed to improve work efficiency.
Disclosure of Invention
In view of this, an object of the present application is to provide a file conversion method, system, device and computer readable storage medium, which improve the generation efficiency of the OTX file in the xml format. The specific scheme is as follows:
a file conversion method, comprising:
analyzing the logic structure and the file content of the file to be converted;
converting the file to be converted into a target file by utilizing a preset conversion mapping table, the file content and the logic structure of the file to be converted;
and storing the mapping relation between the file content of the file to be converted and the file content of the target file in the conversion mapping table.
Optionally, the converting the to-be-converted file into the target file by using a preset conversion mapping table, the file content of the to-be-converted file, and the logic structure includes:
classifying the file contents of the files to be converted according to a preset classification method to obtain a plurality of program segments belonging to different categories;
converting each program segment into a target program segment of the target file by using a function character mapping relation which is the same as the type of each program segment in the conversion mapping table, so as to obtain the file content of the target file;
generating the target file by utilizing the logic structure of the file to be converted and the file content of the target file;
and the function character mapping relation is the mapping relation between the function character of the file to be converted and the target function character of the target file.
Optionally, when the file to be converted is in a code format, the target file is in an xml format, and the file contents of the file to be converted are classified according to a preset classification method to obtain multiple program segments belonging to different categories, the process includes:
extracting function characters from the file content of the file to be converted by using a keyword extraction method;
and classifying the file contents of the files to be converted by utilizing the categories of the function characters in the file contents of the files to be converted to obtain a plurality of program segments belonging to different categories.
Optionally, the process of analyzing the logic structure and the file content of the file to be converted includes:
and analyzing the logic structure and the file content of the file to be converted layer by layer in a circulating recursion mode.
Optionally, when the file to be converted is in a code format and the target file is in an xml format, the process of analyzing the logic structure of the file to be converted and the file content code format layer by layer in a cyclic recursive manner includes:
s115: analyzing the content of the main function and the code calling relation;
s116: analyzing the content and the code calling relation of a first sub-code segment in the sub-code segments of the main function;
s117: sequentially analyzing the content and the code calling relation of the subordinate sub-code segments of the first sub-code segment until all the subordinate sub-code segments of the first sub-code segment are analyzed;
s118: substituting the second sub-code segment in the sub-code segment of the main function as the first sub-code segment into the S117 for analysis until all the sub-code segments of the main function are analyzed;
the first sub-code segment is the same as the second sub-code segment or the first sub-code segment is the last unresolved code segment in the upper code segment of the second sub-code segment.
Optionally, when the file to be converted is in an xml format and the target file is in a code format, the process of analyzing the logic structure and the file content of the file to be converted layer by layer in a cyclic recursive manner includes:
s111: analyzing the content, the category and the directory index relation of the root directory label;
s112: analyzing the content, category and directory index relation of a first sub-label in the sub-labels of the root directory label;
s113: sequentially analyzing the content, the category and the directory index relation of the subordinate sub-labels of the first sub-label until all the subordinate sub-labels of the first sub-label are analyzed;
s114: substituting the second sub-label in the sub-labels of the root directory label as the first sub-label into S113 for analysis until all the sub-labels of the root directory label are analyzed;
the first sub-label is the same level as the second sub-label or the first sub-label is the last unresolved label in the upper label of the second sub-label.
Optionally, when the file to be converted is in an xml format and the target file is in a code format, the process of classifying the file content of the file to be converted according to a preset classification method to obtain multiple program segments belonging to different categories includes:
and classifying by using the category of each label in the file content of the target file to obtain a plurality of program segments belonging to different categories.
The application also discloses a file conversion system, including:
the analysis module is used for analyzing the logic structure and the file content of the file to be converted;
the conversion module is used for converting the file to be converted into a target file by utilizing a preset conversion mapping table, the file content and the logic structure of the file to be converted;
wherein, and the conversion mapping table stores the mapping relation between the file content of the file to be converted and the file content of the target file.
Optionally, the conversion module includes:
the classification unit is used for classifying the file contents of the files to be converted according to a preset classification method to obtain a plurality of program sections belonging to different categories;
the conversion unit is used for converting each program segment into a target program segment of the target file by utilizing a function character mapping relation which is in the same category as that of each program segment in the conversion mapping table to obtain the file content of the target file;
the integration unit is used for generating the target file by utilizing the logic structure of the file to be converted and the file content of the target file;
and the function character mapping relation is the mapping relation between the function character of the file to be converted and the target function character of the target file.
Optionally, when the file to be converted is in a code format, and the target file is in an xml format, the classifying unit includes:
the keyword extraction subunit is used for extracting the function characters from the file content of the file to be converted by using a keyword extraction method;
and the first classification subunit is used for classifying the file contents of the files to be converted by utilizing the categories of the function characters in the file contents of the files to be converted to obtain a plurality of program segments belonging to different categories.
Optionally, the parsing module is specifically configured to parse the logic structure and the file content of the file to be converted layer by layer in a cyclic recursion manner.
Optionally, when the file to be converted is in a code format and the target file is in an xml format, the parsing module is specifically configured to:
s115: analyzing the content and the code calling relation of the main function;
s116: analyzing the content and the code calling relation of a first sub-code segment in the sub-code segments of the main function;
s117: sequentially analyzing the content and the code calling relation of the subordinate sub-code segments of the first sub-code segment until all the subordinate sub-code segments of the first sub-code segment are analyzed;
s118: substituting the second sub-code segment in the sub-code segment of the main function as the first sub-code segment into the S117 for analysis until all the sub-code segments of the main function are analyzed;
the first sub-code segment is the same as the second sub-code segment or the first sub-code segment is the last unresolved code segment in the upper code segment of the second sub-code segment.
Optionally, when the file to be converted is in an xml format and the target file is in a code format, the parsing module is specifically configured to:
s111: analyzing the content, the category and the directory index relation of the root directory label;
s112: analyzing the content, the category and the directory index relation of a first sub-label in the sub-labels of the root directory label;
s113: sequentially analyzing the content, the category and the directory index relation of the subordinate sub-labels of the first sub-label until all the subordinate sub-labels of the first sub-label are analyzed;
s114: substituting the second sub-label in the sub-labels of the root directory label as the first sub-label into S113 for analysis until all the sub-labels of the root directory label are analyzed;
the first sub-tag is the same as the second sub-tag in level or the first sub-tag is the last unresolved tag in the upper-level tag of the second sub-tag.
Optionally, when the file to be converted is in an xml format, and the target file is in a code format, the classifying unit includes:
and the second classification subunit is used for classifying by utilizing the category of each label in the file content of the target file to obtain a plurality of program segments belonging to different categories.
The application also discloses a file conversion device, includes:
a memory for storing a computer program;
a processor for executing the computer program to implement the file conversion method as described above.
Optionally, when the processor executes the computer subprogram stored in the memory, the following steps are specifically implemented: classifying the file contents of the files to be converted according to a preset classification method to obtain a plurality of program segments belonging to different categories; converting each program segment into a target program segment of the target file by using a function character mapping relation which is the same as the type of each program segment in the conversion mapping table to obtain the file content of the target file; generating the target file by utilizing the logic structure of the file to be converted and the file content of the target file; and the function character mapping relation is a mapping relation between the function characters of the file to be converted and the target function characters of the target file.
Optionally, when the processor executes the computer subprogram stored in the memory, the following steps are specifically implemented: when the file to be converted is in a code format and the target file is in an xml format, extracting function characters from the file content of the file to be converted by using a keyword extraction method; and classifying the file contents of the files to be converted by utilizing the categories of the function characters in the file contents of the files to be converted to obtain a plurality of program segments belonging to different categories.
Optionally, when the processor executes the computer subprogram stored in the memory, the following steps are specifically implemented: and analyzing the logic structure and the file content of the file to be converted layer by layer in a circulating recursion mode.
Optionally, when the processor executes the computer subprogram stored in the memory, the following steps are specifically implemented: when the file to be converted is in the code format and the target file is in the xml format, S115: analyzing the content and the code calling relation of the main function; s116: analyzing the content and the code calling relation of a first sub-code segment in the sub-code segments of the main function; s117: sequentially analyzing the content and the code calling relation of the subordinate sub-code segments of the first sub-code segment until all the subordinate sub-code segments of the first sub-code segment are analyzed; s118: substituting the second sub-code segment in the sub-code segment of the main function as the first sub-code segment into the S117 for analysis until all the sub-code segments of the main function are analyzed; the first sub-code segment is the same as the second sub-code segment or the first sub-code segment is the last unresolved code segment in the upper code segment of the second sub-code segment.
Optionally, when the processor executes the computer subprogram stored in the memory, the following steps are specifically implemented: when the file to be converted is in an xml format and the target file is in a code format, S111: analyzing the content, the category and the directory index relation of the root directory label; s112: analyzing the content, category and directory index relation of a first sub-label in the sub-labels of the root directory label; s113: sequentially analyzing the content, the category and the directory index relation of the subordinate sub-labels of the first sub-label until all the subordinate sub-labels of the first sub-label are analyzed; s114: substituting the second sub-label in the sub-labels of the root directory label as the first sub-label into S113 for analysis until all the sub-labels of the root directory label are analyzed; the first sub-label is the same level as the second sub-label or the first sub-label is the last unresolved label in the upper label of the second sub-label.
Optionally, when the processor executes the computer subprogram stored in the memory, the following steps are specifically implemented: and when the file to be converted is in an xml format and the target file is in a code format, classifying by using the category of each label in the file content of the target file to obtain a plurality of program segments belonging to different categories.
The present application also discloses a computer readable storage medium having stored thereon a computer program which, when executed by a processor, implements the steps of the file conversion method as described above.
Optionally, when executed by a processor, a computer sub-program stored in the computer-readable storage medium specifically implements the following steps: classifying the file contents of the files to be converted according to a preset classification method to obtain a plurality of program segments belonging to different categories; converting each program segment into a target program segment of the target file by using a function character mapping relation which is the same as the type of each program segment in the conversion mapping table, so as to obtain the file content of the target file; generating the target file by utilizing the logic structure of the file to be converted and the file content of the target file; and the function character mapping relation is the mapping relation between the function character of the file to be converted and the target function character of the target file.
Optionally, when executed by a processor, a computer sub-program stored in the computer-readable storage medium specifically implements the following steps: when the file to be converted is in a code format and the target file is in an xml format, extracting function characters from the file content of the file to be converted by using a keyword extraction method; and classifying the file contents of the files to be converted by utilizing the categories of the function characters in the file contents of the files to be converted to obtain a plurality of program segments belonging to different categories.
Optionally, when executed by a processor, the computer subprogram stored in the computer-readable storage medium implements the following steps: and analyzing the logic structure and the file content of the file to be converted layer by layer in a circulating recursion mode.
Optionally, when executed by a processor, a computer sub-program stored in the computer-readable storage medium specifically implements the following steps: when the file to be converted is in the code format and the target file is in the xml format, S115: analyzing the content of the main function and the code calling relation; s116: analyzing the content and the code calling relation of a first sub-code segment in the sub-code segments of the main function; s117: sequentially analyzing the content and the code calling relation of the subordinate child code segments of the first child code segment until all the subordinate child code segments of the first child code segment are analyzed; s118: substituting the second sub-code segment in the sub-code segment of the main function as the first sub-code segment into the S117 for analysis until all the sub-code segments of the main function are analyzed; the first sub-code segment is the last unresolved code segment in the upper code segment of the second sub-code segment.
Optionally, when executed by a processor, the computer subprogram stored in the computer-readable storage medium implements the following steps: when the file to be converted is in the xml format and the target file is in the code format, S111: analyzing the content, the category and the directory index relation of the root directory label; s112: analyzing the content, category and directory index relation of a first sub-label in the sub-labels of the root directory label; s113: sequentially analyzing the content, the category and the directory index relation of the subordinate sub-labels of the first sub-label until all the subordinate sub-labels of the first sub-label are analyzed; s114: substituting the second sub-label in the sub-labels of the root directory label as the first sub-label into S113 for analysis until all the sub-labels of the root directory label are analyzed; the first sub-label is the same level as the second sub-label or the first sub-label is the last unresolved label in the upper label of the second sub-label.
Optionally, when executed by a processor, the computer subprogram stored in the computer-readable storage medium implements the following steps: and when the file to be converted is in an xml format and the target file is in a code format, classifying by utilizing the category of each label in the file content of the target file to obtain a plurality of program segments belonging to different categories.
In the present application, the file conversion method is applied to the field of automobile diagnosis, and includes: analyzing the logic structure and the file content of the file to be converted; converting the file to be converted into a target file by using a preset conversion mapping table, the file content and the logic structure of the file to be converted; the conversion mapping table stores the mapping relation between the file content of the file to be converted and the file content of the target file. The method comprises the steps of establishing a conversion mapping table for storing the mapping relation between the file content of a file to be converted and the file content of a target file in advance, converting the file content of the file to be converted into the file content of the target file by using the conversion mapping table after the file content of the file to be converted is analyzed, generating the target file according to the logic structure of the file to be converted and the file content of the target file, realizing format conversion of the two files, generating an OTX file in a code format which is easy to write in advance, converting the OTX file in the code format into the OTX file in an xml format, generating the OTX file in the xml format more quickly, converting the OTX file in the xml format into the OTX file in the code format to understand the content of the OTX file more quickly, and improving the working efficiency.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art descriptions will be briefly described below, it is obvious that the drawings in the following description are only the embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the provided drawings without creative efforts.
Fig. 1 is a schematic flowchart of a file conversion method disclosed in an embodiment of the present application;
FIG. 2 is a schematic diagram of a document transformation disclosed in an embodiment of the present application;
fig. 3 is a schematic structural diagram of a file conversion system disclosed in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only some embodiments of the present application, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The OTX file is a diagnosis process file used by the existing automobile diagnosis system, the OTX file can be written by using a code language such as C language or Java earlier, compared with an xml format, the OTX file is easy to write, the logic structure is clear, along with the application and popularization of the ISO13209OTX standard, the XML format is required to be used for complying with the OTX file in the market, but the OTX file in the xml format is difficult to write directly, too many texts exist, or a new development tool needs to be learned again, and the new development tool has defects and is difficult to write, so the efficiency is low when the OTX file in the xml format is written. Therefore, the present application is directed to providing a corresponding technical solution to solve the above-mentioned problems in the prior art.
The embodiment of the application discloses a file conversion method, which is shown in figure 1 and applied to the field of automobile diagnosis, and comprises the following steps:
s11: and analyzing the logic structure and the file content of the file to be converted.
Specifically, in order to convert a file to be converted into a target file, the file to be converted needs to be comprehensively analyzed to obtain the file content of the whole file to be converted and the logic structure of the file, so that the conversion can be realized; in the analysis process, the files to be converted are opened, the contents of the files to be converted are read layer by layer, the read contents are stored in a specified mode, for example, the contents are stored in a structure array, the logic structure of the files to be converted is further analyzed, function characters in the files to be converted can be extracted through a keyword extraction method, the logic structure of the files to be converted, for example, a judgment structure or a calling structure and the like, is analyzed through the function characters, wherein the logic structure is an index relation among the file contents, when the files are operated, the file contents recorded in the files need to be executed according to the logic structure of the files, and the file contents are codes, functions or parameters and other contents recorded in the files. The method comprises the steps of extracting corresponding function characters from the file content of a file to be converted by a keyword extraction method, classifying the function characters which are adjacent and in the same category into a code segment according to the category of each function character, for example, the function characters in a section of continuous file content are classified into an import category if the function characters comprise include and import, the file content is a code segment and is an import category, and the file content is a code segment and is a global declaration category if the function characters comprise specification, variable and dataType and the function characters belong to a global declaration category.
S12: and converting the file to be converted into a target file by using a preset conversion mapping table, the file content and the logic structure of the file to be converted.
The mapping relation between the file content of the file to be converted and the file content of the target file is stored in the conversion mapping table, the file content of the file to be converted and the file content of the target file are stored in the conversion mapping table, and the mapping relation between the file content of the file to be converted and the file content of the target file is established, so that the file content of the file to be converted can be converted into the file content of the target file by using the mapping relation in the conversion mapping table after the file content of the file to be converted is analyzed.
Specifically, the file content of the target file corresponding to the file content of the file to be converted can be found by using the analyzed file content of the file to be converted and the mapping relation in the conversion mapping table, at this time, the file content of the file to be converted can be converted according to the file content of the target file recorded in the conversion mapping table to obtain the file content of the target file, after the file content of the target file is obtained, the index relation or the call relation between part of the file contents can be lost or cannot be inherited during conversion, at this time, the file content of the target file can be integrated by using the logic structure of the file to be converted, and then the target file is finally obtained.
It should be noted that the logical structure of the file to be converted is the same as that of the target file, and the logical structure does not change due to the conversion of the file format, so that the file content of the target file can be integrated by using the logical structure of the file to be converted to obtain the target file.
It can be understood that the format of the file to be converted is different from that of the target file, for example, the file to be converted is an OTX file in an xml format, and the target file is an OTX file in a code format; because the conversion mapping table simultaneously stores the file content of the file to be converted and the file content of the target file, the file to be converted and the target file can be converted with each other.
It can be seen that, in the embodiment of the present application, a conversion mapping table storing a mapping relationship between file contents of a file to be converted and file contents of a target file is established in advance, after the file contents of the file to be converted are analyzed, the file contents of the file to be converted are converted into the file contents of the target file by using the conversion mapping table, the target file is generated according to a logic structure of the file to be converted and the file contents of the target file, format conversion of the two files is implemented, an OTX file in a code format that is easy to write can be generated in advance, the OTX file in the code format is converted into an OTX file in an xml format, the generation of the OTX file in the xml format is faster, the OTX file in the xml format can be converted into the OTX file in the code format to understand the contents of the OTX file more quickly, and therefore work efficiency is improved.
The embodiment of the application discloses a specific file conversion method, and compared with the previous embodiment, the embodiment further explains and optimizes the technical scheme. Specifically, the method comprises the following steps:
in this embodiment of the present application, the specific process of analyzing the logic structure and the file content of the to-be-transferred file in S11 may be to analyze the logic structure and the file content of the to-be-transferred file layer by layer in a cyclic recursion manner.
It can be understood that, no matter the OTX file is in xml format or in code format, the file itself has a multi-level structure, that is, under one master function or root directory, the file includes multiple sub-functions or sub-directories, and in order to better ensure the integrity of the file to be transferred during the parsing process, the file to be transferred can be parsed layer by layer or step by step in a recursive manner, so that the logical structure of the file to be transferred can be better preserved, the file to be transferred can be rapidly integrated, and the parsing can be ensured to be correct by following the logical structure of the file to be transferred, thereby avoiding the occurrence of incorrect parsing.
Further, when the file to be converted is in an xml format and the target file is in a code format, the above process of analyzing the logic structure and the file content of the file to be converted layer by layer in a cyclic recursive manner may include S111 to S114; wherein,
s111: and analyzing the content, the category and the directory index relation of the root directory label.
Specifically, when the file to be converted is in an xml format, the root directory tag is read from the file first, and is analyzed to analyze the file content, such as the file name and other content, belonging to the root directory tag, and the category of the root directory tag is also analyzed.
S112: and analyzing the content, the category and the directory index relation of a first sub-label in the sub-labels of the root directory label.
Specifically, after the root directory label is analyzed, the first sub-label at the next level of the root directory label can be continuously unlocked by using the directory index relationship of the root directory label, and similarly, the content, the category and the directory index relationship of the first sub-label are analyzed.
S113: and sequentially analyzing the content, the category and the directory index relation of the subordinate sub-label of the first sub-label until all the subordinate sub-labels of the first sub-label are analyzed.
Specifically, according to a recursive manner, the subordinate sub-labels of the first sub-label are sequentially analyzed, and the subordinate sub-labels of the subordinate sub-labels are analyzed until all the subordinate sub-labels of the first sub-label are analyzed completely, for example, the first label includes a first-level first sub-label and a first-level second sub-label, and the first-level first sub-label includes a second-level first sub-label and a second-level second sub-label, and after the first label is analyzed, the first-level first sub-label can be analyzed first, then the second-level first sub-label of the first-level first sub-label is continuously analyzed, and then the second-level second sub-label is analyzed, that is, if a subordinate label exists under the current label, after the current label is analyzed, the next-level label is continuously analyzed until all sub-labels under the current label are analyzed, but not the labels at the same level as the current label.
S114: and substituting the second sub-label in the sub-labels of the root directory label as the first sub-label into the S113 for analysis until all the sub-labels of the root directory label are analyzed.
Specifically, after all the sub-tags under the first sub-tag are analyzed, the second sub-tag in the sub-tags of the root directory tag is analyzed, and meanwhile, if a sub-tag exists under the second sub-tag, the sub-tag of the second sub-tag is continuously analyzed according to the method in S113 until all the sub-tags under the target tag are analyzed; the first sub-tag and the second sub-tag are the same level or the first sub-tag is the last unresolved tag in the upper level tags of the second sub-tag, for example, the first sub-tag is the first level sub-tag of the root directory tag, the second sub-tag is the second level sub-tag of the root directory tag, but the second level sub-tag is not the second level sub-tag of the first sub-tag.
Further, when the file to be converted is in a code format and the target file is in an xml format, the process of analyzing the logic structure and the file content of the file to be converted layer by layer in a cyclic recursive manner may specifically include S115 to S118; wherein,
s115: analyzing the content of the main function and the code calling relation;
s116: analyzing the content and the code calling relation of a first sub-code segment in the sub-code segments of the main function;
s117: sequentially analyzing the content and the code calling relation of the subordinate sub-code segments of the first sub-code segment until all the subordinate sub-code segments of the first sub-code segment are analyzed;
s118: and substituting the second sub-code segment in the sub-code segments of the main function as the first sub-code segment into the step S117 for analysis until all the sub-code segments of the main function are analyzed.
The first sub-code segment and the second sub-code segment are in the same level or the first sub-code segment is the last unresolved code segment in the upper code segment of the second sub-code segment.
It can be understood that, in the parsing process, the code format is similar to the xml format, and in the code format, the contents of the main function and the sub-code segments and the code calling relationship between each level of code segments can be parsed, and the code calling relationship embodies the logic structure of the file in the code format.
Specifically, the step S12 of converting the file to be converted into the target file by using the preset conversion mapping table, the file content of the file to be converted, and the logic structure may specifically include steps S121 to S124; wherein,
s121: and classifying the file contents of the file to be converted according to a preset classification method to obtain a plurality of program segments belonging to different categories.
Specifically, when the file to be converted is an OTX file in an xml format, the file to be converted may be classified by using the category of each tag, where the category may be the name of the tag, and the tags with different names belong to different categories, for example, if the name of the tag is import, the tag belongs to an import category, if the name of the tag is variable, the tag belongs to a global declaration category, and one tag corresponds to one program segment.
Specifically, when the file to be converted is an OTX file in a code format, a keyword extraction method may be used to extract corresponding function characters from the file content of the file to be converted, and according to the type of each function character, the function characters in adjacent and same types are classified into one code segment, for example, the function characters in a continuous file content, if the two function characters include and import, the file content is a code segment and is an import type, and if the two function characters include specification, variable, and dataType, the three function characters all belong to a global declaration type, the file content is a code segment and is a global declaration type.
The classification categories comprise an import category, a global declaration category, a valid category, a signature category, a program, an annotation category, a parameter category, a local declaration category, a node category, a behavior category, a term category and a general type category, and the functional meanings of the categories are as follows:
the import category is used for indicating information for importing other files;
the global declaration category is used for expressing information such as variables, constants and the like which can be used in the whole document range;
the valid category is used to indicate whether a judgment expression is valid, for example, whether a variable is equal to 100, whether to return TRUE or false;
the signature category is used for representing the description of the interfaces of another module, and the content details do not need to be known, and only the calling specifications of the interfaces need to be known;
the program signature type is used for representing parameters, variables and constant information of a function and is mainly used for function calling;
the program category is used for representing executable operations, and can call other functions and can also be called by other functions;
the annotation category is used for representing some annotated information and describing some functions or texts of the processes;
the parameter category is used for defining parameters to be used in a function or a signature, and comprises input parameters, output parameters and input and output parameters;
the local declaration category is used to represent variables and constants that are valid only inside the function;
the node category is used for representing the content of steps in the running process of the function, the atomic node is a single step, and the compound node can recursively call a plurality of steps;
behavior classes are used to represent a single action, such as variable assignment, function call, comparison, shift;
the term category denotes an expression, such as Y = X + Y-Z, creating variables, data transformation transforming one kind of data into another;
the generic type class describes the auxiliary types, elements or attributes that are used for each type.
S122: and converting each program segment into a target program segment of the target file by utilizing a function character mapping relation which is the same as the type of each program segment in the conversion mapping table, so as to obtain the file content of the target file.
Specifically, for quickly searching a mapping relation of each function character stored in a conversion mapping table according to the category of a program segment, the mapping relation of the function character belonging to the category is determined by matching the category, and then the function character in the program segment in the file content of the file to be converted is converted into the function character of the target file by using the mapping relation of the function character, so as to obtain the target program segment of the target file, wherein all the target program segments form the file content of the target file, which can be referred to table 1 conversion mapping table and fig. 2.
TABLE 1
Figure BDA0001805286370000141
Figure BDA0001805286370000151
S123: and generating the target file by utilizing the logic structure of the file to be converted and the file content of the target file.
Correspondingly, the embodiment of the present application further discloses a file conversion system, as shown in fig. 3, which is applied to the field of automobile diagnosis, and the system includes:
the analysis module 11 is used for analyzing the logic structure and the file content of the file to be converted;
the conversion module 12 is configured to convert the file to be converted into the target file by using a preset conversion mapping table, the file content and the logic structure of the file to be converted;
the conversion mapping table stores the mapping relation between the file content of the file to be converted and the file content of the target file.
In this embodiment, the conversion module 12 may specifically include a classification unit, a conversion unit, and an integration unit; wherein,
the classification unit is used for classifying the file contents of the file to be converted according to a preset classification method to obtain a plurality of program segments belonging to different categories;
the conversion unit is used for converting each program segment into a target program segment of a target file by utilizing a function character mapping relation which is the same as the type of each program segment in the conversion mapping table, so as to obtain the file content of the target file;
the integration unit is used for generating a target file by utilizing the logic structure of the file to be converted and the file content of the target file;
the function character mapping relation is a mapping relation between the function characters of the file to be converted and the target function characters of the target file.
Specifically, the classification unit may specifically include a keyword extraction subunit, a first classification subunit, and a second classification subunit; when the file to be converted is in the code format and the target file is in the xml format, the keyword extraction subunit and the first classification subunit are used, and when the file to be converted is in the xml format and the target file is in the code format, the second classification subunit is used.
And the keyword extraction subunit is used for extracting the function characters from the file content of the file to be converted by using a keyword extraction method.
The first classification subunit is used for classifying the file contents of the files to be converted by utilizing the categories of the function characters in the file contents of the files to be converted to obtain a plurality of program segments belonging to different categories.
And the second classification subunit is used for classifying by utilizing the category of each label in the file content of the target file to obtain a plurality of program segments belonging to different categories.
Specifically, the parsing module 11 may be specifically configured to parse the logic structure and the file content of the file to be converted layer by layer in a cyclic recursive manner.
Further, when the file to be converted is in a code format and the target file is in an xml format, the parsing module 11 is specifically configured to:
s115: analyzing the content of the main function and the code calling relation;
s116: analyzing the content and the code calling relation of a first sub-code segment in the sub-code segments of the main function;
s117: sequentially analyzing the content and the code calling relation of the subordinate sub-code segments of the first sub-code segment until all the subordinate sub-code segments of the first sub-code segment are analyzed;
s118: substituting the second sub-code segment in the sub-code segment of the main function as the first sub-code segment into the S117 for analysis until all the sub-code segments of the main function are analyzed;
the first sub-code segment and the second sub-code segment are in the same level or the first sub-code segment is the last unresolved code segment in the upper code segment of the second sub-code segment.
Further, when the file to be converted is in an xml format and the target file is in a code format, the parsing module 11 is specifically configured to:
s111: analyzing the content, the category and the directory index relation of the root directory label;
s112: analyzing the content, category and directory index relation of a first sub-label in the sub-labels of the root directory label;
s113: sequentially analyzing the content, the category and the directory index relation of the subordinate sub-labels of the first sub-label until all the subordinate sub-labels of the first sub-label are analyzed;
s114: substituting the second sub-label in the sub-labels of the root directory label as the first sub-label into S113 for analysis until all the sub-labels of the root directory label are analyzed;
the first sub-label and the second sub-label are the same level or the first sub-label is the last unresolved label in the upper label of the second sub-label.
In addition, the embodiment of the application also discloses a file conversion device, which comprises:
a memory for storing a computer program;
a processor for implementing the following steps when executing the computer program:
analyzing the logic structure and the file content of the file to be converted; converting the file to be converted into a target file by using a preset conversion mapping table, the file content and the logic structure of the file to be converted; the conversion mapping table stores the mapping relation between the file content of the file to be converted and the file content of the target file.
In this embodiment, when the processor executes the computer subprogram stored in the memory, the following steps are specifically implemented: classifying the file contents of the file to be converted according to a preset classification method to obtain a plurality of program segments belonging to different categories; converting each program segment into a target program segment of a target file by utilizing a function character mapping relation which is the same as the category of each program segment in a conversion mapping table to obtain the file content of the target file; generating a target file by using the logic structure of the file to be converted and the file content of the target file; the function character mapping relation is a mapping relation between the function characters of the file to be converted and the target function characters of the target file.
In this embodiment, when the processor executes the computer subprogram stored in the memory, the following steps are specifically implemented: when the file to be converted is in a code format and the target file is in an xml format, extracting function characters from the file content of the file to be converted by using a keyword extraction method; and classifying the file contents of the file to be converted by utilizing the categories of the function characters in the file contents of the file to be converted to obtain a plurality of program segments belonging to different categories.
In this embodiment, when the processor executes the computer subprogram stored in the memory, the following steps are specifically implemented: and analyzing the logic structure and the file content of the file to be converted layer by layer in a cyclic recursion mode.
In this embodiment, when the processor executes the computer subprogram stored in the memory, the following steps are specifically implemented: when the file to be converted is in the code format and the target file is in the xml format, S115: analyzing the content of the main function and the code calling relation; s116: analyzing the content and the code calling relation of a first sub-code segment in the sub-code segments of the main function; s117: sequentially analyzing the content and the code calling relation of the subordinate child code segments of the first child code segment until all the subordinate child code segments of the first child code segment are analyzed; s118: substituting the second sub-code segment in the sub-code segment of the main function as the first sub-code segment into the S117 for analysis until all the sub-code segments of the main function are analyzed; the first sub-code segment and the second sub-code segment are in the same level or the first sub-code segment is the last unresolved code segment in the upper code segment of the second sub-code segment.
In this embodiment, when the processor executes the computer subprogram stored in the memory, the following steps are specifically implemented: when the file to be converted is in the xml format and the target file is in the code format, S111: analyzing the content, the category and the directory index relation of the root directory label; s112: analyzing the content, category and directory index relation of a first sub-label in the sub-labels of the root directory label; s113: sequentially analyzing the content, the category and the directory index relation of the subordinate sub-labels of the first sub-label until all the subordinate sub-labels of the first sub-label are analyzed; s114: substituting the second sub-label in the sub-labels of the root directory label as the first sub-label into S113 for analysis until all the sub-labels of the root directory label are analyzed; the first sub-label and the second sub-label are the same level or the first sub-label is the last unresolved label in the upper label of the second sub-label.
In this embodiment, when the processor executes the computer subprogram stored in the memory, the following steps are specifically implemented: and when the file to be converted is in an xml format and the target file is in a code format, classifying by using the category of each label in the file content of the target file to obtain a plurality of program segments belonging to different categories.
In addition, an embodiment of the present application further discloses a computer-readable storage medium, on which a computer program is stored, and when the computer program is executed by a processor, the computer program implements the following steps:
analyzing the logic structure and the file content of the file to be converted; converting the file to be converted into a target file by utilizing a preset conversion mapping table, the file content and the logic structure of the file to be converted; the conversion mapping table stores the mapping relation between the file content of the file to be converted and the file content of the target file.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps are specifically implemented: classifying the file contents of the file to be converted according to a preset classification method to obtain a plurality of program segments belonging to different categories; converting each program segment into a target program segment of a target file by using a function character mapping relation which is the same as the type of each program segment in a conversion mapping table, so as to obtain the file content of the target file; generating a target file by using the logic structure of the file to be converted and the file content of the target file; the function character mapping relation is a mapping relation between the function characters of the file to be converted and the target function characters of the target file.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps are specifically implemented: when the file to be converted is in a code format and the target file is in an xml format, extracting function characters from the file content of the file to be converted by using a keyword extraction method; and classifying the file contents of the file to be converted by utilizing the categories of the function characters in the file contents of the file to be converted to obtain a plurality of program segments belonging to different categories.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps are specifically implemented: and analyzing the logic structure and the file content of the file to be converted layer by layer in a cyclic recursion mode.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps are specifically implemented: when the file to be converted is in the code format and the target file is in the xml format, S115: analyzing the content of the main function and the code calling relation; s116: analyzing the content and the code calling relation of a first sub-code segment in the sub-code segments of the main function; s117: sequentially analyzing the content and the code calling relation of the subordinate sub-code segments of the first sub-code segment until all the subordinate sub-code segments of the first sub-code segment are analyzed; s118: substituting the second sub-code segment in the sub-code segment of the main function as the first sub-code segment into the S117 for analysis until all the sub-code segments of the main function are analyzed; the first sub-code segment is the last unresolved code segment in the upper code segment of the second sub-code segment.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps are specifically implemented: when the file to be converted is in the xml format and the target file is in the code format, S111: analyzing the content, the category and the directory index relation of the root directory label; s112: analyzing the content, category and directory index relation of a first sub-label in the sub-labels of the root directory label; s113: sequentially analyzing the content, the category and the directory index relation of the subordinate sub-labels of the first sub-label until all the subordinate sub-labels of the first sub-label are analyzed; s114: substituting the second sub-label in the sub-labels of the root directory label as the first sub-label into S113 for analysis until all the sub-labels of the root directory label are analyzed; the first sub-label and the second sub-label are the same level or the first sub-label is the last unresolved label in the upper label of the second sub-label.
In this embodiment, when the computer subprogram stored in the computer-readable storage medium is executed by the processor, the following steps are specifically implemented: and when the file to be converted is in an xml format and the target file is in a code format, classifying by using the category of each label in the file content of the target file to obtain a plurality of program segments belonging to different categories.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising a … …" does not exclude the presence of another identical element in a process, method, article, or apparatus that comprises the element.
Those of skill would further appreciate that the various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, computer software, or combinations of both, and that the various illustrative components and steps have been described above generally in terms of their functionality in order to clearly illustrate this interchangeability of hardware and software. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
The foregoing detailed description is directed to a file transformation method, system, device and computer-readable storage medium, and specific examples are used herein to illustrate the principles and implementations of the present application, and the descriptions of the foregoing examples are only used to help understand the method and the core ideas of the present application; meanwhile, for a person skilled in the art, according to the idea of the present application, the specific implementation manner and the application scope may be changed, and in summary, the content of the present specification should not be construed as a limitation to the present application.

Claims (9)

1. A method of file conversion, comprising:
analyzing the logic structure and the file content of the file to be converted;
converting the file to be converted into a target file by using a preset conversion mapping table, the file content and the logic structure of the file to be converted;
wherein, the mapping relation between the file content of the file to be converted and the file content of the target file is stored in the conversion mapping table;
the process of converting the file to be converted into the target file by using a preset conversion mapping table, the file content and the logic structure of the file to be converted comprises the following steps: classifying the file contents of the files to be converted according to a preset classification method to obtain a plurality of program segments belonging to different categories; converting each program segment into a target program segment of the target file by using a function character mapping relation which is the same as the type of each program segment in the conversion mapping table, so as to obtain the file content of the target file; generating the target file by utilizing the logic structure of the file to be converted and the file content of the target file; and the function character mapping relation is a mapping relation between the function characters of the file to be converted and the target function characters of the target file.
2. The method for converting files according to claim 1, wherein when the file to be converted is in a code format and the target file is in an xml format, the process of classifying the file contents of the file to be converted according to a preset classification method to obtain a plurality of program segments belonging to different categories comprises:
extracting function characters from the file content of the file to be converted by using a keyword extraction method;
and classifying the file contents of the files to be converted by utilizing the categories of the function characters in the file contents of the files to be converted to obtain a plurality of program segments belonging to different categories.
3. The file conversion method according to claim 1, wherein the process of parsing out the logic structure and the file content of the file to be converted includes:
and analyzing the logic structure and the file content of the file to be converted layer by layer in a circulating recursion mode.
4. The method according to claim 3, wherein when the file to be converted is in a code format and the target file is in an xml format, the process of analyzing the logical structure and the file content code format of the file to be converted layer by layer in a cyclic recursive manner includes:
analyzing the content of the main function and the code calling relation;
analyzing the content and the code calling relation of a first sub-code segment in the sub-code segments of the main function;
sequentially analyzing the content and the code calling relation of the subordinate child code segments of the first child code segment until all the subordinate child code segments of the first child code segment are analyzed;
taking the second sub-code segment in the sub-code segments of the main function as the first sub-code segment again for analysis until all the sub-code segments of the main function are analyzed;
the first sub-code segment is the same as the second sub-code segment or the first sub-code segment is the last unresolved code segment in the upper code segment of the second sub-code segment.
5. The method according to claim 3, wherein when the file to be converted is in an xml format and the target file is in a code format, the process of analyzing the logic structure and the file content of the file to be converted layer by layer in a cyclic recursive manner includes:
analyzing the content, the category and the directory index relation of the root directory label;
analyzing the content, the category and the directory index relation of a first sub-label in the sub-labels of the root directory label;
sequentially analyzing the content, the category and the directory index relation of the subordinate sub-labels of the first sub-label until all the subordinate sub-labels of the first sub-label are analyzed;
taking a second sub-label in the sub-labels of the root directory label as a first sub-label again for analysis until all the sub-labels of the root directory label are analyzed;
the first sub-label is the same level as the second sub-label or the first sub-label is the last unresolved label in the upper label of the second sub-label.
6. The file conversion method according to claim 5, wherein when the file to be converted is in an xml format and the target file is in a code format, the process of classifying the file content of the file to be converted according to a preset classification method to obtain a plurality of program segments belonging to different categories includes:
and classifying by using the category of each label in the file content of the target file to obtain a plurality of program segments belonging to different categories.
7. A file conversion system, comprising:
the analysis module is used for analyzing the logic structure and the file content of the file to be converted;
the conversion module is used for converting the file to be converted into a target file by utilizing a preset conversion mapping table, the file content and the logic structure of the file to be converted;
wherein, the mapping relation between the file content of the file to be converted and the file content of the target file is stored in the conversion mapping table;
wherein, the conversion module is specifically configured to: classifying the file contents of the files to be converted according to a preset classification method to obtain a plurality of program segments belonging to different categories; converting each program segment into a target program segment of the target file by using a function character mapping relation which is the same as the type of each program segment in the conversion mapping table, so as to obtain the file content of the target file; generating the target file by utilizing the logic structure of the file to be converted and the file content of the target file; and the function character mapping relation is a mapping relation between the function characters of the file to be converted and the target function characters of the target file.
8. A file conversion apparatus, comprising:
a memory for storing a computer program;
a processor for executing the computer program to implement the file conversion method according to any one of claims 1 to 6.
9. A computer-readable storage medium, having stored thereon a computer program which, when being executed by a processor, carries out the steps of the file conversion method according to any one of claims 1 to 6.
CN201811094771.6A 2018-09-19 2018-09-19 File conversion method, system, device and computer readable storage medium Active CN109325217B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811094771.6A CN109325217B (en) 2018-09-19 2018-09-19 File conversion method, system, device and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811094771.6A CN109325217B (en) 2018-09-19 2018-09-19 File conversion method, system, device and computer readable storage medium

Publications (2)

Publication Number Publication Date
CN109325217A CN109325217A (en) 2019-02-12
CN109325217B true CN109325217B (en) 2023-04-18

Family

ID=65265144

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811094771.6A Active CN109325217B (en) 2018-09-19 2018-09-19 File conversion method, system, device and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN109325217B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111984293B (en) * 2020-08-17 2023-09-12 腾讯科技(上海)有限公司 Information processing method, device and storage medium
CN112181924A (en) * 2020-09-27 2021-01-05 深圳市元征科技股份有限公司 File conversion method, device, equipment and medium
CN112199556A (en) * 2020-10-14 2021-01-08 深圳市元征科技股份有限公司 Automatic XML Schema file format conversion method, system and related equipment

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468571A (en) * 2015-11-19 2016-04-06 中国地质大学(武汉) Method and device used for automatically generating report
CN106919434A (en) * 2017-03-22 2017-07-04 恒生电子股份有限公司 A kind of code generating method and device
WO2018028127A1 (en) * 2016-08-09 2018-02-15 广州视睿电子科技有限公司 Method and apparatus for parsing storage files
WO2018076815A1 (en) * 2016-10-28 2018-05-03 宁德时代新能源科技股份有限公司 Format conversion method and system
CN108334895A (en) * 2017-12-29 2018-07-27 腾讯科技(深圳)有限公司 Sorting technique, device, storage medium and the electronic device of target data

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105468571A (en) * 2015-11-19 2016-04-06 中国地质大学(武汉) Method and device used for automatically generating report
WO2018028127A1 (en) * 2016-08-09 2018-02-15 广州视睿电子科技有限公司 Method and apparatus for parsing storage files
WO2018076815A1 (en) * 2016-10-28 2018-05-03 宁德时代新能源科技股份有限公司 Format conversion method and system
CN106919434A (en) * 2017-03-22 2017-07-04 恒生电子股份有限公司 A kind of code generating method and device
CN108334895A (en) * 2017-12-29 2018-07-27 腾讯科技(深圳)有限公司 Sorting technique, device, storage medium and the electronic device of target data

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
三维几何模型的中性文件格式的数据交换方法研究;陈小安等;《机械工程学报》;20011120(第10期);全文 *

Also Published As

Publication number Publication date
CN109325217A (en) 2019-02-12

Similar Documents

Publication Publication Date Title
CN106919434B (en) Code generation method and device
Overmyer et al. Conceptual modeling through linguistic analysis using LIDA
CN112149399B (en) Table information extraction method, device, equipment and medium based on RPA and AI
US7865870B2 (en) Automatic content completion of valid values for method argument variables
CN106843849B (en) Automatic synthesis method of code model based on library function of document
WO2021073195A1 (en) Computer-implemented method and device for generating spreadsheet formula, and storage medium
CN110209387B (en) Method and device for generating top-level HDL file and computer readable storage medium
CN101751461A (en) Document conversion method and device
CN107203468A (en) A kind of software version evolution comparative analysis method based on AST
CN109325217B (en) File conversion method, system, device and computer readable storage medium
CN111913739B (en) Service interface primitive defining method and system
US20060101392A1 (en) Strongly-typed UI automation model generator
CN115358200A (en) Template document automatic generation method based on SysML meta model
CN114594933A (en) Front-end code generation method and device based on file scanning and storage medium
CN115202626A (en) Low-code front-end development method supporting multi-technology stack components
CN113608903A (en) Fault management method based on XML language
CN105260300A (en) Service test method based on CAS (General Classification Standards of China Accounting Standards) application platform
CN113283216A (en) Webpage content display method, device, equipment and storage medium
Bajwa et al. UCD-generator-A LESSA application for use case design
US20050177788A1 (en) Text to XML transformer and method
CN117215536A (en) Interface code creation method, device, equipment and storage medium
US8719693B2 (en) Method for storing localized XML document values
Le Zou et al. On synchronizing with web service evolution
CN109254774A (en) The management method and device of code in software development system
CN107577476A (en) A kind of Android system source code difference analysis method, server and medium based on Module Division

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant