CN110543243B - Data processing method, device, equipment and storage medium - Google Patents

Data processing method, device, equipment and storage medium Download PDF

Info

Publication number
CN110543243B
CN110543243B CN201910838329.8A CN201910838329A CN110543243B CN 110543243 B CN110543243 B CN 110543243B CN 201910838329 A CN201910838329 A CN 201910838329A CN 110543243 B CN110543243 B CN 110543243B
Authority
CN
China
Prior art keywords
parameter
input
preset
determining
position information
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
CN201910838329.8A
Other languages
Chinese (zh)
Other versions
CN110543243A (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.)
Beijing ByteDance Network Technology Co Ltd
Original Assignee
Beijing ByteDance Network 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 Beijing ByteDance Network Technology Co Ltd filed Critical Beijing ByteDance Network Technology Co Ltd
Priority to CN201910838329.8A priority Critical patent/CN110543243B/en
Publication of CN110543243A publication Critical patent/CN110543243A/en
Application granted granted Critical
Publication of CN110543243B publication Critical patent/CN110543243B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/02Input arrangements using manually operated switches, e.g. using keyboards or dials
    • G06F3/023Arrangements for converting discrete items of information into a coded form, e.g. arrangements for interpreting keyboard generated codes as alphanumeric codes, operand codes or instruction codes
    • G06F3/0233Character input methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the disclosure discloses a data processing method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring a first parameter input in a preset input box at the current moment, and determining first position information corresponding to the first parameter; determining a first identifier corresponding to a first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier frame insertion mode; sequentially storing the first position information and the first identification as element information into a first data set corresponding to the first parameter; when an input ending instruction is detected, code data corresponding to input content formed by all parameters is generated according to data sets corresponding to all parameters input in a preset input box. According to the technical scheme, the keyboard input mode can be realized under the condition of solving the multi-identification conflict, so that the generation accuracy of the coded data is ensured, and the user experience is improved.

Description

Data processing method, device, equipment and storage medium
Technical Field
The embodiment of the disclosure relates to the technical field of computers, in particular to a data processing method, a device, equipment and a storage medium.
Background
With the rapid development of computer technology, more and more application functions are developed to meet the increasing demands of users. For example, the data input by the user in the input box may be processed to generate the required encoded data, so as to store the encoded data in the background server.
In general, there are multiple input parameters with the same name but different types at the same time in the input box, for example, there are input parameters "beijing" in the "social security city" type and input parameters "beijing" in the "job-entering city" type in the input box at the same time, and the identifiers corresponding to the same parameters are different in different types, so that the same parameters in the input box correspond to multiple identifiers, and there is a case that the identifiers conflict, and thus the encoded data cannot be accurately generated based on the identifiers.
At present, the existing data processing modes are: the identification frame corresponding to each parameter is added in advance in the input interface, so that a user can click the identification frame corresponding to the required parameter through a mouse, the required parameter is inserted into the input frame, input data are stored in a DOM (Document Object Model ) tree mode in the click input process, the identification corresponding to each input parameter can be obtained, the problem of multi-identification conflict is solved, and coding data can be accurately generated.
Therefore, the existing data processing mode solves the problem of multi-identification conflict, but only allows the mouse to click the identification frame for input, so that random input cannot be performed by utilizing the keyboard, and user experience is reduced.
Disclosure of Invention
The embodiment of the disclosure provides a data processing method, a device, equipment and a storage medium, so that a keyboard input mode is realized under the condition of solving multi-identification conflict, and the generation accuracy of encoded data is ensured and the user experience is improved.
In a first aspect, an embodiment of the present disclosure provides a data processing method, including:
acquiring a first parameter input in a preset input box at the current moment, and determining first position information corresponding to the first parameter;
determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier frame insertion mode;
sequentially storing the first position information and the first identifier as element information into a first data set corresponding to the first parameter, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameter in the preset input frame;
When an input ending instruction is detected, generating coded data corresponding to input contents formed by the parameters according to data sets corresponding to the parameters input in the preset input box.
In a second aspect, embodiments of the present disclosure further provide a data processing apparatus, including:
the first position information determining module is used for acquiring a first parameter input in a preset input box at the current moment and determining first position information corresponding to the first parameter;
the first identification determining module is used for determining a first identification corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identification frame insertion mode;
the element information storage module is used for sequentially storing the first position information and the first identifier as element information into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameters in the preset input frame;
and the coded data generation module is used for generating coded data corresponding to input contents formed by the parameters according to the data set corresponding to the parameters input in the preset input box when the input ending instruction is detected.
In a third aspect, embodiments of the present disclosure further provide an apparatus, the apparatus comprising:
one or more processors;
storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data processing method as provided by any embodiment of the present disclosure.
In a fourth aspect, the presently disclosed embodiments also provide a storage medium containing computer executable instructions which, when executed by a computer processor, are used to perform a data processing method as provided by any of the embodiments of the present disclosure.
According to the technical scheme, the required parameters can be input in the preset input box through a keyboard input mode or a click identification box insertion mode, so that the keyboard input mode is realized, and the user experience is improved. And when inputting parameters, the position information and the identification of each input parameter need to be determined in real time, and the position information and the identification are used as element information and are sequentially stored into a data set corresponding to the parameter. That is, if the first parameter is input in the preset identification frame at the current moment, the position information of the first parameter which is input at the current moment is determined in real time, the first identification corresponding to the first parameter is determined according to the parameter input mode corresponding to the first parameter, the position information and the identification of the first parameter are sequentially stored to the corresponding position in each data set corresponding to the first parameter as element information, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameter in the preset input frame, the identification corresponding to each first parameter in the preset input frame can be determined based on the position information and the identification stored in the first data set, the problem that the identification conflicts due to the fact that the same parameter corresponds to a plurality of identifications, and coding data cannot be accurately generated is solved, and the technical effect that the generation accuracy of the coding data is ensured and the user experience is improved is achieved.
Drawings
The above and other features, advantages, and aspects of embodiments of the present disclosure will become more apparent by reference to the following detailed description when taken in conjunction with the accompanying drawings. The same or similar reference numbers will be used throughout the drawings to refer to the same or like elements. It should be understood that the figures are schematic and that elements and components are not necessarily drawn to scale.
FIG. 1 is a flow chart of a data processing method according to a first embodiment of the disclosure;
fig. 2 is a flow chart of a data processing method according to a second embodiment of the disclosure;
FIG. 3 is a schematic diagram of a data processing apparatus according to a third embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present disclosure.
Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While certain embodiments of the present disclosure have been shown in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein, but are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are for illustration purposes only and are not intended to limit the scope of the present disclosure.
It should be understood that the various steps recited in the method embodiments of the present disclosure may be performed in a different order and/or performed in parallel. Furthermore, method embodiments may include additional steps and/or omit performing the illustrated steps. The scope of the present disclosure is not limited in this respect.
The term "including" and variations thereof as used herein are intended to be open-ended, i.e., including, but not limited to. The term "based on" is based at least in part on. The term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments. Related definitions of other terms will be given in the description below.
It should be noted that the terms "first," "second," and the like in this disclosure are merely used to distinguish between different devices, modules, or units and are not used to define an order or interdependence of functions performed by the devices, modules, or units.
It should be noted that references to "one", "a plurality" and "a plurality" in this disclosure are intended to be illustrative rather than limiting, and those of ordinary skill in the art will appreciate that "one or more" is intended to be understood as "one or more" unless the context clearly indicates otherwise.
Example 1
Fig. 1 is a schematic flow chart of a data processing method provided in a first embodiment of the present disclosure, where the embodiment of the present disclosure may be suitable for processing input content in a preset input box to generate corresponding encoded data, and the method may be performed by a data processing apparatus, where the apparatus may be implemented in software and/or hardware, and integrated into a device having an input function, such as a desktop computer, a notebook computer, or the like. As shown in fig. 1, the data processing method provided in the embodiment of the present disclosure specifically includes the following steps:
s110, acquiring a first parameter input in a preset input box at the current moment, and determining first position information corresponding to the first parameter.
The preset input box may be a preset area for editing information and displaying the edited information. The first parameter may refer to information input by the user in a preset input box at the current time. The first parameter may be, but is not limited to, information consisting of at least one of Chinese characters, letters, numbers, and symbols. The first position information may refer to position information of the first parameter in a preset input box, and may include a parameter position start point and a parameter position end point corresponding to the first parameter. The parameter position starting point may refer to a position point where a first character in the first parameter is located; the parameter position end point refers to the position point where the last character in the first parameter is located. For example, the parameter position start point corresponding to the first parameter may be represented as a position of row 1 and column 1 in the preset input box.
Specifically, the user can input the required parameters in the preset input box based on the own requirement by using a keyboard input mode or a click identification box insertion mode. In the embodiment of the disclosure, each parameter input by a user is acquired in real time in the process of inputting the parameter by the user, and the first position information corresponding to the first parameter input at the current moment is determined in real time.
Illustratively, S110 may include: acquiring a starting input position of a first parameter, and taking the starting input position as a parameter position starting point; and determining a parameter position end point corresponding to the first parameter according to the parameter position start point and the character length corresponding to the first parameter.
Specifically, the embodiment of the disclosure may acquire the position of the mouse cursor when the first parameter starts to be input, and determine the acquired position of the mouse cursor as the start input position corresponding to the first parameter, that is, the parameter position starting point of the first parameter. And acquiring the character length of the input first parameter in real time, and taking the position obtained by adding the character length to the parameter position starting point as the parameter position end point corresponding to the first parameter, so that the first position information corresponding to the first parameter degree can be obtained.
S120, determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier frame insertion mode.
Wherein, each input parameter can be uniquely corresponding to one identifier. The identification frame may be a clickable parameter identification set outside the preset input frame based on a service requirement in advance, and when the identification frame corresponding to a certain parameter is clicked, a parameter name corresponding to the identification frame may be input in the preset input frame, for example: if the identification box "Beijing" under the "social security city" type is clicked, the parameter name "Beijing" is input in the preset input box. It should be noted that when the types of parameters having the same name are different, the identifiers corresponding to the parameters are also different. Each parameter can be input by a keyboard input mode or a click identification frame insertion mode, but when the same parameter is input by different parameter input modes, the identifications corresponding to the parameters are different.
Specifically, the parameter input modes corresponding to the first parameter are different, and the mode of determining the first identifier corresponding to the first parameter is also different. When a first parameter is input, a first identifier corresponding to the first parameter needs to be determined in real time based on a parameter input mode.
Illustratively, S120 may include: when the parameter input mode corresponding to the first parameter is a keyboard input mode, directly determining the parameter name of the first parameter as a first identifier corresponding to the first parameter; when the current input mode corresponding to the first parameter is a click identification frame insertion mode, determining a first identification corresponding to the first parameter currently clicked based on a preset mapping relation between each parameter and the identification.
Specifically, when the first parameter is input by using the keyboard input mode, that is, when the parameter name corresponding to the first parameter is edited by using the keyboard, it is indicated that the first parameter currently input is in a plain text format, and at this time, the parameter name of the first parameter can be directly used as the first identifier of the first parameter. When the first parameter is input by using the click identification frame insertion mode, that is, when the parameter name corresponding to the first parameter is input by clicking the preset identification frame corresponding to the first parameter, it indicates that the currently input first parameter is in the preset type, and at this time, the first identification corresponding to the currently clicked first parameter can be determined based on the mapping relationship between each parameter and the identification in the type corresponding to the currently clicked preset identification frame. It should be noted that, when the parameter input mode of the first parameter is the click identifier frame insertion mode, the determined first identifier may be composed of at least one of a number, a letter and a symbol. For example, when clicking the "beijing" identifier box under the "social security city" type, according to the correspondence between each parameter and the identifier under the "social security city" type, a first identifier corresponding to the "beijing" under the "social security city" type may be determined, for example, the first identifier corresponding to the "beijing" is: 10-11.
S130, sequentially storing the first position information and the first identification as element information into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameters in a preset input frame.
The data set may be used for storing location information and an identifier corresponding to parameters input in a preset input box. Parameters having the same name correspond to the same data set. The first data set corresponding to the first parameter refers to a data set corresponding to a parameter name of the first parameter. The number of elements contained in the first data set is equal to the number of times of the first parameter appearing in the preset input frame in real time, for example, when the first parameter is input again in the preset input frame, the number of elements contained in the first data set is increased by 1. Each element position in the first data set stores element information composed of first position information and first identification corresponding to a corresponding first parameter. The sequential storage may mean that the first position information of the first parameter stored at each element position in the first data set is sequentially arranged from small to large so that the element arrangement order is consistent with the order in which the first parameter appears in the preset input box.
Specifically, when the first position information and the first identifier corresponding to the first parameter which are currently input are determined, the first position information and the first identifier can be used as element information in real time and sequentially stored to the corresponding position in the first data set, so that the element arrangement sequence corresponding to each first parameter in the stored first data set is consistent with the sequence of the first parameter in the preset input frame. It should be noted that, the user may input the first parameter at any position in the preset input box, which is not limited to a sequential input manner, so that the convenience of input is greatly improved, and the input efficiency is improved. According to the embodiment of the disclosure, the first position information corresponding to the first parameters is sequentially stored in real time by utilizing the first data set, so that when a plurality of first parameters with the same name exist in the preset input box, each first parameter which is input can be respectively positioned based on the first position information, positioning based on the identification is not needed, the conflict problem of multiple identifications can be solved, and a manual input mode is realized.
Illustratively, S130 may include: if the first data set corresponding to the first parameter does not exist, the first data set is created, and the first position information and the first identifier are used as element information and stored into the created first data set; if the first data set corresponding to the first parameter exists, determining a first element position corresponding to the first position information according to the existing position information and the first position information in each existing element in the first data set, and storing the first position information and the first identifier as element information at the first element position in the first data set.
Specifically, when the currently input first parameter is acquired, the parameter name of the first parameter may be matched with the set name of each created data set, so as to detect in real time whether the first data set corresponding to the first parameter has been created, so as to store the first parameter with the same name into the same first data set. If the parameter name of the first parameter fails to match with the set name of any one of the data sets, it indicates that the first data set corresponding to the first parameter is not created at present, that is, the first parameter is input for the first time in the preset input box, at this time, an empty first data set needs to be created, and the first position information and the first identifier are stored in the first element position in the first data set. If the parameter name of the first parameter is successfully matched with the set name of a certain data set, the data set is indicated to be the first data set, namely, the first data set is created, at the moment, the existing position information stored at each element position in the first data set can be compared with the first position information corresponding to the first parameter input currently, the first element position corresponding to the first position information in the sequence arrangement is determined, and the first position information and the first identification are stored at the first element position, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameter in a preset input frame.
For example, it is assumed that two "beijing" are input in the preset input box, and the two "beijing" are recorded as "beijing 1" and "beijing 2" for convenience of distinction, and the "beijing 1" is located in front of the "beijing 2", that is, the "beijing 1" appears first in the preset input box, and then the "beijing 2" appears, at this time, if the third "beijing" is input at a certain position between the "beijing 1" and the "beijing 2", that is, the "beijing 3" is recorded, then an element position is added between the elements corresponding to the first parameter "beijing" in the first data set corresponding to the first parameter "beijing" and the element corresponding to the "beijing 2", and the element position is determined as a first element position, so that the first data set includes three element information, that is, the element information corresponding to the "beijing 1", the element information corresponding to the "beijing 3" and the element information corresponding to the "beijing 2" are sequentially stored.
It should be noted that, in the embodiment of the present disclosure, the location information and the identifier corresponding to each parameter input in the preset input box may be determined and stored in real time; the position information and the identification corresponding to each parameter in the preset mode input in the preset input box can be determined and stored in real time, so that the storage space is saved, and the processing efficiency is further improved. The preset mode may refer to a mode corresponding to a parameter having the same parameter name but different corresponding identifiers. The non-preset mode may refer to a mode corresponding to a parameter having the same parameter name but the same corresponding identifier, for example, when the first parameter is a logical operator "and", each time the logical operator is input, the identifier corresponding to the first parameter is a unique identifier, so that a situation of multiple identifier conflict does not exist, that is, there is no need to determine and store the location information and the identifier corresponding to the logical operator. The embodiment of the disclosure can match the currently input first parameter with the preset parameter in the non-preset mode, if the matching fails, the first parameter is indicated to be the parameter in the preset mode, and at this time, the operations of S110-S130 can be continuously executed; if the matching is successful, it indicates that the first parameter is a parameter in a non-preset mode, and the operations of S110-S130 are not required to be executed at this time, and the process continues to wait until the parameter in the preset mode is input. It should be noted that, for the parameter in the non-preset mode, the parameter can be directly input into the preset input frame by using the keyboard input mode, and the input interface is not required to search the identification frame corresponding to the parameter from the multiple identification frames, so that the input is performed by using the click identification frame insertion mode, thereby further improving the input efficiency and the user experience.
And S140, when an input ending instruction is detected, generating coded data corresponding to input contents formed by the parameters according to a data set corresponding to the parameters input in a preset input box.
The encoded data may refer to data generated by performing identification encoding on input content in a preset input box, so that the generated encoded data is stored in a background server. For example, the user may input each parameter required by a certain formula in a preset input box, and encode the input each parameter to generate encoded data corresponding to the formula.
Specifically, when the user edits the required input content in the preset input box based on the service requirement, an input ending instruction can be generated by clicking a preset button, when the input ending instruction is detected, the user input is indicated to be ended, and at the moment, the input content in the input box can be encoded based on each created data parameter, so that corresponding encoded data can be accurately generated. It should be noted that, the operations of S110 to S140 in the embodiments of the present disclosure may be performed in the web page end to implement online data processing, and the web page end may send the generated encoded data to the background data server for storage.
For example, the "generating encoded data corresponding to the input content composed of the respective parameters according to the data set corresponding to the respective parameters input in the preset input box" in S140 may include: determining a mark corresponding to each parameter in the preset input frame according to the data set corresponding to each parameter input in the preset input frame; and replacing each parameter input in the preset input box with a corresponding identifier to generate encoded data corresponding to the input content formed by each parameter.
Specifically, according to the position information and the identifier stored in each element position in each created data set, the parameters at the corresponding positions in the preset input frame are replaced by the corresponding identifiers, so that the one-to-one replacement of the parameters is realized, and the coded data is accurately generated. The embodiment of the disclosure can also sequentially replace the identifiers stored in each element position in the data set directly based on the sequence of each parameter in the preset input frame, for example, three Beijing identifiers sequentially stored in the data set corresponding to Beijing are sequentially replaced one by one if three Beijing identifiers sequentially appear in the preset input frame, and the identifiers still need not to be replaced, so that the data processing efficiency is further improved.
Illustratively, if the input content in the preset input box is a formula for calculating employee compensation, namely: ROUND (IF (AND (OR (AND (jackpot-system |=0, jackpot-system < 22)), work province=personal), (basic payroll standard/payroll number), MIN (payroll number/actual payroll number-jackpot-system-duty patch-meal compensation amount), IF (employee type= [ employee type ] practice, (basic payroll standard/21.75) ×payroll number/actual payroll number, IF (nationality |= [ country ] china, MIN (((basic payroll standard-foreign person payroll number)/payroll number) ×actual payroll number/actual payroll number, basic payroll standard)), MIN (basic payroll standard/payroll number/actual payroll number, basic standard)))), 2
After the input content is processed based on each created data set, the generated coded data is: "," $ {4-4} "," ("," $ {4-14} "," ("," $ {4-15} ",", "$ {4-16}", "(", "$ {4-15}", "(", "# {1}", "| }", "# {0}", "," # {2} "," < "," # {22} ",") ", the method comprises the steps of (1) a,", "$3-40542 }", "=" person } ",", "," ("," $3-40548 } ","/"," $3-40601 } ",", x "," $4-19 } "," ("," $3-40601 } ",", "$ {3-40602}", "-", "# {2}", "-" # {3} ",") ",", "," $ {4-14} "," ("$ {3-40523}", "=" $ {16-2} ",", "," ("," $ {3-40548} ","/"," # { 21-75 } ")", "," $ {3-40602} ",", "," $ {4-14} "," ("," $ {3-40526} "," | = "," $ {11-1} ",", "$ {4-19}", "(", "$ {3-40548}", "-", "$ {3-40661 }), ","/"," $ {3-40601} ",", "x", "$ {3-40602}", ",", "$ {3-40548}", ",", "$ {4-19}", "(" s "," $ {3-40548} ","/"," $ {3-40602} ",", "$ {3-40548}", ")", ","), ",", "# {2}", ")", and "
The package is an identifier corresponding to a parameter input by using a click identifier box insertion mode, or an identifier corresponding to a parameter which has the same name and only has only one identifier, for example, a unique identifier 4-4 corresponding to a ROUND rounding function; the # { } package is a number input by a keyboard input mode or a click identification frame insertion mode; the { } package is an identifier corresponding to the parameter input by using a keyboard input mode, namely a plain text.
If only the data set corresponding to each parameter in the preset mode is created, the identifier corresponding to each input parameter can be determined according to the corresponding relation between each parameter and the identifier in the non-preset mode and each created data set, so that the identifier replacement is realized, and the encoding processing efficiency is further improved.
According to the technical scheme, the required parameters can be input in the preset input box through a keyboard input mode or a click identification box insertion mode, so that the keyboard input mode is realized, and the user experience is improved. And when inputting parameters, the position information and the identification of each input parameter need to be determined in real time, and the position information and the identification are used as element information and are sequentially stored into a data set corresponding to the parameter. That is, if the first parameter is input in the preset identification frame at the current moment, the position information of the first parameter which is input at the current moment is determined in real time, the first identification corresponding to the first parameter is determined according to the parameter input mode corresponding to the first parameter, the position information and the identification of the first parameter are sequentially stored to the corresponding position in each data set corresponding to the first parameter as element information, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameter in the preset input frame, the identification corresponding to each first parameter in the preset input frame can be determined based on the position information and the identification stored in the first data set, the problem that the identification conflicts due to the fact that the same parameter corresponds to a plurality of identifications, and coding data cannot be accurately generated is solved, and the technical effect that the generation accuracy of the coding data is ensured and the user experience is improved is achieved.
Based on the above technical solution, before S140, the method may further include: when deleting the parameters in the preset input box is detected, determining second position information corresponding to the second parameters which are deleted currently; and determining a second element position where the second position information is located in the second data set corresponding to the second parameter, and deleting the element information stored in the second element position to update the second data set.
The second parameter may be a parameter deleted by the user in a preset input box at the current moment. The second position information comprises a parameter position starting point and a parameter position ending point corresponding to the second parameter.
Specifically, the user can input parameters at any position in the preset input box, and can delete any input parameter in real time in a keyboard deleting mode. When the user deletes the parameter in the preset input box by using the delete key in the keyboard, the delete operation can be detected, the position of the mouse cursor when deleting is obtained as the parameter position end point of the second parameter, and the result obtained by subtracting the character length of the deleted second parameter from the parameter position end point is taken as the parameter position start point of the second parameter, so as to determine the second position information corresponding to the second parameter. And matching each piece of position information stored in the second data set corresponding to the second parameter with the second position information, and determining the element position where the position information successfully matched is located as a second element position. When deleting the second parameter, deleting the element information stored in the second element position in the second data set at the same time, so that the second data set is always consistent with the content in the preset input frame, the subsequent accurate coding processing is facilitated, the condition that the data can only be input again when part of data needs to be deleted in the prior art is avoided, random deletion of the parameters in the preset input frame is realized, all the parameters do not need to be input again, deletion and modification of the input content are facilitated, and the processing efficiency and the user experience are further improved.
Based on the above technical solution, before S140, the method may further include: detecting whether a third parameter with a changed position exists when the first parameter is input in a preset input box; if yes, determining third position information of the third parameter before position change and fourth position information after position change; and in a third data set corresponding to the third parameter, determining a third element position where the third position information is located, and updating the third position information stored in the third element position into fourth position information.
The third parameter may refer to other parameters whose parameter positions in the preset input box are changed when the first parameter is input or the second parameter is deleted. For example, when a new parameter C is input between two parameters a and B located in the same row, the position of the parameter B changes, i.e., the parameter B is a third parameter. The number of third parameters in embodiments of the present disclosure may be one or more.
Specifically, when the first parameter is input or the second parameter is deleted, whether the position of each parameter after the input operation or after the deletion operation is changed or not may be compared in real time, if so, for each third parameter that is changed, fourth position information after the position change is determined according to the character length of the first parameter or the second parameter and third position information of the third parameter before the position change, for example, for the inserting operation, the position of the third parameter is indicated to be moved backwards by the character length of the first parameter, and at this time, the third position information before the position change may be added to the character length to obtain fourth position information after the position change. For the deletion operation, the position of the third parameter is indicated to be shifted forward by the character length of the first parameter, at which time the third position information before the position change may be subtracted from the character length to obtain fourth position information after the position change. And matching the third position information corresponding to the third parameter with each position information in a third data set corresponding to the third parameter, determining the element position where the position information which is successfully matched is positioned as a third element position, and updating the third position information stored in the third element position into fourth position information so as to realize real-time updating of the third data set and ensure the accuracy of the generation of the subsequent coded data.
On the basis of the technical scheme, when the first parameter is input in the preset input box, the method further comprises the following steps: when the parameter input mode corresponding to the first parameter is a keyboard input mode, displaying the first parameter in a first display mode in a preset input frame; when the parameter input mode corresponding to the first parameter is a click identification frame insertion mode, the first parameter is displayed in a second display mode in a preset input frame.
The first display mode and the second display mode are two different display modes, for example, the difference can include at least one of different display colors, different display sizes, different display fonts and whether to highlight. Illustratively, the first display is a highlighting; the second display mode is non-highlighting.
Specifically, when the first parameter is input in the preset input box, the input first parameter can be displayed in different display modes based on different parameter input modes, so that a user can distinguish more intuitively and clearly, and the viewing experience of the user is further improved.
Example two
Fig. 2 is a flowchart of a data processing method according to a second embodiment of the present disclosure, where a manner of copying input content in a preset input box is described in detail on the basis of the foregoing embodiment, and a manner of pasting copied content is also described in detail on the basis of the foregoing embodiment. Wherein the same or corresponding terms as those of the above-described embodiments are not explained in detail herein.
Referring to fig. 2, the data processing method provided in the embodiment of the present disclosure specifically includes the following steps:
s210, acquiring a first parameter input in a preset input box at the current moment, and determining first position information corresponding to the first parameter.
S220, determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier frame insertion mode.
S230, sequentially storing the first position information and the first identification as element information into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameters in a preset input frame.
S240, if the copying operation of at least one fourth parameter in the preset input box is detected, determining fifth position information corresponding to each fourth parameter.
The fourth parameter may refer to any parameter that has been input in the preset input box. The fifth location information may include a parameter location start point and a parameter location end point corresponding to the fourth parameter.
Specifically, if the user wants to copy or reenter one or more parameters already input in the preset input box, the user does not need to reenter the parameters, and only needs to copy the parameters. For example, the user may perform a selection operation on one or more fourth parameters that need to be copied in the preset input box, and perform a preset copy operation, such as ctrl+c operation. When a copy operation is detected, fifth position information corresponding to each fourth parameter to be copied may be determined according to the copy position, for example, when one fourth parameter exists, a position of a mouse cursor at the start of copy is obtained as a parameter position start point of the fourth parameter, and a result obtained by adding a character length of the fourth parameter to the parameter position start point is taken as a parameter position end point of the fourth parameter, so as to determine the fifth position information corresponding to the fourth parameter. When a plurality of fourth parameters exist, the position of the mouse cursor at the beginning of replication can be used as a parameter position starting point of the first fourth parameter, and a result obtained by adding the character length of the first fourth parameter to the parameter position starting point is used as a parameter position end point of the first fourth parameter, so that fifth position information corresponding to the first fourth parameter is determined; and taking the next character position of the parameter position end point of the first fourth parameter as a parameter position start point of the second fourth parameter, and taking a result obtained by adding the character length of the second fourth parameter to the parameter position start point as the parameter position end point of the second fourth parameter, thereby obtaining fifth position information corresponding to the second fourth parameter, and further sequentially determining the fifth position information corresponding to each fourth parameter.
S250, determining a fourth element position where each piece of fifth position information is located in a fourth parameter set corresponding to each fourth parameter, and determining prefix information corresponding to the fourth parameter according to element information stored in the fourth element position.
The prefix information may refer to information identifying each parameter. The prefix information may refer to an identifier corresponding to a parameter, or may be other customized unique identifiers that clearly reflect meaning, for example, prefix information corresponding to "working city" is: an item; the prefix information corresponding to Beijing is: the city. For example, prefix information corresponding to a parameter identified as a parameter name may be null information, so that the prefix information is directly characterized by the parameter name.
Specifically, when the parameter identifier is directly utilized as prefix information, the identifier corresponding to each fourth parameter can be determined directly according to each created data set and fifth position information corresponding to each fourth parameter, and the identifier is determined to be corresponding prefix information, so that processing efficiency is improved. When the meaning information is used as prefix information, the prefix information corresponding to the parameters can be stored in the data sets when the position information and the identification are stored in the data sets, so that when copying is performed, the prefix information corresponding to each fourth parameter can be determined based on each data set, and the user can know the meaning of each copied parameter more clearly.
And S260, adding corresponding prefix information at the front end position of each fourth parameter, and taking the fourth parameter carrying the prefix information as the fourth parameter after copying.
The front end position of the fourth parameter may refer to a position corresponding to a previous character of the fourth parameter.
Specifically, corresponding prefix information is added in a preset format at the front end position of each fourth parameter. For example: the format of the fourth parameter after copying is: prefix information fourth parameter.
Illustratively, assume that the replicated content is: IF (working city=beijing, 1000,2000), IF prefix information corresponding to "working city" is determined based on the created data set as: "project"; the prefix information corresponding to Beijing is: and (3) if prefix information corresponding to the rest fourth parameters is null information, copying the content: IF ([ project ] working city= [ city ] beijing, 1000,2000). If the user pastes the content into other text boxes, the obtained content is still: IF ([ project ] working city= [ city ] beijing, 1000,2000) so that the user can more clearly understand the meaning of each parameter based on such prefix information having meaning, to meet the individualization requirement.
S270, if it is detected that pasting operation is performed on at least one fourth parameter in the preset input box, prefix information corresponding to each fourth parameter is obtained.
Specifically, if the user wants to input each copied fourth parameter in the preset input box, a paste operation, such as ctrl+v operation, may be performed on each copied fourth parameter at the input position. When a paste operation is detected, corresponding prefix information may be acquired from the front end position of each fourth parameter.
S280, determining a fourth identifier corresponding to each fourth parameter according to each prefix information, and determining sixth position information corresponding to each pasted fourth parameter.
Specifically, the fourth identifier corresponding to each fourth parameter may be determined according to a preset corresponding relationship between each prefix information and the identifier and the prefix information corresponding to each fourth parameter. And determining sixth position information corresponding to each pasted fourth parameter according to the pasting position, for example, when one fourth parameter exists, acquiring a mouse cursor position at the beginning of pasting as a parameter position starting point of the fourth parameter, and taking a result obtained by adding the character length of the fourth parameter to the parameter position starting point as a parameter position end point of the fourth parameter, so as to determine the sixth position information corresponding to the fourth parameter. When a plurality of fourth parameters exist, the position of the mouse cursor at the beginning of pasting can be used as a parameter position starting point of the first fourth parameter, and a result obtained by adding the character length of the first fourth parameter to the parameter position starting point is used as a parameter position end point of the first fourth parameter, so that sixth position information corresponding to the first fourth parameter is determined; and taking the next character position of the parameter position end point of the first fourth parameter as the parameter position start point of the second sixth parameter, and taking the result obtained by adding the character length of the second fourth parameter to the parameter position start point as the parameter position end point of the second fourth parameter, thereby obtaining sixth position information corresponding to the second fourth parameter, and further determining the sixth position information corresponding to each fourth parameter in turn.
Illustratively, embodiments of the present disclosure may determine location information and an identifier corresponding to each fourth parameter in the paste content; the fourth parameter in the preset mode in the paste content can be determined first, and only the position information and the identifier corresponding to the fourth parameter in the preset mode can be determined and stored, so that the storage space is saved.
And S290, sequentially storing the fourth identifier and the sixth position information serving as element information into a fourth data set corresponding to the fourth parameter.
Specifically, fourth identification and sixth location information corresponding to each fourth parameter are stored based on the same sequential storage manner described above. For each fourth parameter, determining the element position of the sixth position information corresponding to the fourth parameter in the fourth data set corresponding to the fourth parameter, and storing the fourth identifier and the sixth position information corresponding to the fourth parameter at the element position, so that the element arrangement sequence of each fourth parameter stored in the fourth data set is consistent with the sequence appearing in the preset input frame.
When the pasting operation is detected, the prefix information corresponding to each copied fourth parameter can be deleted, and the fourth parameter after the prefix information is deleted is automatically input to the pasting position in the preset input frame, so that the parameter pasting operation is realized, the problem that copying and pasting cannot be carried out in the prior art is solved, the user input is more convenient, and the input efficiency is further improved. Illustratively, if the copied content is: IF ([ project ] working city= [ city ] beijing, 1000,2000), the paste content after pasting to the preset input box is: IF (working city=beijing, 1000,2000) to ensure consistency of copy content and paste content.
And S291, when an input end instruction is detected, generating coded data corresponding to input contents formed by the parameters according to a data set corresponding to the parameters input in a preset input box.
According to the technical scheme, the corresponding prefix information is added at the front end position of each fourth parameter to be copied, and the identifier corresponding to each pasted fourth parameter is determined according to the prefix information, so that the parameter copying and pasting functions can be realized, the problem that copying and pasting cannot be carried out in the prior art is solved, user input is more convenient, and input efficiency and data processing efficiency are further improved.
Based on the technical scheme, the method can further comprise the following steps: if the formatting instruction is detected, replacing each fifth parameter in the preset input box with a sixth parameter based on a preset replacement rule, obtaining data to be formatted, and storing a corresponding relation between the fifth parameter and the sixth parameter; formatting the data to be formatted to obtain first target data in a preset data format; based on the corresponding relation, replacing each sixth parameter in the first target data with a corresponding fifth parameter to obtain second target data in a preset data format, and displaying the second target data in a preset input box.
The preset replacement rule may be determined based on a preset formatting script, so that the data to be formatted may be formatted using the formatting script. Illustratively, the preset replacement rule may be: when the fifth parameter is a Chinese character or a letter, the fifth parameter may be replaced with: WORD; when the fifth parameter is a number, no substitution may be required; when the fifth parameter is a DATE, the fifth parameter may be replaced with DATE.
Specifically, since the names of each parameter in the preset input box have diversity, the existing formatting script cannot be directly used, so that each fifth parameter in the preset input box needs to be replaced according to the preset replacement rule for adaptation. If the user wants to format the input content in the preset input box, the user can generate a formatting instruction by clicking a preset formatting button. When the formatting instruction is detected, each fifth parameter can be replaced by a corresponding sixth parameter based on a preset replacement rule, so as to obtain adaptive data to be formatted, and the corresponding relation between each fifth parameter and the sixth parameter is sequentially stored, so that the accuracy of restoration after formatting is ensured. And formatting the data to be formatted by using the existing formatting script to generate first target data in a preset data format. For example, the data to be formatted may be all parameters written in the same row. The formatted first target data may be displayed in a distributed manner based on a preset data format, so that the user can more conveniently view and read, for example, line Shan Zhan of ROUND. After formatting, each sixth parameter in the first target data needs to be restored to a corresponding fifth parameter based on the stored corresponding relation to obtain second target data, so that the second target data can be displayed in a preset input frame in a preset data format, thereby realizing a formatting function and improving the readability of the data.
Example III
Fig. 3 is a data processing apparatus according to a third embodiment of the present disclosure, where the apparatus includes: a first location information determination module 310, a first identification determination module 320, an element information storage module 330, and an encoded data generation module 340.
The first location information determining module 310 is configured to obtain a first parameter input in a preset input box at the current moment, and determine first location information corresponding to the first parameter; the first identifier determining module 320 is configured to determine a first identifier corresponding to a first parameter based on a parameter input mode corresponding to the first parameter, where the parameter input mode is a keyboard input mode or a click identifier frame insertion mode; the element information storage module 330 is configured to sequentially store the first location information and the first identifier as one element information in a first data set corresponding to the first parameter, so that an element arrangement sequence corresponding to each first parameter in the first data set is consistent with an appearance sequence of the first parameter in a preset input frame; the encoded data generating module 340 is configured to generate encoded data corresponding to input content formed by each parameter according to a data set corresponding to each parameter input in a preset input box when an input end instruction is detected.
Optionally, the first location information includes a parameter location start point and a parameter location end point corresponding to the first parameter; accordingly, the first location information determining module 310 is specifically configured to: acquiring a starting input position of a first parameter, and taking the starting input position as a parameter position starting point; and determining a parameter position end point corresponding to the first parameter according to the parameter position start point and the character length corresponding to the first parameter.
Optionally, the first identification determining module 320 is specifically configured to: when the parameter input mode corresponding to the first parameter is a keyboard input mode, directly determining the parameter name of the first parameter as a first identifier corresponding to the first parameter; when the current input mode corresponding to the first parameter is a click identification frame insertion mode, determining a first identification corresponding to the first parameter currently clicked based on a preset mapping relation between each parameter and the identification.
Optionally, the element information storage module 330 is specifically configured to:
if the first data set corresponding to the first parameter does not exist, the first data set is created, and the first position information and the first identifier are used as element information and stored into the created first data set; if the first data set corresponding to the first parameter exists, determining a first element position corresponding to the first position information according to the existing position information and the first position information in each existing element in the first data set, and storing the first position information and the first identifier as element information at the first element position in the first data set.
Optionally, the encoded data generating module 340 is specifically configured to:
determining a mark corresponding to each parameter in the preset input frame according to the data set corresponding to each parameter input in the preset input frame; and replacing each parameter input in the preset input box with a corresponding identifier to generate encoded data corresponding to the input content formed by each parameter.
Optionally, the apparatus further comprises:
the deleting processing module is used for determining second position information corresponding to a second parameter which is deleted currently when deleting the parameter in the preset input box before detecting the input ending instruction; and determining a second element position where the second position information is located in the second data set corresponding to the second parameter, and deleting the element information stored in the second element position to update the second data set.
Optionally, the apparatus further comprises:
the position updating module is used for detecting whether a third parameter with changed position exists when the first parameter is input in a preset input box before an input ending instruction is detected;
if yes, determining third position information of the third parameter before position change and fourth position information after position change;
And in a third data set corresponding to the third parameter, determining a third element position where the third position information is located, and updating the third position information stored in the third element position into fourth position information.
Optionally, the apparatus further comprises:
the display module is used for displaying the first parameter in a first display mode in the preset input frame when the first parameter is input in the preset input frame and the parameter input mode corresponding to the first parameter is a keyboard input mode; when the parameter input mode corresponding to the first parameter is a click identification frame insertion mode, the first parameter is displayed in a second display mode in a preset input frame.
Optionally, the apparatus further comprises:
the copying processing module is used for determining fifth position information corresponding to each fourth parameter if copying operation is detected to be carried out on at least one fourth parameter in the preset input frame; in a fourth parameter set corresponding to each fourth parameter, determining a fourth element position where each fifth position information is located, and determining prefix information corresponding to the fourth parameter according to element information stored in the fourth element position; and adding corresponding prefix information at the front end position of each fourth parameter, and taking the fourth parameter carrying the prefix information as a duplicated fourth parameter.
Optionally, the apparatus further comprises:
the copying processing module is used for acquiring prefix information corresponding to each fourth parameter if the fact that at least one fourth parameter is pasted in a preset input box is detected; according to each prefix information, determining a fourth identifier corresponding to each fourth parameter, and determining sixth position information corresponding to each fourth parameter after pasting; and sequentially storing the fourth identifier and the sixth position information serving as element information into a fourth data set corresponding to the fourth parameter.
Optionally, the apparatus further comprises:
the data formatting module is used for replacing each fifth parameter in the preset input frame with a sixth parameter based on a preset replacement rule if the formatting instruction is detected, obtaining data to be formatted, and storing the corresponding relation between the fifth parameter and the sixth parameter; formatting the data to be formatted to obtain first target data in a preset data format; based on the corresponding relation, replacing each sixth parameter in the first target data with a corresponding fifth parameter to obtain second target data in a preset data format, and displaying the second target data in a preset input box.
The data processing device provided by the embodiment of the disclosure can execute the data processing method provided by any embodiment of the disclosure, and has the corresponding functional modules and beneficial effects of executing the data processing method.
It should be noted that each unit and module included in the above apparatus are only divided according to the functional logic, but not limited to the above division, so long as the corresponding functions can be implemented; in addition, the specific names of the functional units are also only for convenience of distinguishing from each other, and are not used to limit the protection scope of the embodiments of the present disclosure.
Example IV
Fig. 4 is a schematic structural diagram of an apparatus according to a fourth embodiment of the present disclosure. Devices in embodiments of the present disclosure may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), car terminals (e.g., car navigation terminals), etc., and stationary terminals such as digital TVs, desktop computers, etc. The apparatus shown in fig. 4 is merely an example, and should not be construed as limiting the functionality and scope of use of the embodiments of the present disclosure.
As shown in fig. 4, the apparatus 400 may include a processing device (e.g., a central processor, a graphics processor, etc.) 401 that may perform various appropriate actions and processes according to a program stored in a Read-Only Memory (ROM) 402 or a program loaded from a storage device 408 into a random access Memory (Random Access Memory, RAM) 403. In the RAM 403, various programs and data required for the operation of the device 400 are also stored. The processing device 401, the ROM 402, and the RAM 403 are connected to each other by a bus 404. An input/output (I/O) interface 405 is also connected to bus 404.
In general, the following devices may be connected to the I/O interface 405: input devices 406 including, for example, a touch screen, touchpad, keyboard, mouse, camera, microphone, accelerometer, gyroscope, etc.; an output device 407 including, for example, a Liquid Crystal Display (LCD), a speaker, a vibrator, and the like; storage 408 including, for example, magnetic tape, hard disk, etc.; and a communication device 409. The communication means 409 may allow the device 400 to communicate wirelessly or by wire with other devices to exchange data. While fig. 4 shows apparatus 400 having various devices, it is to be understood that not all illustrated devices are required to be implemented or provided. More or fewer devices may be implemented or provided instead.
In particular, according to embodiments of the present disclosure, the processes described above with reference to flowcharts may be implemented as computer software programs. For example, embodiments of the present disclosure include a computer program product comprising a computer program embodied on a computer readable medium, the computer program comprising program code for performing the method shown in the flowcharts. In such an embodiment, the computer program may be downloaded and installed from a network via communications device 409, or from storage 408, or from ROM 402. The above-described functions defined in the methods of the embodiments of the present disclosure are performed when the computer program is executed by the processing device 401.
The apparatus according to the embodiments of the present disclosure and the data processing method according to the foregoing embodiments belong to the same inventive concept, and technical details not described in detail in the embodiments of the present disclosure may be found in the foregoing embodiments, and the embodiments of the present disclosure have the same advantages of executing the data processing method.
Example five
The present disclosure provides a computer storage medium having stored thereon a computer program which, when executed by a processor, implements the data processing method provided by the above embodiments.
It should be noted that the computer readable medium described in the present disclosure may be a computer readable signal medium or a computer readable storage medium, or any combination of the two. The computer readable storage medium can be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or a combination of any of the foregoing. More specific examples of the computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, 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. In the context of this disclosure, a computer-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. In the present disclosure, however, the computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, with the computer-readable program code embodied therein. Such a propagated data signal may take any of a variety of forms, including, but not limited to, electro-magnetic, optical, or any suitable combination of the foregoing. A computer readable signal medium may also be any computer readable medium that is not a computer 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 computer readable medium may be transmitted using any appropriate medium, including but not limited to: electrical wires, fiber optic cables, RF (radio frequency), and the like, or any suitable combination of the foregoing.
In some implementations, the clients, servers may communicate using any currently known or future developed network protocol, such as HTTP (HyperText Transfer Protocol ), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), the internet (e.g., the internet), and peer-to-peer networks (e.g., ad hoc peer-to-peer networks), as well as any currently known or future developed networks.
The computer readable medium may be embodied in the apparatus; or may be present alone without being fitted into the device.
The computer readable medium carries one or more programs which, when executed by the apparatus, cause the apparatus to:
acquiring a first parameter input in a preset input box at the current moment, and determining first position information corresponding to the first parameter; determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier frame insertion mode; sequentially storing the first position information and the first identifier as element information into a first data set corresponding to the first parameter, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameter in the preset input frame; when an input ending instruction is detected, generating coded data corresponding to input contents formed by the parameters according to data sets corresponding to the parameters input in the preset input box.
Computer program code for carrying out operations of the present disclosure may be written in one or more programming languages, including, but not limited to, an object oriented programming language such as Java, smalltalk, C ++ 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 computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any kind of network, including a Local Area Network (LAN) or a Wide Area Network (WAN), or may be connected to an external computer (for example, through the Internet using an Internet service provider).
The flowcharts and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The units involved in the embodiments of the present disclosure may be implemented by means of software, or may be implemented by means of hardware. Wherein the name of the unit does not constitute a limitation of the unit itself in some cases, for example, the editable content display unit may also be described as an "editing unit".
The functions described above herein may be performed, at least in part, by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: a Field Programmable Gate Array (FPGA), an Application Specific Integrated Circuit (ASIC), an Application Specific Standard Product (ASSP), a system on a chip (SOC), a Complex Programmable Logic Device (CPLD), and the like.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. The machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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.
According to one or more embodiments of the present disclosure, there is provided a data processing method, the method comprising:
acquiring a first parameter input in a preset input box at the current moment, and determining first position information corresponding to the first parameter;
determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier frame insertion mode;
sequentially storing the first position information and the first identifier as element information into a first data set corresponding to the first parameter, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameter in the preset input frame;
when an input ending instruction is detected, generating coded data corresponding to input contents formed by the parameters according to data sets corresponding to the parameters input in the preset input box.
According to one or more embodiments of the present disclosure, there is provided a data processing method [ example two ] further comprising:
optionally, the first location information includes a parameter location start point and a parameter location end point corresponding to the first parameter;
Correspondingly, determining the first position information corresponding to the first parameter includes:
acquiring a start input position of the first parameter, and taking the start input position as a parameter position starting point;
and determining a parameter position end point corresponding to the first parameter according to the parameter position start point and the character length corresponding to the first parameter.
According to one or more embodiments of the present disclosure, there is provided a data processing method [ example three ], further comprising:
optionally, determining the first identifier corresponding to the first parameter based on the parameter input mode corresponding to the first parameter includes:
when the parameter input mode corresponding to the first parameter is a keyboard input mode, directly determining the parameter name of the first parameter as a first identifier corresponding to the first parameter;
when the current input mode corresponding to the first parameter is a click identification frame insertion mode, determining a first identification corresponding to the first parameter clicked currently based on a preset mapping relation between each parameter and the identification.
According to one or more embodiments of the present disclosure, there is provided a data processing method [ example four ] further comprising:
Optionally, the first location information and the first identifier are sequentially stored in a first data set corresponding to the first parameter as element information, so that an element arrangement sequence corresponding to each first parameter in the first data set is consistent with an appearance sequence of the first parameter in the preset input frame, including:
if the first data set corresponding to the first parameter does not exist, the first data set is created, the first position information and the first identifier are used as element information, and the element information is stored in the created first data set;
if the first data set corresponding to the first parameter exists, determining a first element position corresponding to the first position information according to the existing position information and the first position information in each existing element in the first data set, and storing the first position information and the first identification as element information at the first element position in the first data set.
According to one or more embodiments of the present disclosure, there is provided a data processing method [ example five ], further comprising:
optionally, generating, according to the data set corresponding to each parameter input in the preset input box, encoded data corresponding to input content formed by each parameter includes:
Determining the identification corresponding to each parameter in the preset input frame according to the data set corresponding to each parameter input in the preset input frame;
and replacing each parameter input in the preset input box with a corresponding identifier to generate encoded data corresponding to the input content formed by each parameter.
According to one or more embodiments of the present disclosure, there is provided a data processing method [ example six ] further comprising:
optionally, before detecting the input end instruction, the method further includes:
when deleting the parameters in the preset input box is detected, determining second position information corresponding to the second parameters which are deleted currently;
and determining a second element position where the second position information is located in a second data set corresponding to the second parameter, and deleting the element information stored in the second element position to update the second data set.
According to one or more embodiments of the present disclosure, there is provided a data processing method [ example seventh ], further comprising:
optionally, before detecting the input end instruction, the method further includes:
detecting whether a third parameter with a changed position exists when the first parameter is input in a preset input box;
If yes, determining third position information before position change and fourth position information after position change of the third parameter;
and in a third data set corresponding to the third parameter, determining a third element position where the third position information is located, and updating the third position information stored in the third element position into the fourth position information.
According to one or more embodiments of the present disclosure, there is provided a data processing method [ example eight ], further comprising:
optionally, when the first parameter is input in the preset input box, the method further includes:
when the parameter input mode corresponding to the first parameter is a keyboard input mode, displaying the first parameter in a first display mode in the preset input frame;
and when the parameter input mode corresponding to the first parameter is a click identification frame insertion mode, displaying the first parameter in the preset input frame in a second display mode.
According to one or more embodiments of the present disclosure, there is provided a data processing method, further comprising:
optionally, the method further comprises:
if at least one fourth parameter in the preset input box is detected to be subjected to copying operation, determining fifth position information corresponding to each fourth parameter;
Determining a fourth element position of each piece of fifth position information in a fourth parameter set corresponding to each fourth parameter, and determining prefix information corresponding to the fourth parameter according to element information stored in the fourth element position;
and adding corresponding prefix information at the front end position of each fourth parameter, and taking the fourth parameter carrying the prefix information as a duplicated fourth parameter.
According to one or more embodiments of the present disclosure, there is provided a data processing method, further comprising:
optionally, the method further comprises:
if it is detected that pasting operation is carried out on at least one fourth parameter in a preset input box, prefix information corresponding to each fourth parameter is obtained;
according to each prefix information, determining a fourth identifier corresponding to each fourth parameter, and determining sixth position information corresponding to each pasted fourth parameter;
and sequentially storing the fourth identifier and the sixth position information serving as element information into a fourth data set corresponding to the fourth parameter.
According to one or more embodiments of the present disclosure, there is provided a data processing method [ example eleven ], further comprising:
Optionally, the method further comprises:
if the formatting instruction is detected, replacing each fifth parameter in a preset input box with a sixth parameter based on a preset replacement rule, obtaining data to be formatted, and storing a corresponding relation between the fifth parameter and the sixth parameter;
formatting the data to be formatted to obtain first target data in a preset data format;
and based on the corresponding relation, replacing each sixth parameter in the first target data with a corresponding fifth parameter to obtain second target data in the preset data format, and displaying the second target data in the preset input box.
According to one or more embodiments of the present disclosure, there is provided a data processing apparatus [ example twelve ], the apparatus comprising:
the first position information determining module is used for acquiring a first parameter input in a preset input box at the current moment and determining first position information corresponding to the first parameter;
the first identification determining module is used for determining a first identification corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identification frame insertion mode;
The element information storage module is used for sequentially storing the first position information and the first identifier as element information into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameters in the preset input frame;
and the coded data generation module is used for generating coded data corresponding to input contents formed by the parameters according to the data set corresponding to the parameters input in the preset input box when the input ending instruction is detected.
The foregoing description is only of the preferred embodiments of the present disclosure and description of the principles of the technology being employed. It will be appreciated by persons skilled in the art that the scope of the disclosure referred to in this disclosure is not limited to the specific combinations of features described above, but also covers other embodiments which may be formed by any combination of features described above or equivalents thereof without departing from the spirit of the disclosure. Such as those described above, are mutually substituted with the technical features having similar functions disclosed in the present disclosure (but not limited thereto).
Moreover, although operations are depicted in a particular order, this should not be understood as requiring that such operations be performed in the particular order shown or in sequential order. In certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limiting the scope of the present disclosure. Certain features that are described in the context of separate embodiments can also be implemented in combination in a single embodiment. Conversely, various features that are described in the context of a single embodiment can also be implemented in multiple embodiments separately or in any suitable subcombination.
Although the subject matter has been described in language specific to structural features and/or methodological acts, it is to be understood that the subject matter defined in the appended claims is not necessarily limited to the specific features or acts described above. Rather, the specific features and acts described above are example forms of implementing the claims.

Claims (13)

1. A method of data processing, comprising:
acquiring a first parameter input in a preset input box at the current moment, and determining first position information corresponding to the first parameter;
Determining a first identifier corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identifier frame insertion mode;
sequentially storing the first position information and the first identifier as element information into a first data set corresponding to the first parameter, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameter in the preset input frame;
when an input ending instruction is detected, generating coded data corresponding to input contents formed by all parameters according to data sets corresponding to all parameters input in the preset input box;
the determining, based on the parameter input mode corresponding to the first parameter, a first identifier corresponding to the first parameter includes:
when the parameter input mode corresponding to the first parameter is a keyboard input mode, directly determining the parameter name of the first parameter as a first identifier corresponding to the first parameter;
when the current input mode corresponding to the first parameter is a click identification frame insertion mode, determining a first identification corresponding to the first parameter clicked currently based on a preset mapping relation between each parameter and the identification.
2. The method of claim 1, wherein the first location information includes a parameter location start point and a parameter location end point corresponding to the first parameter;
correspondingly, determining the first position information corresponding to the first parameter includes:
acquiring a start input position of the first parameter, and taking the start input position as a parameter position starting point;
and determining a parameter position end point corresponding to the first parameter according to the parameter position start point and the character length corresponding to the first parameter.
3. The method according to claim 1, wherein sequentially storing the first location information and the first identifier as one element information in a first data set corresponding to the first parameter, so that an element arrangement sequence corresponding to each first parameter in the first data set is consistent with a sequence in which the first parameter appears in the preset input box, includes:
if the first data set corresponding to the first parameter does not exist, the first data set is created, the first position information and the first identifier are used as element information, and the element information is stored in the created first data set;
If the first data set corresponding to the first parameter exists, determining a first element position corresponding to the first position information according to the existing position information and the first position information in each existing element in the first data set, and storing the first position information and the first identification as element information at the first element position in the first data set.
4. The method according to claim 1, wherein generating encoded data corresponding to input content constituted by each parameter according to the data set corresponding to each parameter input in the preset input box comprises:
determining the identification corresponding to each parameter in the preset input frame according to the data set corresponding to each parameter input in the preset input frame;
and replacing each parameter input in the preset input box with a corresponding identifier to generate encoded data corresponding to the input content formed by each parameter.
5. The method of claim 1, further comprising, prior to detecting the input end instruction:
when deleting the parameters in the preset input box is detected, determining second position information corresponding to the second parameters which are deleted currently;
And determining a second element position where the second position information is located in a second data set corresponding to the second parameter, and deleting the element information stored in the second element position to update the second data set.
6. The method of claim 1, further comprising, prior to detecting the input end instruction:
detecting whether a third parameter with a changed position exists when the first parameter is input in a preset input box;
if yes, determining third position information before position change and fourth position information after position change of the third parameter;
and in a third data set corresponding to the third parameter, determining a third element position where the third position information is located, and updating the third position information stored in the third element position into the fourth position information.
7. The method of claim 1, wherein when the first parameter is input in the preset input box, further comprising:
when the parameter input mode corresponding to the first parameter is a keyboard input mode, displaying the first parameter in a first display mode in the preset input frame;
And when the parameter input mode corresponding to the first parameter is a click identification frame insertion mode, displaying the first parameter in the preset input frame in a second display mode.
8. The method according to claim 1, wherein the method further comprises:
if at least one fourth parameter in the preset input box is detected to be subjected to copying operation, determining fifth position information corresponding to each fourth parameter;
determining a fourth element position of each piece of fifth position information in a fourth parameter set corresponding to each fourth parameter, and determining prefix information corresponding to the fourth parameter according to element information stored in the fourth element position;
and adding corresponding prefix information at the front end position of each fourth parameter, and taking the fourth parameter carrying the prefix information as a duplicated fourth parameter.
9. The method of claim 8, wherein the method further comprises:
if it is detected that pasting operation is carried out on at least one fourth parameter in a preset input box, prefix information corresponding to each fourth parameter is obtained;
according to each prefix information, determining a fourth identifier corresponding to each fourth parameter, and determining sixth position information corresponding to each pasted fourth parameter;
And sequentially storing the fourth identifier and the sixth position information serving as element information into a fourth data set corresponding to the fourth parameter.
10. The method according to any one of claims 1-9, wherein the method further comprises:
if the formatting instruction is detected, replacing each fifth parameter in a preset input box with a sixth parameter based on a preset replacement rule, obtaining data to be formatted, and storing a corresponding relation between the fifth parameter and the sixth parameter;
formatting the data to be formatted to obtain first target data in a preset data format;
and based on the corresponding relation, replacing each sixth parameter in the first target data with a corresponding fifth parameter to obtain second target data in the preset data format, and displaying the second target data in the preset input box.
11. A data processing apparatus, comprising:
the first position information determining module is used for acquiring a first parameter input in a preset input box at the current moment and determining first position information corresponding to the first parameter;
the first identification determining module is used for determining a first identification corresponding to the first parameter based on a parameter input mode corresponding to the first parameter, wherein the parameter input mode is a keyboard input mode or a click identification frame insertion mode;
The element information storage module is used for sequentially storing the first position information and the first identifier as element information into a first data set corresponding to the first parameters, so that the element arrangement sequence corresponding to each first parameter in the first data set is consistent with the sequence of the first parameters in the preset input frame;
the coded data generation module is used for generating coded data corresponding to input contents formed by all parameters according to the data set corresponding to all the parameters input in the preset input box when an input ending instruction is detected;
the first identification determining module is specifically configured to: when the parameter input mode corresponding to the first parameter is a keyboard input mode, directly determining the parameter name of the first parameter as a first identifier corresponding to the first parameter;
when the current input mode corresponding to the first parameter is a click identification frame insertion mode, determining a first identification corresponding to the first parameter currently clicked based on a preset mapping relation between each parameter and the identification.
12. An apparatus, the apparatus comprising:
one or more processors;
Storage means for storing one or more programs,
the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the data processing method of any of claims 1-10.
13. A storage medium containing computer executable instructions which, when executed by a computer processor, are for performing the data processing method of any of claims 1-10.
CN201910838329.8A 2019-09-05 2019-09-05 Data processing method, device, equipment and storage medium Active CN110543243B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910838329.8A CN110543243B (en) 2019-09-05 2019-09-05 Data processing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910838329.8A CN110543243B (en) 2019-09-05 2019-09-05 Data processing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN110543243A CN110543243A (en) 2019-12-06
CN110543243B true CN110543243B (en) 2023-05-02

Family

ID=68712586

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910838329.8A Active CN110543243B (en) 2019-09-05 2019-09-05 Data processing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110543243B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112965722B (en) * 2021-03-03 2022-04-08 深圳华大九天科技有限公司 Verilog-A model optimization method, electronic device and computer readable storage medium

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5182709A (en) * 1986-03-31 1993-01-26 Wang Laboratories, Inc. System for parsing multidimensional and multidirectional text into encoded units and storing each encoded unit as a separate data structure
CN103336583B (en) * 2013-06-18 2016-08-24 中国联合网络通信集团有限公司 Projected keyboard and projected keyboard character code determine method
CN116185209A (en) * 2014-08-11 2023-05-30 张锐 Processing, data splitting and merging and coding and decoding processing method for handwriting input characters

Also Published As

Publication number Publication date
CN110543243A (en) 2019-12-06

Similar Documents

Publication Publication Date Title
CN111274760B (en) Rich text data processing method and device, electronic equipment and computer storage medium
CN110969012B (en) Text error correction method and device, storage medium and electronic equipment
CN110781658B (en) Resume analysis method, resume analysis device, electronic equipment and storage medium
CN111104479A (en) Data labeling method and device
JP2021111414A (en) Method and apparatus for processing information, electronic device, computer-readable storage medium, and program
CN115079872B (en) Document processing method, device, equipment and medium
CN111552640A (en) Code detection method, device, equipment and storage medium
CN112163102B (en) Search content matching method and device, electronic equipment and storage medium
US20230409816A1 (en) Document update method and apparatus, device, and medium
CN110543243B (en) Data processing method, device, equipment and storage medium
CN112783482B (en) Visual form generation method, device, equipment and storage medium
CN112507670A (en) Text editing method and device, electronic equipment and storage medium
CN111708680A (en) Error reporting information analysis method and device, electronic equipment and storage medium
CN115061601B (en) Electronic document processing method, device, terminal and storage medium
CN112163104B (en) Method, device, electronic equipment and storage medium for searching target content
CN111641690B (en) Session message processing method and device and electronic equipment
CN110750268B (en) File cleaning method and device, computer readable storage medium and electronic equipment
CN112163103A (en) Method, device, electronic equipment and storage medium for searching target content
CN111737040A (en) Program code repairing method and device
CN111143355A (en) Data processing method and device
CN110826305A (en) Data processing method and device for online form, terminal and server
CN110780898A (en) Page data upgrading method and device and electronic equipment
CN113239257B (en) Information processing method, information processing device, electronic equipment and storage medium
CN113779952B (en) Text processing method and device and electronic equipment
CN110874444B (en) URL conversion model building method and device 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
GR01 Patent grant
GR01 Patent grant