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

Method and system for extracting codes from project

A technology for extracting codes and projects, applied in instruments, software maintenance/management, electrical digital data processing, etc., can solve problems such as high labor cost and long time, and achieve the goal of improving efficiency, improving development efficiency, saving time and labor costs. Effect

Active Publication Date: 2017-02-15
WUHAN DOUYU NETWORK TECH CO LTD
View PDF3 Cites 6 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

If the target module contains a large number of code files, it will take a long time and a high labor cost to extract the relevant code

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
  • Method and system for extracting codes from project
  • Method and system for extracting codes from project
  • Method and system for extracting codes from project

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0037] Terminology Explanation:

[0038] Component: A set of code that provides specific business logic or functionality.

[0039] #import statement: A statement used to import other dependencies in Objective-C.

[0040] .pbxproj file: A file that saves project information in an iOS or Mac OS project.

[0041] .h file: One of the Objective-C source code files.

[0042] .m file: One of the Objective-C source code files.

[0043] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.

[0044] In an Objective-C-based project, the project includes a target source code file and a project file. The target source code file is generally a file with an extension of ".m". There are a series of #import statements at the beginning of this file. These #import statements Indicates all code files that the target source code file depends on. At the same time, there will be a project file with the extension "...

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 method and a system for extracting codes from a project, and relates to the field of the network technology. The method and the system are used for extracting the codes from the project developed by Objective-C, wherein the project comprises a target source code file and an engineering file. The method comprises the following steps of: obtaining the filenames of all header files of the project and the original storage paths of all header files from the engineering file; obtaining the filename of the header file imported by the target source code file, and obtaining the original storage path of the imported header file from the filenames of all header files of the project and the original storage paths corresponding to the filenames according to the filename of the imported header file; and extracting the code of the imported header file from the original storage path of the imported header file, and storing the code into a target storage path. By use of the method and the system, a developer can be assisted in quickly extracting the codes, time and labor cost are saved, and project development efficiency is improved.

Description

[0001] The invention relates to the field of cloud computing, in particular to a method and system for extracting codes from projects. Background technique [0002] Objective-C is a programming language mainly used for program development of Apple's mobile operating system iOS and desktop operating system Mac OS. When the Objective-C-based iOS and Mac OS projects develop to a certain scale, in order to facilitate subsequent maintenance and reuse in other projects, it is necessary to extract the relevant codes of each business module in order to build new components. At present, the method of extracting relevant codes in Objective-C projects is mainly that developers first analyze the code files that may be included in the target module based on their own experience, and then manually find out the relevant code files from the original project one by one, and then assemble them into new ones. Project. If the target module contains a large number of code files, it will take a lo...

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): G06F9/44
CPCG06F8/315G06F8/74
Inventor 黄露洋
Owner WUHAN DOUYU NETWORK TECH CO LTD
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