CN111796833A - Code language conversion method, system, equipment and storage medium - Google Patents

Code language conversion method, system, equipment and storage medium Download PDF

Info

Publication number
CN111796833A
CN111796833A CN202010667844.7A CN202010667844A CN111796833A CN 111796833 A CN111796833 A CN 111796833A CN 202010667844 A CN202010667844 A CN 202010667844A CN 111796833 A CN111796833 A CN 111796833A
Authority
CN
China
Prior art keywords
code
character string
replacement
replacing
hard
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.)
Pending
Application number
CN202010667844.7A
Other languages
Chinese (zh)
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.)
Ctrip Computer Technology Shanghai Co Ltd
Original Assignee
Ctrip Computer Technology Shanghai 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 Ctrip Computer Technology Shanghai Co Ltd filed Critical Ctrip Computer Technology Shanghai Co Ltd
Priority to CN202010667844.7A priority Critical patent/CN111796833A/en
Publication of CN111796833A publication Critical patent/CN111796833A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/51Source to source
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation
    • G06F8/42Syntactic analysis

Abstract

The invention provides a code language conversion method, a system, equipment and a storage medium, wherein the conversion method comprises the following steps: acquiring a code to be processed; searching a hard coding character string in the code by utilizing a syntax analysis tree; replacing the found hard code character string with a group of replacement functions, wherein the group of replacement functions comprise trigger conditions and replacement contents corresponding to various languages; wherein the replacement function is configured to replace the hard coded string with replacement content when a trigger condition for a language is established. The conversion method of the invention searches and replaces the hard code character string in the code by a group of replacement functions through the syntax analysis tree, obtains the corresponding content of the hard code character string to be displayed under different language systems through the replacement functions, can improve the speed of supporting multi-language processing for the display file in the code writing process of research personnel, can reduce the errors generated by artificial factors in the processing process, promotes the iteration speed of research and development products and ensures the online quality of the products.

Description

Code language conversion method, system, equipment and storage medium
Technical Field
The present invention relates to the field of data processing, and in particular, to a code language conversion method, system, device, and storage medium.
Background
The multi-language processing scheme mainly aims at solving the problem of how to create a one-to-one mapping relation between the multi-language software system and a plurality of system language versions of the multi-language software system, so that different system languages are required to display different document contents. The prior technical scheme mainly focuses on solving the multi-language problem of page display, or establishes a database to remotely issue a file through a system language, or establishes a local database at a client. However, these techniques require processing of the content of the page display (including text, symbols, etc.) contained in the code. In the writing process of the code, the manual mode which is most easily accepted by a code engineer is generally adopted to format the documents, but for a large-scale system, a large number of documents exist, and the manual formatting of the documents takes a lot of time, delays the development progress and generates errors which are not easy to be checked.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present invention and therefore may include information that does not constitute prior art known to a person of ordinary skill in the art.
Disclosure of Invention
Aiming at the problems in the prior art, the invention aims to provide a code language conversion method, a system, equipment and a storage medium, wherein a set of replacement functions are used for searching and replacing hard code character strings in codes through a syntax analysis tree, corresponding contents of the hard code character strings to be displayed under different language systems are obtained through the replacement functions, and the speed of supporting multi-language processing on a display file in the code writing process of research and development personnel can be improved.
One aspect of the present invention provides a code language conversion method, including the steps of:
acquiring a code to be processed;
searching a hard coding character string in the code by utilizing a syntax analysis tree;
replacing the found hard code character string with a group of replacement functions, wherein each group of replacement functions comprises trigger conditions and replacement contents corresponding to various languages; wherein the content of the first and second substances,
the replacement function is configured to replace the hardcoded string with the replacement content when a trigger condition of a language is established.
According to some embodiments of the invention, the obtaining the code to be processed comprises obtaining the code to be processed from a VScode platform.
According to some embodiments of the present invention, the replacing content in the replacing function is a first placeholder, and after replacing the found hard code character string with a set of replacing functions, the method further includes the following steps:
and acquiring a translation character string corresponding to the hard code character string, and replacing the first placeholder in the replacement content with the translation character string.
According to some embodiments of the present invention, after obtaining the translation string corresponding to the hard coded string, the method further includes the following steps:
judging whether a second placeholder corresponding to the variable exists in the translation character string or not;
if so, replacing the second placeholder in the translation character string with a variable in the hard code character string, and then replacing the first placeholder in the replacement content with the translation character string.
According to some embodiments of the invention, after replacing the first placeholder in the replacement content with the translation string, further comprising:
and establishing a first mapping relation between the hard code character string and the ID corresponding to the replacement function.
According to some embodiments of the present invention, when a query request is received, the position of the hardcoded character string corresponding to the query request in the code is searched according to the first mapping relation.
According to some embodiments of the invention, after replacing the first placeholder in the replacement content with the translation string, further comprising:
and establishing a second mapping relation between the hard code character string and the translation character string.
Another aspect of the present invention provides a code language conversion system, configured to implement the above code language conversion method, including a code obtaining module, a searching module, and a code replacing module, where:
the code acquisition module is used for acquiring a code to be processed;
the searching module is used for searching the hard coding character string in the code by utilizing a syntax analysis tree;
the code replacing module is used for replacing the found hard code character string with a group of replacing functions, and the group of replacing functions comprise triggering conditions and replacing contents corresponding to various languages; wherein the content of the first and second substances,
the replacement function is configured to replace the hardcoded string with the replacement content when a trigger condition of a language is established.
Still another aspect of the present invention provides a code language conversion apparatus including:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the code language translation method via execution of the executable instructions.
Yet another aspect of the present invention provides a computer-readable storage medium storing a program characterized in that the program, when executed, implements the steps of the code language conversion method.
The conversion method of the invention searches and replaces the hard code character string in the code by a group of replacement functions through the syntax analysis tree, obtains the corresponding content of the hard code character string to be displayed under different language systems through the replacement functions, can improve the speed of supporting multi-language processing for the display file in the code writing process of research personnel, and can reduce the errors generated by artificial factors in the processing process, thereby promoting the iteration speed of research and development products and ensuring the online quality of the products; meanwhile, the invention considers the variable in the hard coding character string and replaces the hard coding code from the syntax analysis level, therefore, the original code structure can not be damaged; in addition, some embodiments of the invention support skipping to the replaced code to search for the locally stored file after the replacement is ambiguous, so that the code engineer can better ensure the safety and readability of the code.
Drawings
Other features, objects, and advantages of the invention will be apparent from the following detailed description of non-limiting embodiments, which proceeds with reference to the accompanying drawings and which is incorporated in and constitutes a part of this specification, illustrating embodiments consistent with the present application and together with the description serve to explain the principles of the application. It is obvious that the drawings in the following description are only some embodiments of the invention, and that for a person skilled in the art, other drawings can be derived from them without inventive effort.
FIG. 1 is a flow chart of a code language conversion method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a code language conversion system according to an embodiment of the present invention
FIG. 3 is a schematic structural diagram of a code language conversion device according to an embodiment of the present invention;
fig. 4 is a schematic structural diagram of a computer-readable storage medium according to an embodiment of the present invention.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 is a flowchart of a code language conversion method according to an embodiment of the present invention, and fig. 1 illustrates main steps of the code language conversion method according to the embodiment, specifically, the code language conversion method according to the embodiment includes the following steps:
step S100: acquiring a code to be processed, wherein the code mainly comprises a code for controlling page display, and after the code is checked and online, a corresponding page can be displayed;
step S200: searching a hard coding character string in the code by utilizing a syntax analysis tree;
step S300: replacing the found hard code character string with a group of replacement functions, wherein the group of replacement functions comprise trigger conditions and replacement contents corresponding to various languages; wherein the content of the first and second substances,
the replacement function is configured to replace the hardcoded string with the replacement content when a trigger condition of a language is established.
Specifically, after the final code is checked and on-line, the text content corresponding to the original hard code character string may be displayed in the page, and the text content corresponding to the substitute content in other languages may also be displayed. Specifically, the switching of the language may be triggered according to the current environment, for example, when the user application environment is an english application environment, the switching is switched to display of the replacement content in english, and in addition, the switching of the language may also be triggered by the user operating the page, for example, when the user clicks a language switching button, the corresponding replacement content is displayed according to the language selected by the user, so that the automatic switching of the page control code language may be conveniently and effectively implemented.
The syntax analysis tree graphically represents the process of deducing the symbol string in the corresponding language from the starting symbol of the grammar, so that the automatic search of the hard coded character string can be realized based on the syntax structure of the code. Code written in different writing languages uses their corresponding parse trees. According to the method, the hard coded character string is automatically searched by adopting the syntax analysis tree, so that the accuracy of searching the hard coded character string can be improved on one hand, manual searching is not needed on the other hand, and the processing efficiency of the code is higher.
In some embodiments, the obtaining the code to be processed includes obtaining the code to be processed from a VScode (visual Studio code) platform, that is, in some embodiments, the conversion method of the present invention is implemented by applying to an Application Program Interface (API) provided by the VScode platform. VScode is an efficient code editor. When in use, the code language conversion method can be integrated into a plug-in which is pre-installed in the VScode platform, so that the advantages of the code language conversion method and the VScode platform can be well combined. At this time, in step S300, the hard code characters in the code writing process are replaced with a formatting process of a set of replacement functions, where when the formatting process is performed based on the VScode platform, the formatting process may be a replacement of hard code character strings one by one, or a replacement of hard code character strings of the entire page, where the replacement is performed one by one to ensure the accuracy of the code, and the entire page is replaced at one time to improve the coding efficiency.
For example, a piece of pending code is obtained as follows from the VScode platform:
Figure BDA0002581137900000051
the name: "Xiaoming" in "Xiaoming" code and
info: ' class has $ (this. count) ' and average age $ (this. age) ' in code, ' class has $ (this. count) ' and average age $ (this. age) ' is a hard coded string, ' Xiaoming ' and ' class has $ (this. count) ' and average age $ (this.age) ' are part of a page display, and when the code can satisfy a multi-language function of a support code, the content of the hard coded string needs to be translated into a corresponding language. The existing code conversion method can damage the original code structure, the technical scheme of the invention replaces the found hard code character string with a group of replacement functions, when the system receives the trigger condition of a certain language, the replacement functions replace the hard code character string with the replacement content, and the replacement content at the moment is the translation character string corresponding to the hard code character string in the language.
When the hard code character string is "xiao ming", the replacement content in the replacement function may be set as a first placeholder, and after replacing the found hard code character string with a set of replacement functions, the method further includes the following steps:
and acquiring a translation character string corresponding to the hard code character string, and replacing the first placeholder in the replacement content with the translation character string. It should be noted that, the obtaining process of the translation character string corresponding to the hard code character string described herein may be obtained from translation software or a translation library, or may be provided for a background translator. In application, before a translation task of a hard coded character string is delivered to a background translator or a machine translation software or a translation library, the position of a variable in the hard coded character string can be identified so as to distinguish the variable from a text needing translation, and subsequent processing is facilitated.
In the embodiments, after the hard code string "xiao ming" and "people with $ { this.count } class and the average age $ { this.age } are translated, wherein variables $ { this.count } and $ { this.age } exist in the translated string, in order to prevent the attribute of the variable in the string from changing due to different language systems, after the translation string corresponding to the hard code string is obtained, the following steps may be further included:
judging whether a second placeholder corresponding to a variable or a term exists in the translation character string;
if so, replacing the second placeholder in the translation character string with a variable or term in the hard code character string, and then replacing the first placeholder in the replacement content with the translation character string.
At this time, after the replacement content of the translated first placeholder is obtained, the original variable is replaced at the position of the second placeholder, so that the variable or term in the character string with the variable or term can not be changed due to different language systems.
In an actual code conversion process, in order to facilitate code writing by a code engineer and ensure security and readability of the code, in some embodiments, after replacing the first placeholder in the replacement content with the translation string, the method may further include the following steps:
and establishing a first mapping relation between the hard code character string and the ID corresponding to the replacement function.
And receiving a query request, and searching the position of the hard code character string corresponding to the query request in the code according to the first mapping relation. The steps make it possible for the replaced code to jump to find the formatted file stored locally. When the hard code character string in the code before replacement needs to be searched, the line where the code is located can be searched through the ID of the corresponding replacement function. The query request can be a query request of an engineer in charge of the code, so that when the code runs abnormally, the engineer can quickly locate a code position where a problem possibly occurs. The query request may include the original hard coded character string, and since the hard coded character string is replaced in the present invention, the position of the original hard coded character string needs to be located by finding the position of the corresponding replacement function.
In further embodiments, after replacing the first placeholder in the replacement content with the translation string, further comprising:
and establishing a second mapping relation between the hard code character string and the translation character string. The first mapping relationship and the second mapping relationship may be created Excel tables, where one column in the table records the ID of the replacement function in the program, and the other column records the corresponding hard code string.
Still another embodiment of the present invention further provides a code language conversion system, configured to implement the code language conversion method, and the structural schematic diagram is shown in fig. 2, and specifically includes a code obtaining module M100, a searching module M200, and a code replacing module M300, where:
the code obtaining module M100 is configured to obtain a code to be processed;
the searching module M200 is used for searching a hard coded character string in the code by using a syntax analysis tree;
the code replacing module M300 is configured to replace the found hard code character string with a set of replacing functions, where the set of replacing functions includes trigger conditions and replacing contents corresponding to various languages; wherein the content of the first and second substances,
the replacement function is configured to replace the hardcoded string with the replacement content when a trigger condition of a language is established.
The functional implementation manner of each functional module in the code language conversion system of the embodiment can be implemented by adopting the specific implementation manner of each step in the code language conversion method. For example, the code obtaining module M100, the searching module M200, and the code replacing module M300 may respectively adopt the specific implementation manners of the steps S100 to S300 to implement the functions thereof, which are not described herein again.
An electronic device 600 according to this embodiment of the invention is described below with reference to fig. 3. The electronic device 600 shown in fig. 3 is only an example and should not bring any limitation to the functions and the scope of use of the embodiments of the present invention.
As shown in fig. 3, the electronic device 600 is embodied in the form of a general purpose computing device. The components of the electronic device 600 may include, but are not limited to: at least one processing unit 610, at least one memory unit 620, a bus 630 connecting the different platform components (including the memory unit 620 and the processing unit 610), a display unit 640, etc.
Wherein the storage unit stores program code which can be executed by the processing unit 610 such that the processing unit 610 performs the steps according to various exemplary embodiments of the present invention as described in the above-mentioned method section of the present specification. For example, processing unit 610 may perform the steps as shown in fig. 1.
The storage unit 620 may include readable media in the form of volatile memory units, such as a random access memory unit (RAM)6201 and/or a cache memory unit 6202, and may further include a read-only memory unit (ROM) 6203.
The memory unit 620 may also include a program/utility 6204 having a set (at least one) of program modules 6205, such program modules 6205 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
Bus 630 may be one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
The electronic device 600 may also communicate with one or more external devices 700 (e.g., keyboard, pointing device, bluetooth device, etc.), with one or more devices that enable a user to interact with the electronic device 600, and/or with any devices (e.g., router, modem, etc.) that enable the electronic device 600 to communicate with one or more other computing devices. Such communication may occur via an input/output (I/O) interface 650. Also, the electronic device 600 may communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network such as the Internet) via the network adapter 660. The network adapter 660 may communicate with other modules of the electronic device 600 via the bus 630. It should be appreciated that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the electronic device 600, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage platforms, to name a few.
An embodiment of the present invention further provides a computer-readable storage medium for storing a program, where the program is executed to implement the steps of the code language conversion method. In some possible embodiments, the various aspects of the invention may also be implemented in the form of a program product comprising program code means for causing a terminal device to carry out the steps according to the various exemplary embodiments of the invention described in the method part above of this description when said program product is run on the terminal device.
Referring to fig. 4, a program product 800 for implementing the above method according to an embodiment of the present invention is described, which may employ a portable compact disc read only memory (CD-ROM) and include program code, and may be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited in this regard and, in the present document, a readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device.
The program product may employ any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. A readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples (a non-exhaustive list) of the readable storage medium include: an electrical connection having one or more wires, a portable disk, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
A computer readable storage medium may include a propagated data signal with readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A readable storage medium may also be any readable medium that is not a readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a readable storage medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.
Program code for carrying out operations for aspects of the present invention may be written in any combination of one or more programming languages, including an object oriented programming language such as Java, C + + or the like and conventional procedural programming languages, such as the "C" programming language or similar programming languages. The program code may execute entirely on the user's computing device, partly on the user's device, as a stand-alone software package, partly on the user's computing device and partly on a remote computing device, or entirely on the remote computing device or server. In the case of a remote computing device, the remote computing device may be connected to the user computing device through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computing device (e.g., through the internet using an internet service provider).
In summary, the present invention provides a code language conversion method, system, device and storage medium, wherein the code language conversion method has the following advantages:
a. the code language conversion method can perform functional processing on the character string hard code in the code writing process by using a syntax analysis tree mode on the basis of an extended API provided by a Vscode platform;
b. the method comprises the steps of converting hard coded character strings in the code writing process into functions, inquiring contents to be displayed under different language systems through replacing contents in the functions, replacing the hard coded character strings in the codes one by one to ensure the accuracy of the codes, and simultaneously replacing all the hard coded character strings in the whole page at one time to improve the coding efficiency, namely realizing the functions of replacing the hard coded character strings one by one and replacing the hard coded character strings in the whole page;
c. hard codes in the codes are replaced from a syntax analysis level, the original code structure cannot be damaged, and variables and the like are automatically processed;
d. by recording the replacement process, the method can support the replaced code to jump and search the file which is locally stored after formatting, so that the code engineer can better ensure the safety and readability of the code, and the code engineer can write the code conveniently.
The conversion method of the invention can improve the speed of supporting multi-language processing for the display case in the process of writing codes of research and development personnel, reduce errors generated by artificial factors in the processing process, promote the iteration speed of research and development products and ensure the online quality of the products, and can conveniently popularize different projects due to self-defining the specification of multi-language formatting.
The foregoing is a more detailed description of the invention in connection with specific preferred embodiments and it is not intended that the invention be limited to these specific details. It will be evident to those skilled in the art that the present application is not limited to the details of the foregoing illustrative embodiments, and that the present application may be embodied in other specific forms without departing from the spirit or essential attributes thereof. The present embodiments are therefore to be considered in all respects as illustrative and not restrictive, the scope of the application being indicated by the appended claims rather than by the foregoing description, and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced therein. Any reference sign in a claim should not be construed as limiting the claim concerned. Furthermore, it is obvious that the word "comprising" does not exclude other elements or steps, and the singular does not exclude the plural. A plurality of units or means recited in the apparatus claims may also be implemented by one unit or means in software or hardware. The terms first, second, etc. are used to denote names, but not any particular order.

Claims (10)

1. A code language conversion method, comprising the steps of:
acquiring a code to be processed;
searching a hard coding character string in the code by utilizing a syntax analysis tree;
replacing the found hard code character string with a group of replacement functions, wherein each group of replacement functions comprises trigger conditions and replacement contents corresponding to various languages; wherein the content of the first and second substances,
the replacement function is configured to replace the hardcoded string with the replacement content when a trigger condition of a language is established.
2. The code language translation method of claim 1, wherein the obtaining the code to be processed comprises obtaining the code to be processed from a VScode platform.
3. The method for converting code language according to claim 1, wherein the replacing content in the replacing function is the first placeholder, and after replacing the found hard code string with a set of replacing functions, the method further comprises the following steps:
and acquiring a translation character string corresponding to the hard code character string, and replacing the first placeholder in the replacement content with the translation character string.
4. The code language conversion method according to claim 3, wherein after obtaining the translation string corresponding to the hard coded string, further comprising the steps of:
judging whether a second placeholder corresponding to the variable exists in the translation character string or not;
if so, replacing the second placeholder in the translation character string with a variable in the hard code character string, and then replacing the first placeholder in the replacement content with the translation character string.
5. The code language conversion method according to claim 3 or 4, characterized by, after replacing the first placeholder in the replacement content with the translation string, further comprising the steps of:
and establishing a first mapping relation between the hard code character string and the ID corresponding to the replacement function.
6. The code language conversion method according to claim 5, wherein when a query request is received, the position of the hardcoded character string corresponding to the query request in the code is searched according to the first mapping relationship.
7. The code language conversion method according to claim 3 or 4, characterized by, after replacing the first placeholder in the replacement content with the translation string, further comprising the steps of:
and establishing a second mapping relation between the hard code character string and the translation character string.
8. A code language conversion system for implementing the code language conversion method according to any one of claims 1 to 7, comprising a code acquisition module, a search module, and a code replacement module, wherein:
the code acquisition module is used for acquiring a code to be processed;
the searching module is used for searching the hard coding character string in the code by utilizing a syntax analysis tree;
the code replacing module is used for replacing the found hard code character string with a group of replacing functions, and the group of replacing functions comprise triggering conditions and replacing contents corresponding to various languages; wherein the content of the first and second substances,
the replacement function is configured to replace the hardcoded string with the replacement content when a trigger condition of a language is established.
9. A code language conversion apparatus characterized by comprising:
a processor;
a memory having stored therein executable instructions of the processor;
wherein the processor is configured to perform the steps of the code language translation method of any one of claims 1 to 7 via execution of the executable instructions.
10. A computer-readable storage medium storing a program, wherein the program is configured to implement the steps of the code language conversion method according to any one of claims 1 to 7 when executed.
CN202010667844.7A 2020-07-13 2020-07-13 Code language conversion method, system, equipment and storage medium Pending CN111796833A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010667844.7A CN111796833A (en) 2020-07-13 2020-07-13 Code language conversion method, system, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010667844.7A CN111796833A (en) 2020-07-13 2020-07-13 Code language conversion method, system, equipment and storage medium

Publications (1)

Publication Number Publication Date
CN111796833A true CN111796833A (en) 2020-10-20

Family

ID=72808330

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010667844.7A Pending CN111796833A (en) 2020-07-13 2020-07-13 Code language conversion method, system, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN111796833A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113408250A (en) * 2021-06-25 2021-09-17 网易(杭州)网络有限公司 Project file processing method and device
CN115291759A (en) * 2022-07-28 2022-11-04 北京字跳网络技术有限公司 Information processing method and device and electronic equipment

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1510569A (en) * 2002-12-23 2004-07-07 华为技术有限公司 Method for extracting and concentrating hard code string from source codes
CN106202066A (en) * 2016-07-05 2016-12-07 腾讯科技(深圳)有限公司 The interpretation method of website and device
CN111367595A (en) * 2018-12-25 2020-07-03 阿里巴巴集团控股有限公司 Data processing method, program running method, device and processing equipment

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1510569A (en) * 2002-12-23 2004-07-07 华为技术有限公司 Method for extracting and concentrating hard code string from source codes
CN106202066A (en) * 2016-07-05 2016-12-07 腾讯科技(深圳)有限公司 The interpretation method of website and device
CN111367595A (en) * 2018-12-25 2020-07-03 阿里巴巴集团控股有限公司 Data processing method, program running method, device and processing equipment

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113408250A (en) * 2021-06-25 2021-09-17 网易(杭州)网络有限公司 Project file processing method and device
CN113408250B (en) * 2021-06-25 2023-07-18 网易(杭州)网络有限公司 Project file processing method and device
CN115291759A (en) * 2022-07-28 2022-11-04 北京字跳网络技术有限公司 Information processing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US20200265074A1 (en) Searching multilingual documents based on document structure extraction
CN112256860A (en) Semantic retrieval method, system, equipment and storage medium for customer service conversation content
CN110554875B (en) Code conversion method and device, electronic equipment and storage medium
CN109710951B (en) Auxiliary translation method, device, equipment and storage medium based on translation history
CN108932218B (en) Instance extension method, device, equipment and medium
JP4502615B2 (en) Similar sentence search device, similar sentence search method, and program
US9201761B1 (en) Debugging data format conversion
CN111309760A (en) Data retrieval method, system, device and storage medium
US20150142825A1 (en) Converting procedural text to an actionable knowledge form
US20120158742A1 (en) Managing documents using weighted prevalence data for statements
CN112528681A (en) Cross-language retrieval and model training method, device, equipment and storage medium
CN111796833A (en) Code language conversion method, system, equipment and storage medium
CN111611452A (en) Method, system, device and storage medium for ambiguity recognition of search text
CN111143556B (en) Automatic counting method and device for software function points, medium and electronic equipment
CN111597800A (en) Method, device, equipment and storage medium for obtaining synonyms
CN113076167A (en) Code processing method and related equipment
CN112035443A (en) Big data execution method, system, equipment and storage medium based on Linux platform
CN111190920A (en) Data interactive query method and system based on natural language
CN1492354A (en) Multilingual information searching method and multilingual information search engine system
CN109710952B (en) Translation history retrieval method, device, equipment and medium based on artificial intelligence
CN109344374B (en) Report generation method and device based on big data, electronic equipment and storage medium
US10558631B2 (en) Enhancing textual searches with executables
CN112818070A (en) Data query method and device based on global data dictionary and electronic equipment
CN110308907B (en) Data conversion method and device, storage medium and electronic equipment
CN112699642B (en) Index extraction method and device for complex medical texts, medium and electronic equipment

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