[go: up one dir, main page]

CN112732100A - Information processing method and device and electronic equipment - Google Patents

Information processing method and device and electronic equipment Download PDF

Info

Publication number
CN112732100A
CN112732100A CN202110081361.3A CN202110081361A CN112732100A CN 112732100 A CN112732100 A CN 112732100A CN 202110081361 A CN202110081361 A CN 202110081361A CN 112732100 A CN112732100 A CN 112732100A
Authority
CN
China
Prior art keywords
character string
character
input
string
target
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110081361.3A
Other languages
Chinese (zh)
Inventor
杜莉莉
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication 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 Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110081361.3A priority Critical patent/CN112732100A/en
Publication of CN112732100A publication Critical patent/CN112732100A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING OR CALCULATING; 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 OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/90Details of database functions independent of the retrieved data types
    • G06F16/903Querying
    • G06F16/90335Query processing
    • G06F16/90344Query processing by using string matching techniques
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Databases & Information Systems (AREA)
  • Computational Linguistics (AREA)
  • Data Mining & Analysis (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The application discloses an information processing method, an information processing device and electronic equipment, wherein the method comprises the following steps: under the condition that a first input of a target function control related to an input control is received, acquiring a first character string and attribute information of the input control; determining a target character input format matched with the attribute information; under the condition that the first character string does not meet the target character input format, adjusting the first character string to obtain a second character string meeting the target character input format; populating the second string to the input control. The embodiment of the application can simplify the operation of a user.

Description

Information processing method and device and electronic equipment
Technical Field
The application belongs to the technical field of communication, and particularly relates to an information processing method and device and electronic equipment.
Background
With the rapid development of electronic equipment and the acceleration of life rhythm of people, when information is input aiming at an input control such as an input box, some filling input modes are generally provided for a user, for example, when the user makes an electronic invoice on the electronic equipment, information such as tax receiving numbers and the like can be pasted into the input box of an application interface of the electronic equipment, and for example, when a verification code is input on the electronic equipment, the verification code can be automatically filled.
However, in some application scenarios, the filled information may have errors, and in this case, the user is required to manually correct the information, which results in a complicated operation.
Disclosure of Invention
The embodiment of the application aims to provide an information processing method, an information processing device and electronic equipment, and the problem that filled information in the prior art is possibly wrong and operation is complex can be solved.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides an information processing method, including:
under the condition that a first input of a target function control related to an input control is received, acquiring a first character string and attribute information of the input control;
determining a target character input format matched with the attribute information;
under the condition that the first character string does not meet the target character input format, adjusting the first character string to obtain a second character string meeting the target character input format;
populating the second string to the input control.
In a second aspect, an embodiment of the present application provides an information processing apparatus, including:
the system comprises an acquisition module, a display module and a control module, wherein the acquisition module is used for acquiring a first character string and attribute information of an input control under the condition of receiving first input of a target function control associated with the input control;
the determining module is used for determining a target character input format matched with the attribute information;
the adjusting module is used for adjusting the first character string under the condition that the first character string does not meet the target character input format to obtain a second character string meeting the target character input format;
and the filling module is used for filling the second character string into the input control.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the application, a first character string and attribute information of an input control are obtained under the condition that a first input of a target function control associated with the input control is received; determining a target character input format matched with the attribute information; and under the condition that the first character string does not meet the target character input format, automatically adjusting the first character string, and filling the adjusted second character string meeting the target character input format into the input control, so that the situation that the filled information has errors can be avoided, and the operation of a user can be simplified.
Drawings
FIG. 1 is a flow chart of an information processing method provided by an embodiment of the present application;
fig. 2 is a block diagram of an information processing apparatus provided in an embodiment of the present application;
FIG. 3 is a block diagram of an electronic device provided by an embodiment of the present application;
fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The information processing provided by the embodiments of the present application is described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
Referring to fig. 1, fig. 1 is a flowchart of an information processing method provided in an embodiment of the present application, and as shown in fig. 1, the method includes the following steps:
step 101, under the condition that a first input to a target function control associated with an input control is received, acquiring a first character string and attribute information of the input control.
Wherein the first input is used for information filling of the input control.
In this step, the input control is a control for inputting text information, and the first input is used for inputting text information to the input control.
The first input to the target function control associated with the input control may be referred to as a shortcut input, where the shortcut input refers to filling text information that needs to be input by a user into the input control through one operation.
For example, the shortcut input may be a paste input, specifically may be an input to a paste function control corresponding to the input control, and correspondingly, the target function control may be a paste function control.
For another example, the shortcut input may be a fill input, specifically may be an input to a fill function control associated with the input control, and correspondingly, the target function control may be a fill function control.
The first input may be a voice input, a somatosensory input, or a touch input. Wherein the touch input may include: single-click input, double-click input, multi-click input, long-press input, drag input, slide input, and the like. In the following embodiments, the first input will be described by taking a single-click input as an example.
The first character string may be a character string copied on the clipboard, or may be text information displayed in a preset area of a target panel, such as an input panel, and is not specifically limited herein.
The attribute information of the input control may include various kinds, which may be specifically used to limit the format of the inputted text information. For example, the input control has a maximum input character length limit, and accordingly, the input character string is not allowed to exceed the maximum input character length of the input control, and the input character string may not be displayed on the input control when the input character string exceeds the maximum input character length of the input control.
For another example, the input control may request that the input text information does not include a characteristic character, where the characteristic character may refer to a space character, a punctuation character, and the like, and accordingly, the input character string is not allowed to include a space character, and in a case where the input character string includes a characteristic character, the input control may automatically detect that the character string is an erroneous character string.
For example, the input control only allows inputting a certain type or a certain types of character strings, such as only allowing inputting character strings of letter type and number type.
In an optional implementation manner, when a click input of a paste function control associated with an input control is received, a character string on a clipboard is acquired as a first character string to be input, and attribute information of the input control is acquired at the same time.
In another optional implementation manner, when a click input of a fill function control associated with an input control is received, a character string of a preset area on an input panel is acquired as a first character string to be input, and attribute information of the input control is acquired at the same time.
The attribute information of the input control may be obtained in various manners, for example, obtaining the attribute information of the input control stored in advance, or determining the attribute information of the input control by detecting the attribute value of the input control.
For example, detecting the attribute value of the input control, determining whether the input control has a limitation of the maximum input character length, and determining whether the input control requires that the input text information is continuous, and no space character is allowed to be included therein.
And step 102, determining the input format of the target character matched with the attribute information.
In this step, a target character input format matching the attribute information may be determined according to the attribute information. Optionally, the target character input format includes at least one of:
the length of the character string is less than or equal to a preset threshold value;
space characters are not included in the character string.
Specifically, under the condition that the attribute information has the maximum input character length limit, the input format of the target character matched with the attribute information is that the length of the character string is smaller than or equal to a preset threshold value.
And under the condition that the attribute information requires that the input text information does not include the characteristic characters, the input format of the target characters matched with the attribute information is the input format of the characters without the characteristic characters such as space characters.
And 103, under the condition that the first character string does not meet the target character input format, adjusting the first character string to obtain a second character string meeting the target character input format.
In this step, the format of the first character string is detected, whether the first character string satisfies the target character input format is determined, and the first character string needs to be adjusted when the format of the first character string does not match the target character input format.
In an optional implementation manner, the character length of the first character string may be detected, and when the character length of the first character string is greater than the character length specified in the target character input format, the first character string needs to be adjusted, so as to finally obtain a second character string having the character length specified in the target character input format.
In another alternative embodiment, the character type of the first character string may be detected, and in the case that the first character string includes a special character and a space character, the first character string needs to be adjusted, and finally, a second character string that does not include the special character, such as the space character, is obtained.
And 104, filling the second character string into the input control.
In the embodiment, a first character string and attribute information of an input control are acquired under the condition that a first input of a target function control associated with the input control is received; determining a target character input format matched with the attribute information; and under the condition that the first character string does not meet the target character input format, automatically adjusting the first character string, and filling the adjusted second character string meeting the target character input format into the input control, so that the situation that the filled information has errors can be avoided, and the operation of a user can be simplified.
Optionally, based on the first embodiment, the target character input format includes that the character string does not include a space character, and the step 103 specifically includes:
and under the condition that the first character string comprises space characters, removing the space characters in the first character string to obtain the second character string.
The embodiment can be applied to an application scene of pasting text information, for example, when an electronic invoice is issued, a tax receiving number is pasted on an application interface of the electronic invoice. In the application scenario, there may be a space character included in the first character string copied on the clipboard, and if the space character is directly input without being processed during pasting, there may be an error in inputting the tax payment number into the input control.
At this time, in a case where a first input to a target function control associated with an input control is received, whether the input control has a maximum input character length limitation may be detected, and in a case where the maximum input character length limitation exists, a space character in the first character string may be removed to obtain the second character string in a case where the first character string includes a space character.
Under the condition that the input control is not limited by the maximum input character length, the accuracy of the first character string can be detected according to the target character input format, if the target character input format is that the character string is not allowed to include a space character, the first character string does not include the space character, namely the first character string is accurate, and does not include the space character, namely the first character string is inaccurate. And under the condition that the first character string comprises space characters, removing the space characters in the first character string to obtain the second character string. On the other hand, if the first character string does not include a space character, the input may be performed directly.
In the embodiment, the space characters in the first character string are removed to obtain the second character string, and the second character string is input into the input control, so that the space characters do not need to be manually deleted, and the operation of a user can be simplified.
Optionally, based on the first embodiment, the target character input format includes that the length of the character string is less than or equal to a preset threshold, where step 103 specifically includes:
under the condition that the character length of the first character string is larger than the preset threshold value, performing equal-interval segmentation on the first character string according to the length of the character string corresponding to the target character input format;
under the condition that the character content of N strings of character strings obtained by equally dividing the first character string is the same, eliminating a target character in the first character string to obtain the second character string, wherein N is a positive integer greater than 1;
the target character is a character of any (N-1) string character string in the N string character strings with the same character content.
The embodiment can be applied to an application scenario of text information filling, such as verification code filling. In the application scenario, there may be a case where the first character string to be filled includes two strings or even multiple strings of verification codes, and if the first character string to be filled is directly filled without being processed during pasting, the verification code filled into the input control may be repeatedly filled.
At this time, under the condition that the first input of the target function control related to the input control is received, the character length matched with the input control can be detected to be 4 bits or 6 bits, and under the condition that the character length of the first character string is equal to the character length matched with the input control, the first character string can be directly input.
When the character length of the first character string is greater than the character length matched with the input control, the first character string may be divided at equal intervals according to the length of the character string corresponding to the target character input format, for example, the character length matched with the input control, that is, the length of the character string corresponding to the target character input format is 4 bits, the first character string is "34233423", and the character length is greater than the character length matched with the input control, the first character string is divided into two character strings, that is, "3423" and "3423", respectively. For another example, the character length matched by the input control, that is, the length of the character string corresponding to the target character input format is 6 bits, the first character string is "342356342356342356", and the character length is greater than the character length matched by the input control, and the character length is divided into three character strings, that is, "342356", "342356", and "342356", according to the character length of 6 bits.
And performing content matching on the N strings of characters, and under the condition that the character contents of the N strings of characters are the same, indicating that the N strings of characters may have repeated padding, and removing any (N-1) string of characters in the N strings of characters in the first string of characters to obtain a second string of characters, for example, removing the second half of "34233423" to obtain a second string of characters "3423". For another example, the next two strings in "342356342356342356" are removed to obtain the second string "342356".
In the embodiment, the second character string is obtained by removing the repeated character string in the first character string and is input into the input control, so that the character string which is repeatedly filled is not required to be manually deleted, and the operation of a user can be simplified.
Optionally, based on the first embodiment, the step 101 specifically includes:
under the condition that a first input of a target function control related to an input control is received, acquiring a first character string, and determining whether the first character string is a character string of a preset type;
and acquiring the attribute information of the input control under the condition that the first character string is a preset type character string.
In this embodiment, the first character string is obtained when the first input to the target function control associated with the input control is received, and after the first character string is obtained, whether the first character string is a preset type of character string may be determined according to the pre-identified target information. The preset type of character string refers to a character string having a specific rule, such as a tax number and a verification code, in terms of the tax number, a space character is not allowed to be included therein, and generally consists of a specified number of digits.
In an optional implementation manner, the application scenario may be a paste application scenario, and when a copy operation of a user is detected, an automatic screenshot may be performed, specifically, an interface for the user to perform the copy operation is screenshot to obtain a copy interface, text information in the copy interface is analyzed by an optical character recognition technology, and when the copy interface includes a typeface such as a tax payment number or a tax payment unit, it may be determined that target information is recognized. Alternatively, when entry into a target-pasting interface, such as an application interface for electronic invoicing, is detected, it may be determined that target information is identified.
In another alternative embodiment, the application scenario may be a padding application scenario, and when a message including a verification code is detected, it may be determined that the target information is identified.
And then, under the condition that a first input to a target function control related to the input control is received, if target information is identified in advance, determining that the first character string is a character string of a preset type, and if the target information is not identified in advance, determining that the first character string is not the character string of the preset type.
And acquiring the attribute information of the input control under the condition that the first character string is a preset type character string, and directly filling under the condition that the first character string is not the preset type character string.
In this embodiment, by determining whether the first character string is a preset type character string, and acquiring the attribute information of the input control when the first character string is the preset type character string, the process of processing the text information can be simplified while simplifying the user operation, and the information filling efficiency can be improved.
In the information processing method provided in the embodiment of the present application, the execution main body may be an information processing apparatus, or a control module in the information processing apparatus for executing the information processing method. In the embodiment of the present application, an information processing apparatus executing an information processing method is taken as an example, and the information processing apparatus provided in the embodiment of the present application is described.
Referring to fig. 2, fig. 2 is a structural diagram of an information processing apparatus according to an embodiment of the present application, and as shown in fig. 2, an information processing apparatus 200 includes:
the obtaining module 201 is configured to obtain a first character string and attribute information of an input control when a first input to a target function control associated with the input control is received;
a determining module 202, configured to determine a target character input format matching the attribute information;
the adjusting module 203 is configured to adjust the first character string to obtain a second character string meeting the target character input format when the first character string does not meet the target character input format;
and a filling module 204, configured to input the second character string to the input control.
Optionally, the target character input format includes at least one of:
the length of the character string is less than or equal to a preset threshold value;
space characters are not included in the character string.
Optionally, the target character input format includes that the character string does not include a space character, and the adjusting module 203 is specifically configured to, under the condition that the first character string includes a space character, remove the space character in the first character string to obtain the second character string.
Optionally, the target character input format includes that the length of a character string is less than or equal to a preset threshold, and the adjusting module 203 is specifically configured to, when the length of the character of the first character string is greater than the preset threshold, divide the first character string at equal intervals according to the length of the character string corresponding to the target character input format; under the condition that the character content of N strings of character strings obtained by equally dividing the first character string is the same, eliminating a target character in the first character string to obtain the second character string, wherein N is a positive integer greater than 1; the target character is a character of any (N-1) string character string in the N string character strings with the same character content.
Optionally, the obtaining module 201 is specifically configured to, in a case that a first input to a target function control associated with an input control is received, obtain a first character string, and determine whether the first character string is a character string of a preset type; and acquiring the attribute information of the input control under the condition that the first character string is a preset type character string.
In this embodiment, the obtaining module 201 obtains a first character string and attribute information of an input control when receiving a first input to a target function control associated with the input control, the determining module 202 determines a target character input format matched with the attribute information, the adjusting module 203 automatically adjusts the first character string when the first character string does not satisfy the target character input format, and the filling module 204 fills a second character string which satisfies the target character input format and is obtained by adjustment to the input control, so that an error in the filled information can be avoided, a user does not need to manually correct the information, and the user's operation can be simplified.
The information processing apparatus in the embodiment of the present application may be an apparatus, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The information processing apparatus in the embodiment of the present application may be an apparatus having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The information processing apparatus provided in the embodiment of the present application can implement each process implemented in the method embodiment of fig. 1, and is not described here again to avoid repetition.
Optionally, referring to fig. 3, fig. 3 is a structural diagram of an electronic device according to an embodiment of the present application, as shown in fig. 3, an electronic device according to an embodiment of the present application is further provided, and includes a processor 301, a memory 302, and a program or an instruction stored in the memory 302 and capable of running on the processor 301, and when the program or the instruction is executed by the processor 301, the program or the instruction implements each process of the information processing method embodiment, and can achieve the same technical effect, and is not described herein again to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 4 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 400 includes, but is not limited to: radio unit 401, network module 402, audio output unit 403, input unit 404, sensor 405, display unit 406, user input unit 407, interface unit 408, memory 409, and processor 410.
Those skilled in the art will appreciate that the electronic device 400 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 410 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 4 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 410 is configured to, in a case that a first input to a target function control associated with an input control is received, obtain a first character string and attribute information of the input control; determining a target character input format matched with the attribute information; under the condition that the first character string does not meet the target character input format, adjusting the first character string to obtain a second character string meeting the target character input format; populating the second string to the input control.
In this embodiment, the processor 410 obtains a first character string and attribute information of an input control when receiving a first input to a target function control associated with the input control; determining a target character input format matched with the attribute information; and under the condition that the first character string does not meet the target character input format, automatically adjusting the first character string, and filling the adjusted second character string meeting the target character input format into the input control, so that the situation that the filled information has errors can be avoided, manual correction by a user is not needed, and the operation of the user can be simplified.
Optionally, the target character input format includes that the character string does not include a space character, and the processor 410 is further configured to, in a case that the first character string includes a space character, reject the space character in the first character string to obtain the second character string.
Optionally, the target character input format includes that the length of a character string is less than or equal to a preset threshold, and the processor 410 is further configured to, when the length of the first character string is greater than the preset threshold, perform equal-interval segmentation on the first character string according to the length of the character string corresponding to the target character input format; under the condition that the character content of N strings of character strings obtained by equally dividing the first character string is the same, eliminating a target character in the first character string to obtain the second character string, wherein N is a positive integer greater than 1; the target character is a character of any (N-1) string character string in the N string character strings with the same character content.
Optionally, the processor 410 is further configured to, in a case that a first input to the target function control associated with the input control is received, obtain a first character string, and determine whether the first character string is a character string of a preset type; and acquiring the attribute information of the input control under the condition that the first character string is a preset type character string.
It should be understood that in the embodiment of the present application, the input Unit 404 may include a Graphics Processing Unit (GPU) 4041 and a microphone 4042, and the Graphics processor 4041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 406 may include a display panel 4061, and the display panel 4061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 407 includes a touch panel 4071 and other input devices 4072. A touch panel 4071, also referred to as a touch screen. The touch panel 4071 may include two parts, a touch detection device and a touch controller. Other input devices 4072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 409 may be used to store software programs as well as various data including, but not limited to, application programs and an operating system. The processor 410 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 410.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned information processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the information processing method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (12)

1.一种信息处理方法,其特征在于,包括:1. an information processing method, is characterized in that, comprises: 在接收到对输入控件关联的目标功能控件的第一输入的情况下,获取第一字符串和所述输入控件的属性信息;In the case of receiving the first input to the target function control associated with the input control, acquiring the first character string and the attribute information of the input control; 确定与所述属性信息匹配的目标字符输入格式;determining a target character input format matching the attribute information; 在所述第一字符串不满足所述目标字符输入格式的情况下,对所述第一字符串进行调整,得到满足所述目标字符输入格式的第二字符串;In the case that the first character string does not satisfy the target character input format, adjusting the first character string to obtain a second character string satisfying the target character input format; 将所述第二字符串填充至所述输入控件。Filling the input control with the second string. 2.根据权利要求1所述的方法,其特征在于,所述目标字符输入格式包括以下至少一项:2. The method according to claim 1, wherein the target character input format comprises at least one of the following: 字符串的长度小于或等于预设阈值;The length of the string is less than or equal to the preset threshold; 字符串中不包括空格字符。The string does not include space characters. 3.根据权利要求2所述的方法,其特征在于,所述目标字符输入格式包括字符串不包括空格字符,所述在所述第一字符串不满足所述目标字符输入格式的情况下,对所述第一字符串进行调整,得到满足所述目标字符输入格式的第二字符串包括:3. The method according to claim 2, wherein the target character input format comprises a character string that does not include space characters, and in the case that the first character string does not satisfy the target character input format, Adjusting the first character string to obtain a second character string satisfying the target character input format includes: 在所述第一字符串包括空格字符的情况下,剔除所述第一字符串中的空格字符,得到所述第二字符串。In the case that the first character string includes space characters, the space characters in the first character string are eliminated to obtain the second character string. 4.根据权利要求2所述的方法,其特征在于,所述目标字符输入格式包括字符串的长度小于或等于预设阈值,所述在所述第一字符串不满足所述目标字符输入格式的情况下,对所述第一字符串进行调整,得到满足所述目标字符输入格式的第二字符串包括:4. The method according to claim 2, wherein the target character input format comprises that the length of the character string is less than or equal to a preset threshold, and the first character string does not satisfy the target character input format In the case of , adjusting the first character string to obtain a second character string satisfying the target character input format includes: 在所述第一字符串的字符长度大于所述预设阈值的情况下,将所述第一字符串按照所述目标字符输入格式对应的字符串的长度进行等间隔分割;When the character length of the first character string is greater than the preset threshold, dividing the first character string at equal intervals according to the length of the character string corresponding to the target character input format; 在所述第一字符串等间隔分割获得的N串字符串的字符内容相同的情况下,剔除所述第一字符串中目标字符,得到所述第二字符串,所述N为大于1的正整数;Under the condition that the character contents of the N strings of strings obtained by dividing the first string at equal intervals are the same, remove the target characters in the first string to obtain the second string, where N is greater than 1 positive integer; 其中,所述目标字符为字符内容相同的所述N串字符串中任意(N-1)串字符串的字符。Wherein, the target character is a character of any (N-1) string of strings in the N strings of strings with the same character content. 5.根据权利要求1所述的方法,其特征在于,所述在接收到对输入控件关联的目标功能控件的第一输入的情况下,获取第一字符串和所述输入控件的属性信息包括:5. The method according to claim 1, wherein, in the case of receiving the first input to the target function control associated with the input control, acquiring the first character string and the attribute information of the input control comprises: : 在接收到对输入控件关联的目标功能控件的第一输入的情况下,获取第一字符串,并确定所述第一字符串是否为预设类型的字符串;In the case of receiving the first input to the target function control associated with the input control, acquiring a first character string, and determining whether the first character string is a character string of a preset type; 在所述第一字符串为预设类型的字符串的情况下,获取所述输入控件的属性信息。In the case that the first character string is a character string of a preset type, the attribute information of the input control is acquired. 6.一种信息处理装置,其特征在于,包括:6. An information processing device, comprising: 获取模块,用于在接收到对输入控件关联的目标功能控件的第一输入的情况下,获取第一字符串和所述输入控件的属性信息;an acquisition module, configured to acquire a first character string and attribute information of the input control in the case of receiving the first input to the target function control associated with the input control; 确定模块,用于确定与所述属性信息匹配的目标字符输入格式;A determination module, used for determining the input format of the target character matched with the attribute information; 调整模块,用于在所述第一字符串不满足所述目标字符输入格式的情况下,对所述第一字符串进行调整,得到满足所述目标字符输入格式的第二字符串;an adjustment module, configured to adjust the first character string when the first character string does not meet the target character input format to obtain a second character string that meets the target character input format; 填充模块,用于将所述第二字符串填充至所述输入控件。A filling module, used for filling the second character string into the input control. 7.根据权利要求6所述的装置,其特征在于,所述目标字符输入格式包括以下至少一项:7. The apparatus according to claim 6, wherein the target character input format comprises at least one of the following: 字符串的长度小于或等于预设阈值;The length of the string is less than or equal to the preset threshold; 字符串中不包括空格字符。Space characters are not included in the string. 8.根据权利要求7所述的装置,其特征在于,所述目标字符输入格式包括字符串不包括空格字符,所述调整模块,具体用于在所述第一字符串包括空格字符的情况下,剔除所述第一字符串中的空格字符,得到所述第二字符串。8 . The device according to claim 7 , wherein the target character input format includes a character string that does not include space characters, and the adjustment module is specifically configured to be used when the first character string includes space characters. 8 . , remove the space characters in the first string to obtain the second string. 9.根据权利要求7所述的装置,其特征在于,所述目标字符输入格式包括字符串的长度小于或等于预设阈值,所述调整模块,具体用于在所述第一字符串的字符长度大于所述预设阈值的情况下,将所述第一字符串按照所述目标字符输入格式对应的字符串的长度进行等间隔分割;在所述第一字符串等间隔分割获得的N串字符串的字符内容相同的情况下,剔除所述第一字符串中目标字符,得到所述第二字符串,所述N为大于1的正整数;其中,所述目标字符为字符内容相同的所述N串字符串中任意(N-1)串字符串的字符。9 . The device according to claim 7 , wherein the target character input format comprises that the length of the character string is less than or equal to a preset threshold, and the adjustment module is specifically used for characters in the first character string. 10 . When the length is greater than the preset threshold, the first character string is divided at equal intervals according to the length of the character string corresponding to the target character input format; the N strings obtained by dividing the first character string at equal intervals In the case that the character contents of the character strings are the same, the target character in the first character string is removed to obtain the second character string, and the N is a positive integer greater than 1; wherein, the target character is the same character content. Characters of any (N-1) strings in the N strings of strings. 10.根据权利要求6所述的装置,其特征在于,所述获取模块,具体用于在接收到对输入控件关联的目标功能控件的第一输入的情况下,获取第一字符串,并确定所述第一字符串是否为预设类型的字符串;在所述第一字符串为预设类型的字符串的情况下,获取所述输入控件的属性信息。10. The device according to claim 6, wherein the obtaining module is specifically configured to obtain the first character string when receiving the first input of the target function control associated with the input control, and determine Whether the first character string is a character string of a preset type; if the first character string is a character string of a preset type, obtain attribute information of the input control. 11.一种电子设备,其特征在于,包括处理器,存储器及存储在所述存储器上并可在所述处理器上运行的程序或指令,所述程序或指令被所述处理器执行时实现如权利要求1-5所述的信息处理方法的步骤。11. An electronic device, characterized in that it comprises a processor, a memory, and a program or instruction stored on the memory and executable on the processor, and the program or instruction is implemented when executed by the processor The steps of the information processing method according to claims 1-5. 12.一种可读存储介质,其特征在于,所述可读存储介质上存储程序或指令,所述程序或指令被处理器执行时实现如权利要求1-5所述的信息处理方法的步骤。12. A readable storage medium, wherein a program or an instruction is stored on the readable storage medium, and when the program or instruction is executed by a processor, the steps of the information processing method according to claims 1-5 are implemented .
CN202110081361.3A 2021-01-21 2021-01-21 Information processing method and device and electronic equipment Pending CN112732100A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110081361.3A CN112732100A (en) 2021-01-21 2021-01-21 Information processing method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110081361.3A CN112732100A (en) 2021-01-21 2021-01-21 Information processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112732100A true CN112732100A (en) 2021-04-30

Family

ID=75594575

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110081361.3A Pending CN112732100A (en) 2021-01-21 2021-01-21 Information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (1) CN112732100A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448464A (en) * 2021-06-28 2021-09-28 武汉联影医疗科技有限公司 Information processing method, information processing device, computer equipment and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988986A (en) * 2015-02-26 2016-10-05 阿里巴巴集团控股有限公司 Information processing method and device
WO2017185613A1 (en) * 2016-04-29 2017-11-02 乐视控股(北京)有限公司 Method and device for inputting character string, and electronic device
CN108170539A (en) * 2017-12-08 2018-06-15 北京小米移动软件有限公司 Information processing method and equipment
CN108174018A (en) * 2017-11-30 2018-06-15 深圳市金立通信设备有限公司 A kind of information processing method and terminal
CN110287655A (en) * 2019-06-24 2019-09-27 维沃移动通信有限公司 A verification code input method, device and mobile terminal
CN110399232A (en) * 2019-06-21 2019-11-01 平安普惠企业管理有限公司 Paste processing method, apparatus, device, and computer-readable storage medium
CN111352687A (en) * 2020-03-09 2020-06-30 北京三快在线科技有限公司 Invoice filling method, invoice filling device, invoice filling terminal and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105988986A (en) * 2015-02-26 2016-10-05 阿里巴巴集团控股有限公司 Information processing method and device
WO2017185613A1 (en) * 2016-04-29 2017-11-02 乐视控股(北京)有限公司 Method and device for inputting character string, and electronic device
CN108174018A (en) * 2017-11-30 2018-06-15 深圳市金立通信设备有限公司 A kind of information processing method and terminal
CN108170539A (en) * 2017-12-08 2018-06-15 北京小米移动软件有限公司 Information processing method and equipment
CN110399232A (en) * 2019-06-21 2019-11-01 平安普惠企业管理有限公司 Paste processing method, apparatus, device, and computer-readable storage medium
CN110287655A (en) * 2019-06-24 2019-09-27 维沃移动通信有限公司 A verification code input method, device and mobile terminal
CN111352687A (en) * 2020-03-09 2020-06-30 北京三快在线科技有限公司 Invoice filling method, invoice filling device, invoice filling terminal and storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
DXT_SNOW: "判断一个字符串是否由重复子字符串组成", pages 1 - 3, Retrieved from the Internet <URL:https://blog.csdn.net/qq_37665301/article/details/108805507> *
-小橙子-: "IOS获取短信验证码—自动填充被复制两遍问题", pages 1 - 2, Retrieved from the Internet <URL:https://blog.csdn.net/Riona_cheng/article/details/98971879> *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113448464A (en) * 2021-06-28 2021-09-28 武汉联影医疗科技有限公司 Information processing method, information processing device, computer equipment and storage medium

Similar Documents

Publication Publication Date Title
US10698604B2 (en) Typing assistance for editing
US7764837B2 (en) System, method, and apparatus for continuous character recognition
US20110307535A1 (en) Freeform mathematical computations
CN101178633A (en) Method, system and device for correcting hand-written screen error
CN111984589A (en) Document processing method, document processing device and electronic equipment
CN111880668A (en) Input display method and device and electronic equipment
US9557818B2 (en) Contextually-specific automatic separators
CN111724455A (en) Image processing method and electronic device
CN111787154A (en) Information processing method and electronic equipment
CN112148135A (en) Input method processing method, device and electronic device
CN115357249A (en) Code generation method and device, electronic equipment and storage medium
CN113359999A (en) Candidate word updating method and device and electronic equipment
CN112231507A (en) Identification method and device and electronic equipment
WO2023045922A1 (en) Information input method and apparatus
CN112732100A (en) Information processing method and device and electronic equipment
CN112087546B (en) Message display method and device, electronic equipment and readable storage medium
CN119090432A (en) Work order generation method, device, electronic device and storage medium
CN112764734A (en) Code editing assisting method and device and electronic equipment
CN109492249B (en) Rapid generation method and device of design drawing and terminal equipment
US20240233427A1 (en) Data categorization using topic modelling
CN113190125B (en) Input correction method and device
CN116301402A (en) Password input method and device
CN112286613A (en) Interface display method and interface display device
CN111782060B (en) Object display method, device and electronic device
CN117892724B (en) Text detection method, device, equipment and storage medium

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20210430