[go: up one dir, main page]

WO2019075678A1 - Information processing method and device, mobile terminal and non-volatile readable storage medium - Google Patents

Information processing method and device, mobile terminal and non-volatile readable storage medium Download PDF

Info

Publication number
WO2019075678A1
WO2019075678A1 PCT/CN2017/106766 CN2017106766W WO2019075678A1 WO 2019075678 A1 WO2019075678 A1 WO 2019075678A1 CN 2017106766 W CN2017106766 W CN 2017106766W WO 2019075678 A1 WO2019075678 A1 WO 2019075678A1
Authority
WO
WIPO (PCT)
Prior art keywords
string
character
search
matching
cursor position
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.)
Ceased
Application number
PCT/CN2017/106766
Other languages
French (fr)
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.)
Shenzhen Yun Zhong Fei Network Technology Co Ltd
Original Assignee
Shenzhen Yun Zhong Fei 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 Shenzhen Yun Zhong Fei Network Technology Co Ltd filed Critical Shenzhen Yun Zhong Fei Network Technology Co Ltd
Priority to PCT/CN2017/106766 priority Critical patent/WO2019075678A1/en
Publication of WO2019075678A1 publication Critical patent/WO2019075678A1/en
Anticipated expiration legal-status Critical
Ceased 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
    • G06F3/0237Character input methods using prediction or retrieval techniques
    • 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
    • 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 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/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
    • G06F3/0488Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures
    • G06F3/04886Interaction 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 using a touch-screen or digitiser, e.g. input of commands through traced gestures by partitioning the display area of the touch-screen or the surface of the digitising tablet into independently controllable areas, e.g. virtual keyboards or menus
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/20Natural language analysis
    • G06F40/274Converting codes to words; Guess-ahead of partial word inputs
    • GPHYSICS
    • G06COMPUTING OR CALCULATING; COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/048Indexing scheme relating to G06F3/048
    • G06F2203/04801Cursor retrieval aid, i.e. visual aspect modification, blinking, colour changes, enlargement or other visual cues, for helping user do find the cursor in graphical user interfaces

Definitions

  • the present application relates to the field of computer technologies, and in particular, to an information processing method, apparatus, mobile terminal, and non-volatile readable storage medium.
  • a virtual keyboard (such as a smart phone, a tablet, etc.) is usually provided with a virtual keyboard, and the user can input characters in the input box by clicking a virtual button in the virtual keyboard.
  • the user needs to process some characters in the input box, such as deleting a character, it is necessary to manually move the cursor and search for the characters to be processed one by one, which is cumbersome.
  • an information processing method, apparatus, mobile terminal, and non-volatile readable storage medium are provided.
  • An information processing method includes:
  • the character string in the selected state is processed according to the keyboard type.
  • An information processing apparatus comprising:
  • a string obtaining module configured to obtain an input search string
  • a searching module configured to search for a string matching the search string in the input box, and set the matched string to a selected state
  • An event receiving module configured to acquire a keyboard type to which the pressed keyboard belongs when receiving a keyboard pressing event
  • a processing module configured to process the character string in the selected state according to the keyboard type.
  • a mobile terminal comprising a memory and a processor, the memory storing computer executable instructions, the computer executable instructions being executed by the processor such that when executed by the processor, the method as described above is implemented.
  • One or more non-volatile readable storage media storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to be implemented as described above The method described.
  • FIG. 1 is an application scenario diagram of an information processing method in an embodiment
  • FIG. 2 is a block diagram of a mobile terminal in an embodiment
  • FIG. 3 is a flow chart of an information processing method in an embodiment
  • FIG. 5 is a flowchart of processing a character string in a selected state according to a preset flag bit when a keyboard type is a character key in an embodiment
  • FIG. 6 is a flowchart of processing a character string in a selected state according to a preset flag bit when a keyboard type is a left direction key in an embodiment
  • FIG. 7 is a flowchart of processing a character string in a selected state according to a preset flag bit when a keyboard type is a right direction key in an embodiment
  • FIG. 8 is a flowchart of processing a character string in a selected state according to a preset flag bit when the keyboard type is an up direction key in an embodiment
  • FIG. 9 is a flowchart of processing a character string in a selected state according to a preset flag bit when a keyboard type is a down direction key in an embodiment
  • FIG. 10 is a flow chart of re-finding when a search string is updated in an embodiment
  • Figure 11 is a block diagram of an information processing apparatus in an embodiment
  • Figure 12 is a block diagram of a mobile terminal in another embodiment.
  • first may be referred to as a second client
  • second client may be referred to as a first client, without departing from the scope of the present application.
  • Both the first client and the second client are clients, but they are not the same client.
  • FIG. 1 is an application scenario diagram of an information processing method in an embodiment.
  • a virtual keyboard 104 can be disposed on the mobile terminal 10, and characters can be input in the input box 102 by clicking the virtual keyboard 104.
  • the mobile terminal 10 can acquire the input search string, and find a character string matching the search string in the character input in the input box 102, and set the matched character string to the selected state.
  • the mobile terminal 10 receives the keyboard press event of the virtual keyboard 104, the keyboard type to which the pressed keyboard belongs can be acquired, and the character string in the input state of the input box 102 is processed according to the keyboard type.
  • the mobile terminal can input characters through an external physical keyboard or the like in addition to the virtual keyboard 104, and is not limited thereto.
  • the mobile terminal includes a processor connected through a system bus, a non-volatile storage medium, an internal memory and a network interface, and a display. Screen and input device.
  • the non-volatile storage medium of the mobile terminal stores an operating system and computer-executable instructions, and the computer-executable instructions are executed by the processor to implement an information processing method provided in the embodiments of the present application.
  • the processor is used to provide computing and control capabilities to support the operation of the entire mobile terminal.
  • the internal memory in the mobile terminal provides an environment for the operation of computer readable instructions in a non-volatile storage medium.
  • the network interface is used for network communication with the server.
  • the display screen of the mobile terminal may be a liquid crystal display or an electronic ink display screen.
  • the input device may be a touch layer covered on the display screen, or may be a button, a trackball or a touchpad provided on the casing of the mobile terminal, or may be An external keyboard, trackpad, or mouse.
  • the mobile terminal can be a mobile phone, a tablet or a personal digital assistant or a wearable device.
  • FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the mobile terminal to which the solution of the present application is applied.
  • the specific mobile terminal may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.
  • an information processing method including the following steps:
  • Step 310 Acquire an input search string.
  • the user inputs characters in the input box of the mobile terminal.
  • the search string is input through a keyboard, and the search string can include one or more characters, and the mobile terminal can locate the character to be processed in the input box according to the search string.
  • the characters entered in the input box may include, but are not limited to, letters, characters, numbers, symbols, and the like.
  • the mobile terminal can set a selection key on the keyboard, and the selection key can be used in combination with the character key.
  • the selection key When the selection key is in the pressed state, the user can input the search string by clicking the character key, wherein Character keys can include, but are not limited to, alphanumeric keys, numeric keys, symbol keys, and the like that can be used to enter characters.
  • Character keys can include, but are not limited to, alphanumeric keys, numeric keys, symbol keys, and the like that can be used to enter characters.
  • the mobile terminal can define that the initial value of the search string is null.
  • the user clicks the letter key "a” When the user clicks the letter key "a", and the search string can be updated to "a".
  • the selection button is released, the user clicks the character key to enter characters normally in the input box.
  • the selection key can be a key reset in the keyboard, or it can be a key in the keyboard, such as alt. Keys, etc., but are not limited to this.
  • the mobile terminal can also set a search switch on the screen. When the search switch is turned on, the search string can be input by clicking the character key. When the search switch is turned off, the character is normally input in the input box by clicking the character key.
  • Step 320 Find a string matching the search string in the input box, and set the matched string to the selected state.
  • the mobile terminal can obtain the input search string, and find a string matching the search string in the character input in the input box, and the string matching the search string can refer to the search string existing in the input character. The same string. If a string matching the string is found in the characters entered in the input box, the matching string can be set to the selected state.
  • the mobile terminal may mark the selected character string according to a preset format, for example, the selected character string may be adjusted to a preset color, or may be added under the selected character string.
  • the underline may be filled with the background of the character string in the selected state as a preset color or the like, but is not limited thereto.
  • the character string matching the search string can be found in the input character “kslfjabckfj”, and The matching string is set to the selected state, and the character string in the selected state can be marked as "kslfj abc kfj", wherein the string with the underlined portion indicates that the character string is selected.
  • Step 330 When receiving a keyboard press event, obtain the keyboard type to which the pressed keyboard belongs.
  • the mobile terminal can monitor the keyboard press event.
  • the keyboard press event When receiving the keyboard press event, the pressed keyboard can be obtained, and the keyboard type to which the keyboard under the key belongs is determined, wherein the keyboard type can include but is not limited to a character key. , delete button, left arrow button, right arrow button, up arrow button and down arrow button.
  • Step 340 processing the character string in the selected state according to the keyboard type.
  • the mobile terminal may perform corresponding processing on the character string selected in the input box according to the type of the keyboard to which the pressed keyboard belongs, and the processing of the character string in the selected state may include, but is not limited to, deleting the selected state. a string, a string that is selected to be replaced with a new character, a string that is selected in the change input box, etc., where the input box is changed
  • the selected string may include changing the character that is not selected to the selected state, or changing the character that is selected to the unselected state.
  • the mobile terminal can preset the processing mode corresponding to each keyboard type.
  • the processing method corresponding to the delete key may be to delete the character string in the selected state
  • the processing method corresponding to the character key may be to replace the character string in the selected state.
  • the character corresponding to the character key below, etc., but is not limited to this.
  • the mobile terminal determines the type of the keyboard to which the pressed keyboard belongs, and can process the character string in the input box according to the processing mode corresponding to the keyboard type.
  • the input search string is obtained, the string matching the search string is searched in the input box, and the matched string is set to the selected state.
  • the keyboard type to which the keyboard belongs belongs to the character string in the selected state, and can quickly locate the character string that needs to be processed in the input box, without the user manually searching one by one, and the operation is simple.
  • step 320 searches for a string matching the lookup string in the input box, and sets the matched string to the selected state, including the following steps:
  • Step 402 Acquire a cursor position in the input box.
  • the user inputs a character in the input box by clicking the keyboard of the mobile terminal, and the cursor can be displayed in the input box.
  • the cursor can be used to indicate the position of the character to be input.
  • the cursor can be a small vertical line with a regular flashing, or Rules flashing small horizontal lines, etc.
  • the cursor position in the current input box can be obtained.
  • the cursor in the input box can be located before or after any one character.
  • Step 404 searching for a string matching the search string from the cursor position.
  • the character string matching the search string can be searched forward from the cursor position.
  • the mobile terminal can first determine whether the cursor is located first. The front of the character, that is, the cursor position P can be first determined to be 0. If yes, the string matching the search string can be directly searched from the last character of the input box. If not, the cursor position can be Find the string that matches the lookup string before.
  • Step 406 Determine whether a string matching the search string is found. If yes, go to step 408. If no, go to step 410.
  • step 408 the matching string found for the first time is set to the selected state.
  • Step 410 Find the string matching the search string from the last character in the input box.
  • the mobile terminal can look up the string matching the search string from the last character of the input box, and determine whether it matches the search string. String.
  • step 412 it is determined whether a string matching the search string is found. If yes, step 408 is performed, and if no, step 414 is performed.
  • the input search string obtained by the mobile terminal is “abc”
  • the character input in the input box includes “kslfjabckfj”
  • the terminal can set the 3 characters starting from the 6th character "a” to be selected, and can be displayed as "kslfj abc kfj", wherein the string with the underlined portion can indicate that it is selected.
  • step 414 the search ends.
  • the character string that needs to be processed in the input box can be quickly located, and the user does not need to manually search one by one, and the operation is simple.
  • the step 340 processes the character string in the selected state according to the keyboard type, including: acquiring a preset flag bit, and performing, under different keyboard types, the character string in the selected state according to the preset flag bit. deal with.
  • the preset flag bit may be acquired, where the preset flag bit may be used to indicate the state of the preset selection button, and the preset flag bit may include the first flag and the second flag, A flag can be used to indicate that the selection button is in the depressed state, and a second flag can be used to indicate that the selection button is in the released state.
  • the first flag and the second flag may be represented by different strings, and the string may be composed of one or more of letters, numbers, symbols, and the like. For example, the first flag is "true”, the second flag is "false”, or the first flag is "1", the second flag is "0", etc., but is not limited thereto.
  • the mobile terminal obtains the type of the keyboard to which the pressed keyboard belongs, and can process the character string in the selected state according to the preset flag bit. Different keyboard types can respectively correspond to different processing modes under different preset flag bits.
  • the mobile terminal acquires the type of the keyboard to which the pressed keyboard belongs, and can first determine whether the preset selection key is in a pressed state or a released state, and the processing mode corresponding to the state of the selection key can be obtained in the selected state. The string is processed.
  • the step processes the character string in the selected state according to the preset flag bit, and includes steps 502 to 506:
  • Step 502 Acquire an input character corresponding to a keyboard press event.
  • the mobile terminal can receive the pressing event of the clicked button, and can determine that the type of the keyboard to which the pressed keyboard belongs is a character key.
  • the mobile terminal can obtain an input character corresponding to the keyboard pressing event. For example, if the user clicks the letter key “a”, the mobile terminal can receive the pressing event of the letter key “a”, and determine that the keyboard type is a character key, and can be obtained.
  • the input character corresponding to the press event is "a".
  • Step 504 When the preset flag is the first flag, add an input character after the string is searched, and update the search string.
  • the preset flag is the first flag, it indicates that the selection button is in the pressed state, and when the selection button is in the pressed state, the search string can be input.
  • the mobile terminal can add an input character corresponding to the keyboard press event after the original search string, and update the search string. For example, if the original search string is "abc", the user clicks the letter key "a”, and the mobile terminal receives the press event of the letter key "a”, and obtains the corresponding input character "a”, if the current selection key is pressed. In the state, the input character "a” can be added after the original search string "abc", and the updated search string can be "abca".
  • Step 506 When the preset flag is the second flag, replace the character string in the selected state with the input character.
  • the preset flag is the second flag, it indicates that the selection button is in the released state, and if the selection button is in the released state, the mobile terminal can replace the character string in the input box with the input character with the input character.
  • the character in the input box contains "kslfj abc kfj", wherein the string with the underlined part is the string in the selected state, the user clicks the letter key "a", and the mobile terminal receives the press of the letter key "a”. The next event, the corresponding input character "a" is obtained. If the current selection key is in the released state, the character string "abc" in the selected state can be replaced with the input character "a”, and the character in the input box can be changed more. "kslfjakfj".
  • the step processes the character string in the selected state according to the preset flag bit, including step (1) and step (2):
  • step (1) when the preset flag is the first flag, the last character of the search string is deleted, and the search string is updated.
  • the mobile terminal When the mobile terminal receives the press event of the delete key, it can be determined whether the select key is in the pressed state.
  • the mobile terminal can read the preset flag. When the preset flag is the first flag, it indicates that the selection button is in the pressed state, and when the selection button is in the pressed state, the character of the search string can be deleted.
  • the mobile terminal can delete the last character of the original search string and update the search string. For example, for example, the original search string is “abc”, and the mobile terminal receives the press event of the delete key. If the current selection key is pressed, the last character of the original search string “abc” may be deleted. c", the updated search string can be "ab".
  • step (2) when the preset flag is the second flag, the character string in the selected state is deleted.
  • the preset flag is the second flag, it indicates that the selection button is in the released state, and if the selection button is in the released state, the mobile terminal can delete the character string in the input box in the selected state.
  • the character in the input box contains "kslfj abc kfj", wherein the character string with the underlined part is the character string in the selected state, and the mobile terminal receives the press event of the delete key, if the current selection key is released. , you can delete the string "abc" in the selected state, the character in the input box can be changed to "kslfjkfj".
  • the selection key can be combined with the character key, the delete key, etc., according to the state of the selection key, the content of the search string can be quickly updated, or the character string in the selected state can be replaced or deleted.
  • the operation is simple and quick.
  • the step processes the character string in the selected state according to the preset flag bit, and includes steps 602 to 606:
  • Step 602 When the preset flag is the first flag, obtain the cursor position of the input box.
  • the mobile terminal When the mobile terminal receives the press event of the left direction key, it can be determined whether the selection key is in the pressed state.
  • the mobile terminal can read the preset flag. When the preset flag is the first flag, it can be stated that the selection button is in the pressed state, and the mobile terminal can obtain the cursor position of the input box.
  • step 604 when the previous character of the cursor position is selected, the previous character is set to an unselected state.
  • Step 606 When the previous character of the cursor position is unselected, the previous character is set to the selected state.
  • the character in the input box contains "kslfj abc kfj", where the underlined string is the string "abc" in the selected state.
  • the previous character “c” of the cursor position is selected, the previous character “c” can be set to the unselected state.
  • the string selected in the input box is changed from “abc” to "ab” and can be displayed as "kslfj ab ckfj".
  • the mobile terminal when the mobile terminal receives the pressing event of the left direction key, if the preset flag is the second flag, indicating that the selection key is in the released state, the mobile terminal may select all the input boxes in the selected state.
  • the character is set to unchecked.
  • the cursor After a character, if P is not 0, the cursor is moved forward by one bit, where L can be an integer greater than or equal to 0.
  • the step processes the character string in the selected state according to the preset flag bit, and includes steps 702 to 706:
  • Step 702 When the preset flag is the first flag, obtain the cursor position of the input box.
  • the mobile terminal When the mobile terminal receives the press event of the right direction key, it can be determined whether the selection key is in the pressed state.
  • the mobile terminal can read the preset flag. When the preset flag is the first flag, it can be stated that the selection button is in the pressed state, and the mobile terminal can obtain the cursor position of the input box.
  • step 704 when the next character of the cursor position is selected, the latter character is set to an unselected state.
  • the character in the input box contains "kslfj abc kfj", where the underlined string is the string "abc" in the selected state.
  • the string in the input box is changed from “abc" to "bc” and can be displayed as "kslfja bc kfj".
  • the string selected in the input box is changed from “abc” to "abck” and can be displayed as "kslfj abck fj".
  • step 706 when the next character of the cursor position is unselected, the latter character is set to the selected state.
  • the selection key can be combined with the left direction key, the right direction key, etc., according to the selection.
  • the state of the key selection can quickly change the selected state of the character, which facilitates subsequent processing of the character string in the selected state, and the operation is simple and quick.
  • the step processes the character string in the selected state according to the preset flag bit, and includes steps 802 to 818.
  • Step 802 When the preset flag is the first flag, obtain the cursor position of the input box.
  • the mobile terminal When the mobile terminal receives the press event of the up arrow key, it can be determined whether the select button is in the pressed state.
  • the mobile terminal can read the preset flag.
  • the preset flag is the second flag, it can be stated that the selection button is in the released state, and the mobile terminal can temporarily not process.
  • the preset flag is the first flag, it can be stated that the selection button is in the pressed state, and the mobile terminal can acquire the cursor position of the input box.
  • step 804 it is determined whether the previous character of the cursor position is the selected state. If yes, step 806 is performed, and if no, step 808 is performed.
  • the mobile terminal can acquire the cursor position P and determine whether the previous character of the cursor position is the selected state, that is, whether the P character of the input box can be determined whether Is selected. If the P character is selected, the mobile terminal can search for the character string matching the search string from the P-SL characters, starting from the first character in the unselected state at the cursor position, Find the string that matches the lookup string before. If the P character is unchecked, the mobile terminal can directly search for the character string matching the search string from the P character, and look up the string matching the search string from the cursor position.
  • Step 806 starting from the first character in the unselected state forward of the cursor position, and looking forward to the string matching the search string.
  • the input search string obtained by the mobile terminal is "abc", and the character in the input box contains "kslfj abc kfj", wherein the character string with the underlined portion is the character string "abc" in the selected state.
  • the search and lookup can be directly forward from the cursor position. A string that matches the string.
  • Step 808 Find a string matching the search string from the cursor position forward.
  • step 810 it is determined whether a string matching the search string is found. If yes, step 812 is performed, and if no, step 814 is performed.
  • the mobile terminal can judge whether the first character in the unselected state is forwarded from the cursor position, and whether there is a character string matching the search string in the forward character. If a string matching the search string is found in the character that is not selected at the cursor position, the characters in the input box may be first set to the unselected state, and the matching characters found for the first time may be found. The string is set to the selected state. In an embodiment, the mobile terminal may obtain the location PK of the first found matching string and determine whether the PK is 0. If it is 0, it indicates that no matching string is found.
  • the input string of the input obtained by the mobile terminal is "abc", and the character in the input box contains "pabckslfj abc kfj", wherein the string with the underlined part is the character string in the selected state.
  • the mobile terminal can find a string matching the search string "abc" in the character that is not in the selected state at the cursor position, and can first set all the characters in the input box to the unselected state, and will find the first time.
  • the matching string is set to selected and can be displayed as "p abc kslfjabckfj", and the selected string has changed.
  • step 812 all the characters in the input box are set to the unselected state, and the matching string found for the first time is set to the selected state.
  • Step 814 Find the string matching the search string from the last character of the input box.
  • the mobile terminal can look up the string matching the search string from the last character of the input box, and judge Whether to find a string that matches the lookup string.
  • step 816 it is determined whether a string matching the search string is found. If yes, step 812 is performed, and if no, step 818 is performed.
  • the mobile terminal searches for the string matching the search string from the last character of the input box. If the position of the matching string found in the first time PK is still 0, it indicates that the character input in the input box does not exist and is searched. A string matching string that ends the lookup. If the PK is not equal to 0, it can be found that the string matching the search string is found.
  • the step processes the character string in the selected state according to the preset flag bit, and includes steps 902 to 914:
  • Step 902 When the preset flag is the first flag, obtain the cursor position of the input box.
  • the mobile terminal When the mobile terminal receives the press event of the down direction key, it can be judged whether the selection key is in the pressed state.
  • the mobile terminal can read the preset flag.
  • the preset flag is the second flag, it can be stated that the selection button is in the released state, and the mobile terminal can temporarily not process.
  • the preset flag is the first flag, it can be stated that the selection button is in the pressed state, and the mobile terminal can acquire the cursor position of the input box.
  • step 904 it is determined whether the next character of the cursor position is the selected state. If yes, step 906 is performed, and if no, step 908 is performed.
  • the mobile terminal can acquire the cursor position P and determine whether the next character of the cursor position is selected, that is, the input box can be determined. Whether P+1 characters are selected. If the P+1 character is selected, the mobile terminal can search for the character string matching the search string backward from the P+SL+1 character, and the first one from the cursor position is in the unselected state. The character begins and looks backwards for the string that matches the lookup string. If the P+1 character is unchecked, the mobile terminal can directly search for the string matching the search string from the P+1 character, and search for the string matching the search string from the cursor position. .
  • step 906 starting from the first position of the cursor in the unselected state, the backward looking for the string matching the search string.
  • the input search string obtained by the mobile terminal is "abc"
  • the character in the input box contains "kslfj abc kfj", wherein the character string with the underlined portion is the character string "abc" in the selected state.
  • the mobile terminal receives the pressing event of the down direction key.
  • step 908 a string matching the search string is searched backward from the cursor position.
  • step 910 it is determined whether a string matching the search string is found. If yes, step 912 is performed, and if no, step 914 is performed.
  • the mobile terminal can judge whether the first character in the unselected state is returned from the cursor position, and whether there is a character string matching the search string in the backward character. If a string matching the search string is found in a character that is not selected at the cursor position, the characters in the input box may be first set to the unselected state, and the matching characters found for the first time may be found. The string is set to the selected state. In an embodiment, the mobile terminal may obtain the location PK of the first found matching string and determine whether the PK is 0. If it is 0, it indicates that no matching string is found.
  • the First set all characters in the input box to unchecked and get the search characters
  • step 912 all the characters in the input box are set to the unselected state, and the matching string found for the first time is set to the selected state.
  • the input string of the input obtained by the mobile terminal is "abc", and the character in the input box contains "p abc kslfjabckfj", wherein the string with the underlined part is the character string in the selected state.
  • the character "k” in the unselected state begins, looking for a string that matches the lookup string "abc".
  • the mobile terminal can find a string matching the search string "abc" in the character that is not in the selected state at the cursor position, and can first set all the characters in the input box to the unselected state, and will find the first time.
  • the matching string is set to the selected state and can be displayed as "pabckslfj abc kfj", and the selected string has changed.
  • Step 914 searching for the string matching the search string from the first character of the input box.
  • the mobile terminal can search for the character string matching the search string backward from the first character of the input box, and Determines if a string matching the lookup string is found.
  • step 916 it is determined whether a string matching the search string is found. If yes, step 912 is performed, and if no, step 918 is performed.
  • the mobile terminal searches for the string matching the search string from the first character of the input box. If the position of the matching string found in the first time PK is still 0, it indicates that the character input in the input box does not exist. Find the string that matches the string to end the lookup. If the PK is not equal to 0, it can be found that the string matching the search string is found.
  • the selection key can be combined with the up direction key, the down direction key, etc., when there are more input characters in the input box, the character string to be processed can also be quickly located, without the user manually performing one by one. Find and operate easily.
  • the information processing method further includes the following steps:
  • Step 1002 When it is detected that the search string is updated, all characters in the input box are set to an unselected state.
  • the mobile terminal can combine the selection key with a character key, a delete key, etc., and input, update, and the like for the search string.
  • the preset flag bit can be read. If the preset flag bit is the first flag, the selection button is in the pressed state, and the original search string can be modified. And update it.
  • the mobile terminal detects that the search string is updated, all the characters in the input box can be set to the unselected state, and the string matching the updated string is re-find, and the found matching string is set to Checked state.
  • step 1004 the string matching the updated string is re-discovered, and the matched string is set to the selected state.
  • all characters in the input box may be set to an unselected state, and the cursor position in the input box is obtained.
  • the mobile terminal can look up the string matching the updated search string from the cursor position and set the matching string found for the first time to the selected state. If the string matching the updated search string is not found forward from the cursor position, the string matching the updated search string can be searched forward from the last character in the input box, and will be found for the first time. The matching string is set to selected.
  • the character string that needs to be processed in the input box can be quickly relocated, and the user does not need to manually search one by one, and the operation is simple.
  • an information processing method including the following steps:
  • Step (1) obtain the input search string.
  • Step (2) in the input box, find a string matching the search string, and set the matched string to the selected state.
  • searching for a string matching the search string in the input box, and setting the matched string to the selected state including: obtaining a cursor position in the input box, and searching forward from the cursor position to match the search string String, and set the matching string found for the first time to the selected state; if the string matching the search string is not found forward from the cursor position, the last character in the input box is forwarded and searched A string that matches the string and sets the matching string that was first found to be selected.
  • step (3) when a keyboard press event is received, the keyboard type to which the pressed keyboard belongs is obtained.
  • step (4) the character string in the selected state is processed according to the keyboard type.
  • processing the character string in the selected state according to the keyboard type including: acquiring a preset flag bit, where the preset flag bit includes the first flag and the second flag, wherein the first flag is used to indicate the preset selection The key is in the pressed state, and the second flag is used to indicate that the preset selection key is in the released state; under different keyboard types, the character string in the selected state is processed according to the preset flag bit.
  • the keyboard type includes a character key
  • the character string in the selected state is processed according to the preset flag bit, including: obtaining an input character corresponding to a keyboard press event; and when the preset flag bit is the first flag, The input character is added after the string is searched, and the search string is updated; when the preset flag is the second flag, the character string in the selected state is replaced with the input character.
  • the keyboard type includes a delete key
  • the character string in the selected state is processed according to the preset flag bit, including: when the preset flag bit is the first flag, deleting the last character of the search string, and updating Find the string; when the preset flag is the second flag, delete the string that is selected.
  • the keyboard type includes a left direction key, and respectively processes the character string in the selected state according to the preset flag bit, including: when the preset flag bit is the first flag, acquiring the cursor of the input box Position; when the previous character of the cursor position is selected, the previous character is set to the unselected state; when the previous character of the cursor position is unselected, the previous character is set to the selected state.
  • the keyboard type includes a right direction key, and respectively processes the character string in the selected state according to the preset flag bit, including: when the preset flag bit is the first flag, acquiring the cursor position of the input box; when the cursor position When the next character is selected, the latter character is set to the unselected state; when the next character of the cursor position is unselected, the latter character is set to the selected state.
  • the keyboard type includes an up direction key, and respectively processing the character string in the selected state according to the preset flag bit, including: when the preset flag bit is the first flag, acquiring the cursor position of the input box; determining the cursor position Whether the previous character is selected, if yes, starting from the first unselected character from the cursor position, looking forward to the string matching the search string, if not, looking forward from the cursor position a string that matches the lookup string; if no forward string is found that matches the lookup string, the last character of the input box is forwarded to find the string that matches the lookup string; when the find and find characters are found When the string matches the string, all the characters in the input box are set to unchecked, and the matching string found for the first time is set to the selected state.
  • the keyboard type includes a down arrow key, and respectively processing the character string in the selected state according to the preset flag bit, including: when the preset flag bit is the first flag, acquiring the cursor position of the input box; determining the cursor position Whether the next character is selected, if yes, starting from the cursor position to the first unselected character, looking backward for the string matching the search string, if not, looking backward from the cursor position a string that matches the lookup string; if no string is found that matches the lookup string, the first character of the input box is searched backwards for the string that matches the lookup string; when the find and find strings are found When matching a string, set all characters in the input box to unchecked and set the matching string found for the first time to the selected state.
  • Step (5) when it is detected that the search string is updated, all the characters in the input box are set to the unselected state, and the string matching the updated string is newly found, and the matched words are matched.
  • the string is set to selected.
  • the input search string is obtained, the string matching the search string is searched in the input box, and the matched string is set to the selected state.
  • the keyboard type to which the keyboard belongs belongs to the character string in the selected state, and can quickly locate the character string that needs to be processed in the input box, without the user manually searching one by one, and the operation is simple.
  • an information processing apparatus 1100 including a character string obtaining module 1110, a searching module 1120, an event receiving module 1130, and a processing module 1140.
  • the string obtaining module 1110 is configured to obtain an input search string.
  • the searching module 1120 is configured to search for a string matching the search string in the input box, and set the matched string to the selected state.
  • the event receiving module 1130 is configured to acquire a keyboard type to which the pressed keyboard belongs when receiving a keyboard pressing event.
  • the processing module 1140 is configured to process the character string in the selected state according to the keyboard type.
  • the input search string is obtained, the string matching the search string is searched in the input box, and the matched string is set to the selected state.
  • the keyboard type to which the keyboard belongs belongs to the character string in the selected state, and can quickly locate the character string that needs to be processed in the input box, without the user manually searching one by one, and the operation is simple.
  • the lookup module 1120 includes a cursor acquisition unit and a lookup unit.
  • a cursor acquisition unit for obtaining a cursor position in the input box.
  • a searching unit for searching for a string matching the search string from the cursor position and setting the matching string found for the first time to the selected state.
  • the search unit is also used to search for a string matching the search string from the last character in the input box if the string matching the search string is not found from the cursor position, and the first search is performed.
  • the matching string is set to selected.
  • the information processing apparatus 1100 includes a character string obtaining module 1110, a searching module 1120, an event receiving module 1130, and a processing module 1140, and a cursor setting module.
  • the cursor setting module is used to set the cursor position after the last character of the selected character string.
  • the character string that needs to be processed in the input box can be quickly located, and the user does not need to manually search one by one, and the operation is simple.
  • the processing module 1140 includes a flag bit acquiring unit and a processing unit.
  • a flag bit acquiring unit configured to acquire a preset flag bit, where the preset flag bit includes a first flag and a second flag, wherein the first flag is used to indicate that the preset selection button is in a pressed state, and the second flag is used to indicate The preset selection button is released.
  • the processing unit is configured to process the character string in the selected state according to the preset flag bit under different keyboard types.
  • the keyboard type includes a character key.
  • the processing unit includes a character acquisition subunit, an update subunit, and a replacement subunit.
  • a character acquisition subunit for obtaining an input character corresponding to a keyboard press event.
  • the update subunit is configured to add an input character after the search string and update the search string when the preset flag is the first flag.
  • the replacement subunit is configured to replace the character string in the selected state with the input character when the preset flag bit is the second flag.
  • the keyboard type includes a delete key.
  • the processing unit includes a delete subunit in addition to the character acquisition subunit, the update subunit, and the replacement subunit.
  • the sub-unit is updated, and when the preset flag is the first flag, the last character of the search string is deleted, and the search string is updated.
  • the subunit is deleted, and when the preset flag is the second flag, the character string in the selected state is deleted.
  • the keyboard type includes a left arrow key.
  • the processing unit includes a position acquisition subunit and a state setting subunit, in addition to the character acquisition subunit, the update subunit, the replacement subunit, and the deletion subunit.
  • the position obtaining subunit is configured to obtain a cursor position of the input box when the preset flag bit is the first flag.
  • the status setting sub-unit is used to set the previous character to the unselected state when the previous character of the cursor position is selected.
  • the status setting sub-unit is also used to set the previous character to the selected state when the previous character of the cursor position is unselected.
  • the keyboard type includes a right arrow key.
  • the position acquisition subunit is further configured to acquire a cursor position of the input box when the preset flag bit is the first flag.
  • the status setting sub-unit is also used to set the latter character to the unselected state when the next character of the cursor position is selected.
  • the status setting sub-unit is also used to set the latter character to the selected state when the next character of the cursor position is unselected.
  • the selection key can be combined with the left direction key, the right direction key, etc., according to the state of the selection key, the selected state of the character can be quickly changed, and the subsequent processing of the character string in the selected state is facilitated, and the operation is simple and quick. .
  • the keyboard type includes an up arrow key.
  • the processing unit includes, in addition to the character acquisition subunit, the update subunit, the replacement subunit, the deletion subunit, the location acquisition subunit, and the state setting subunit, a judgment subunit and a lookup subunit.
  • the position acquisition subunit is further configured to acquire a cursor position of the input box when the preset flag bit is the first flag.
  • the judging subunit is configured to determine whether the previous character of the cursor position is the selected state.
  • the lookup subunit is used to search for a string matching the search string from the first uncharacterized character before the cursor position, if the previous character of the cursor position is selected.
  • the lookup subunit is also used to search for a string matching the search string from the cursor position if the previous character of the cursor position is not selected.
  • the lookup subunit is also used to look up the string matching the lookup string from the last character of the input box if the string matching the lookup string is not found forward.
  • the status setting sub-unit is also used to set all the characters in the input box to the unselected state when the string matching the search string is found, and set the matching string found for the first time to the selected state.
  • the keyboard type includes a down arrow key.
  • the position acquisition subunit is further configured to acquire a cursor position of the input box when the preset flag bit is the first flag.
  • the judging subunit is also used to determine whether the next character of the cursor position is selected.
  • the search subunit is also used to search for the character string that matches the search string from the cursor position to the first character that is not selected when the latter character of the cursor position is selected.
  • the search subunit is also used to search for a string matching the search string from the cursor position if the next character of the cursor position is not selected.
  • the lookup subunit is also used to search for the string matching the lookup string from the first character of the input box if the string matching the lookup string is not found backward.
  • the status setting sub-unit is also used to set all the characters in the input box to the unselected state when the string matching the search string is found, and set the matching string found for the first time to the selected state.
  • the selection key can be combined with the up direction key, the down direction key, etc., when there are more input characters in the input box, the character string to be processed can also be quickly located, without the user manually performing one by one. Find and operate easily.
  • the searching module 1120 is further configured to: when detecting that the search string is updated, set all the characters in the input box to an unselected state, and re-look the string matching the updated string, and Set the matching string to the selected state.
  • the character string that needs to be processed in the input box can be quickly relocated, and the user does not need to manually search one by one, and the operation is simple.
  • the embodiment of the present application further provides a mobile terminal.
  • a mobile terminal As shown in FIG. 12, for the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present application.
  • the mobile terminal can be any mobile device, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an on-board computer, a wearable device, or the like, and the mobile terminal is used as a mobile phone as an example. :
  • FIG. 12 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present application.
  • the mobile phone includes: a radio frequency (RF) circuit 1210, a memory 1220, an input unit 1230, a display unit 1240, a sensor 1250, an audio circuit 1260, a Wireless-Fidelity (WiFi) module 1270, and a processor. 1280, and power supply 1290 and other components.
  • RF radio frequency
  • the structure of the handset shown in FIG. 12 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.
  • the RF circuit 1210 can be used for receiving and transmitting information during the transmission and reception of information or during the call.
  • the downlink information of the base station can be received and processed by the processor 1280.
  • the uplink data can also be sent to the base station.
  • RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like.
  • RF circuitry 1210 can also communicate with the network and other devices via wireless communication.
  • the above wireless communication may use any communication standard or protocol, including but not limited to GSM, General Packet Radio Service (GPRS), CDMA, Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, short message service (Short Messaging) Service, SMS), etc.
  • GSM Global System for Mobile Communications
  • GPRS General Packet Radio Service
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • SMS short message service
  • the memory 1220 can be used to store software programs and modules, and the processor 1280 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1220.
  • the memory 1220 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as an application of a sound playing function, an application of an image playing function, etc.);
  • the data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone.
  • memory 1220 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
  • the input unit 1230 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 1200.
  • the input unit 1230 may include a touch panel 1232 and other input devices 1234.
  • the touch panel 1232 which may also be referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1232 or near the touch panel 1232. Operation) and drive the corresponding connection device according to a preset program.
  • the touch panel 1232 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 1280 is provided and can receive commands from the processor 1280 and execute them.
  • the touch panel 1232 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input unit 1230 may also include other input devices 1234.
  • other input devices 1234 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).
  • the display unit 1240 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone.
  • Display unit 1240 can include display panel 1242.
  • the display panel 1242 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch panel 1232 can cover the display panel 1242. When the touch panel 1232 detects a touch operation thereon or nearby, the touch panel 1232 transmits to the processor 1280 to determine the type of the touch event, and then the processor 1280 is The type of touch event provides a corresponding visual output on display panel 1242.
  • the touch panel 1232 and the display panel 1242 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 1232 can be integrated with the display panel 1242. Realize the input and output functions of the phone.
  • the handset 1200 can also include at least one type of sensor 1250, such as a light sensor, motion sensor, and other sensors.
  • the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1242 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1242 and/or when the mobile phone moves to the ear. Or backlight.
  • the motion sensor may include an acceleration sensor, and the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
  • the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.
  • Audio circuitry 1260, speaker 1262, and microphone 1264 can provide an audio interface between the user and the handset.
  • the audio circuit 1260 can transmit the converted electrical data of the received audio data to the speaker 1262, and convert it into a sound signal output by the speaker 1262; on the other hand, the microphone 1264 converts the collected sound signal into an electrical signal, by the audio circuit 1260. After receiving, it is converted into audio data, and then processed by the audio data output processor 1280, transmitted to another mobile phone via the RF circuit 1210, or outputted to the memory 1220 for subsequent processing.
  • WiFi is a short-range wireless transmission technology.
  • the mobile phone through the WiFi module 1270 can help users to send and receive e-mail, browse the web and access streaming media, etc. It provides users with wireless broadband Internet access.
  • the processor 1280 is a control center for the handset that connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1220, and invoking data stored in the memory 1220, Various functions and processing data of the mobile phone, Thereby the overall monitoring of the mobile phone.
  • processor 1280 can include one or more processing units.
  • the processor 1280 can integrate an application processor and a modem processor, wherein the application processor primarily processes an operating system, a user interface, an application, etc.; the modem processor primarily processes wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1280.
  • the mobile phone 1200 also includes a power supply 1290 (such as a battery) for powering various components.
  • a power supply 1290 (such as a battery) for powering various components.
  • the power supply 1290 can be logically coupled to the processor 1280 through a power management system to manage functions such as charging, discharging, and power management through a power management system. .
  • the handset 1200 can also include a camera, a Bluetooth module, and the like.
  • the processor 1280 included in the mobile terminal implements the above information processing method when executing computer executable instructions stored in the memory.
  • the mobile terminal can include a memory 1220 and a processor 1280 having stored therein computer executable instructions that, when executed by the processor 1280, cause the processor to perform the following steps:
  • the string that is selected is processed according to the keyboard type.
  • one or more non-volatile readable storage media storing computer-executable instructions are provided, when executed by one or more processors, causing one or more processors to execute The above information processing method is implemented.
  • a computer program product comprising a computer program, when executed on a computer device, causes the computer device to perform the information processing method described above when executed.
  • a person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in A non-volatile computer readable storage medium, the program, when executed, may include the flow of an embodiment of the methods described above.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
  • Non-volatile memory can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory.
  • Volatile memory can include random access memory (RAM), which acts as an external cache.
  • RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization.
  • SRAM static RAM
  • DRAM dynamic RAM
  • SDRAM synchronous DRAM
  • DDR SDRAM dual data rate SDRAM
  • ESDRAM enhanced SDRAM
  • synchronization Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Health & Medical Sciences (AREA)
  • Artificial Intelligence (AREA)
  • Audiology, Speech & Language Pathology (AREA)
  • Computational Linguistics (AREA)
  • General Health & Medical Sciences (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

一种信息处理方法,包括:获取输入的查找字符串(310);在输入框中查找与查找字符串匹配的字符串,并将匹配的字符串设置为选中状态(320);当接收到键盘按下事件时,获取按下的键盘所属的键盘类型(330);根据键盘类型对处于选中状态的字符串进行处理(340)。An information processing method includes: obtaining an input search string (310); searching for a string matching the search string in the input box, and setting the matched string to a selected state (320); when receiving the keyboard When the event is pressed, the keyboard type to which the pressed keyboard belongs is obtained (330); the character string in the selected state is processed according to the keyboard type (340).

Description

信息处理方法、装置、移动终端及非易失性可读存储介质Information processing method, device, mobile terminal and non-volatile readable storage medium 技术领域Technical field

本申请涉及计算机技术领域,特别是涉及一种信息处理方法、装置、移动终端及非易失性可读存储介质。The present application relates to the field of computer technologies, and in particular, to an information processing method, apparatus, mobile terminal, and non-volatile readable storage medium.

背景技术Background technique

移动终端(比如智能手机、平板电脑等)上通常设置有虚拟键盘,用户可通过点击虚拟键盘中的虚拟按键在输入框中输入字符。当用户需要对输入框中的某些字符进行处理时,比如删除某个字符,需要手动慢慢挪动光标并逐个查找需要处理的字符,操作繁琐。A virtual keyboard (such as a smart phone, a tablet, etc.) is usually provided with a virtual keyboard, and the user can input characters in the input box by clicking a virtual button in the virtual keyboard. When the user needs to process some characters in the input box, such as deleting a character, it is necessary to manually move the cursor and search for the characters to be processed one by one, which is cumbersome.

发明内容Summary of the invention

根据本申请的各种实施例,提供一种信息处理方法、装置、移动终端及非易失性可读存储介质。According to various embodiments of the present application, an information processing method, apparatus, mobile terminal, and non-volatile readable storage medium are provided.

一种信息处理方法,包括:An information processing method includes:

获取输入的查找字符串;Get the input search string;

在输入框中查找与所述查找字符串匹配的字符串,并将所述匹配的字符串设置为选中状态;Finding a string matching the search string in an input box, and setting the matched string to a selected state;

当接收到键盘按下事件时,获取按下的键盘所属的键盘类型;When a keyboard press event is received, the keyboard type to which the pressed keyboard belongs is obtained;

根据所述键盘类型对处于选中状态的字符串进行处理。The character string in the selected state is processed according to the keyboard type.

一种信息处理装置,包括:An information processing apparatus comprising:

字符串获取模块,用于获取输入的查找字符串;a string obtaining module, configured to obtain an input search string;

查找模块,用于在输入框中查找与所述查找字符串匹配的字符串,并将所述匹配的字符串设置为选中状态; a searching module, configured to search for a string matching the search string in the input box, and set the matched string to a selected state;

事件接收模块,用于当接收到键盘按下事件时,获取按下的键盘所属的键盘类型;An event receiving module, configured to acquire a keyboard type to which the pressed keyboard belongs when receiving a keyboard pressing event;

处理模块,用于根据所述键盘类型对处于选中状态的字符串进行处理。And a processing module, configured to process the character string in the selected state according to the keyboard type.

一种移动终端,包括存储器及处理器,所述存储器中储存有计算机可执行指令,所述计算机可执行指令被所述处理器执行时,使得所述处理器执行时实现如上所述的方法。A mobile terminal comprising a memory and a processor, the memory storing computer executable instructions, the computer executable instructions being executed by the processor such that when executed by the processor, the method as described above is implemented.

一个或多个存储有计算机可执行指令的非易失性可读存储介质,所述计算机可执行指令被一个或多个处理器执行时,使得所述一个或多个处理器执行时实现如上所述的方法。One or more non-volatile readable storage media storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to be implemented as described above The method described.

本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features, objects, and advantages of the invention will be apparent from the description and appended claims.

附图说明DRAWINGS

为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.

图1为一个实施例中信息处理方法的应用场景图;1 is an application scenario diagram of an information processing method in an embodiment;

图2为一个实施例中移动终端的框图;2 is a block diagram of a mobile terminal in an embodiment;

图3为一个实施例中信息处理方法的流程图;3 is a flow chart of an information processing method in an embodiment;

图4为一个实施例中查找与查找字符串匹配的字符串的流程图;4 is a flow chart of finding a string matching a search string in one embodiment;

图5为一个实施例中当键盘类型为字符键时,根据预设标志位分别对处于选中状态的字符串进行处理的流程图;FIG. 5 is a flowchart of processing a character string in a selected state according to a preset flag bit when a keyboard type is a character key in an embodiment; FIG.

图6为一个实施例中当键盘类型为左方向键时,根据预设标志位分别对处于选中状态的字符串进行处理的流程图;6 is a flowchart of processing a character string in a selected state according to a preset flag bit when a keyboard type is a left direction key in an embodiment;

图7为一个实施例中当键盘类型为右方向键时,根据预设标志位分别对处于选中状态的字符串进行处理的流程图; FIG. 7 is a flowchart of processing a character string in a selected state according to a preset flag bit when a keyboard type is a right direction key in an embodiment; FIG.

图8为一个实施例中当键盘类型为上方向键时,根据预设标志位分别对处于选中状态的字符串进行处理的流程图;FIG. 8 is a flowchart of processing a character string in a selected state according to a preset flag bit when the keyboard type is an up direction key in an embodiment; FIG.

图9为一个实施例中当键盘类型为下方向键时,根据预设标志位分别对处于选中状态的字符串进行处理的流程图;FIG. 9 is a flowchart of processing a character string in a selected state according to a preset flag bit when a keyboard type is a down direction key in an embodiment; FIG.

图10为一个实施例中查找字符串发生更新时重新进行查找的流程图;10 is a flow chart of re-finding when a search string is updated in an embodiment;

图11为一个实施例中信息处理装置的框图;Figure 11 is a block diagram of an information processing apparatus in an embodiment;

图12为另一个实施例中移动终端的框图。Figure 12 is a block diagram of a mobile terminal in another embodiment.

具体实施方式Detailed ways

为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处所描述的具体实施例仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.

可以理解,本申请所使用的术语“第一”、“第二”等可在本文中用于描述各种元件,但这些元件不受这些术语限制。这些术语仅用于将第一个元件与另一个元件区分。举例来说,在不脱离本申请的范围的情况下,可以将第一客户端称为第二客户端,且类似地,可将第二客户端称为第一客户端。第一客户端和第二客户端两者都是客户端,但其不是同一客户端。It will be understood that the terms "first", "second" and the like, as used herein, may be used to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish one element from another. For example, a first client may be referred to as a second client, and similarly, a second client may be referred to as a first client, without departing from the scope of the present application. Both the first client and the second client are clients, but they are not the same client.

图1为一个实施例中信息处理方法的应用场景图。如图1所示,移动终端10上可设置有虚拟键盘104,可通过点击虚拟键盘104在输入框102中输入字符。移动终端10可获取输入的查找字符串,并在输入框102输入的字符中查找与查找字符串匹配的字符串,并将该匹配的字符串设置为选中状态。当移动终端10接收到虚拟键盘104的键盘按下事件时,可获取按下的键盘所属的键盘类型,根据键盘类型对输入框102中处于选中状态的字符串进行处理。可以理解地,移动终端除了设置虚拟键盘104外,也可以通过外接的实体键盘等输入字符,并不限于此。FIG. 1 is an application scenario diagram of an information processing method in an embodiment. As shown in FIG. 1, a virtual keyboard 104 can be disposed on the mobile terminal 10, and characters can be input in the input box 102 by clicking the virtual keyboard 104. The mobile terminal 10 can acquire the input search string, and find a character string matching the search string in the character input in the input box 102, and set the matched character string to the selected state. When the mobile terminal 10 receives the keyboard press event of the virtual keyboard 104, the keyboard type to which the pressed keyboard belongs can be acquired, and the character string in the input state of the input box 102 is processed according to the keyboard type. It can be understood that the mobile terminal can input characters through an external physical keyboard or the like in addition to the virtual keyboard 104, and is not limited thereto.

图2为一个实施例中移动终端的框图。如图2所示,该移动终端包括通过系统总线连接的处理器、非易失性存储介质、内存储器和网络接口、显示 屏和输入装置。其中,移动终端的非易失性存储介质存储有操作系统及计算机可执行指令,该计算机可执行指令被处理器执行时以实现本申请实施例中提供的一种信息处理方法。该处理器用于提供计算和控制能力,支撑整个移动终端的运行。移动终端中的内存储器为非易失性存储介质中的计算机可读指令的运行提供环境。网络接口用于与服务器进行网络通信。移动终端的显示屏可以是液晶显示屏或者电子墨水显示屏等,输入装置可以是显示屏上覆盖的触摸层,也可以是移动终端外壳上设置的按键、轨迹球或触控板,也可以是外接的键盘、触控板或鼠标等。该移动终端可以是手机、平板电脑或者个人数字助理或穿戴式设备等。本领域技术人员可以理解,图2中示出的结构,仅仅是与本申请方案相关的部分结构的框图,并不构成对本申请方案所应用于其上的移动终端的限定,具体的移动终端可以包括比图中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。2 is a block diagram of a mobile terminal in one embodiment. As shown in FIG. 2, the mobile terminal includes a processor connected through a system bus, a non-volatile storage medium, an internal memory and a network interface, and a display. Screen and input device. The non-volatile storage medium of the mobile terminal stores an operating system and computer-executable instructions, and the computer-executable instructions are executed by the processor to implement an information processing method provided in the embodiments of the present application. The processor is used to provide computing and control capabilities to support the operation of the entire mobile terminal. The internal memory in the mobile terminal provides an environment for the operation of computer readable instructions in a non-volatile storage medium. The network interface is used for network communication with the server. The display screen of the mobile terminal may be a liquid crystal display or an electronic ink display screen. The input device may be a touch layer covered on the display screen, or may be a button, a trackball or a touchpad provided on the casing of the mobile terminal, or may be An external keyboard, trackpad, or mouse. The mobile terminal can be a mobile phone, a tablet or a personal digital assistant or a wearable device. A person skilled in the art can understand that the structure shown in FIG. 2 is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation of the mobile terminal to which the solution of the present application is applied. The specific mobile terminal may It includes more or fewer components than those shown in the figures, or some components are combined, or have different component arrangements.

如图3所示,在一个实施例中,提供一种信息处理方法,包括以下步骤:As shown in FIG. 3, in an embodiment, an information processing method is provided, including the following steps:

步骤310,获取输入的查找字符串。Step 310: Acquire an input search string.

用户在移动终端的输入框中输入字符,当需要对输入的字符进行处理时,例如删除一个或多个输入的字符,或是将一个或多个输入的字符替换为新的字符等,可先通过键盘输入查找字符串,该查找字符串可包括一个或多个字符,移动终端可根据查找字符串定位输入框中需要进行处理的字符。输入框中输入的字符可包括但不限于字母、文字、数字及符号等。The user inputs characters in the input box of the mobile terminal. When it is necessary to process the input characters, for example, deleting one or more input characters, or replacing one or more input characters with new characters, etc., The search string is input through a keyboard, and the search string can include one or more characters, and the mobile terminal can locate the character to be processed in the input box according to the search string. The characters entered in the input box may include, but are not limited to, letters, characters, numbers, symbols, and the like.

在一个实施例中,移动终端可在键盘上设置选择键,该选择键可用于与字符键进行组合使用,当选择键处于按下状态时,用户可通过点击字符键输入查找字符串,其中,字符键可包括但不限于字母键、数字键、符号键等可用于输入字符的按键。例如,移动终端可定义查找字符串的初始值为空,当选择键处于按下状态时,用户点击字母键“a”,则查找字符串可更新为“a”。当选择键处于松开状态时,用户点击字符键则正常在输入框中输入字符。选择键可以是键盘中重新设置的键,也可以是键盘中原本的某个键,例如alt 键等,但不限于此。移动终端也可在屏幕上设置查找开关,当查找开关处于开启状态时,可通过点击字符键输入查找字符串,当查找开关处于关闭状态时,通过点击字符键则正常在输入框中输入字符。In an embodiment, the mobile terminal can set a selection key on the keyboard, and the selection key can be used in combination with the character key. When the selection key is in the pressed state, the user can input the search string by clicking the character key, wherein Character keys can include, but are not limited to, alphanumeric keys, numeric keys, symbol keys, and the like that can be used to enter characters. For example, the mobile terminal can define that the initial value of the search string is null. When the user selects the key to press the state, the user clicks the letter key "a", and the search string can be updated to "a". When the selection button is released, the user clicks the character key to enter characters normally in the input box. The selection key can be a key reset in the keyboard, or it can be a key in the keyboard, such as alt. Keys, etc., but are not limited to this. The mobile terminal can also set a search switch on the screen. When the search switch is turned on, the search string can be input by clicking the character key. When the search switch is turned off, the character is normally input in the input box by clicking the character key.

步骤320,在输入框中查找与查找字符串匹配的字符串,并将匹配的字符串设置为选中状态。Step 320: Find a string matching the search string in the input box, and set the matched string to the selected state.

移动终端可获取输入的查找字符串,并在输入框输入的字符中查找与查找字符串匹配的字符串,与查找字符串匹配的字符串可指的是输入的字符中存在的与查找字符串相同的字符串。若在输入框输入的字符中查找到与字符串匹配的字符串,可将该匹配的字符串设置为选中状态。在一个实施例中,移动终端可按照预设格式对处于选中状态的字符串进行标示,比如,可将处于选中状态的字符串调整为预设颜色,或是在处于选中状态的字符串下添加下划线,也可以是将处于选中状态的字符串的背景填充为预设颜色等,但不限于此。The mobile terminal can obtain the input search string, and find a string matching the search string in the character input in the input box, and the string matching the search string can refer to the search string existing in the input character. The same string. If a string matching the string is found in the characters entered in the input box, the matching string can be set to the selected state. In an embodiment, the mobile terminal may mark the selected character string according to a preset format, for example, the selected character string may be adjusted to a preset color, or may be added under the selected character string. The underline may be filled with the background of the character string in the selected state as a preset color or the like, but is not limited thereto.

例如,移动终端获取的输入的查找字符串为“abc”,输入框中输入的字符包括“kslfjabckfj”,则可在该输入的字符“kslfjabckfj”中查找到与查找字符串匹配的字符串,并将该匹配的字符串设置为选中状态,并可对处于选中状态的字符串进行标示,可展示为“kslfjabckfj”,其中,带有下划线部分的字符串则可表示处于选中状态。For example, if the input string of the input obtained by the mobile terminal is “abc” and the character input in the input box includes “kslfjabckfj”, the character string matching the search string can be found in the input character “kslfjabckfj”, and The matching string is set to the selected state, and the character string in the selected state can be marked as "kslfj abc kfj", wherein the string with the underlined portion indicates that the character string is selected.

步骤330,当接收到键盘按下事件时,获取按下的键盘所属的键盘类型。Step 330: When receiving a keyboard press event, obtain the keyboard type to which the pressed keyboard belongs.

移动终端可对键盘按下事件进行监听,当接收到键盘按下事件时,可获取按下的键盘,并确定该键下的键盘所属的键盘类型,其中,键盘类型可包括但不限于字符键、删除键、左方向键、右方向键、上方向键及下方向键等。The mobile terminal can monitor the keyboard press event. When receiving the keyboard press event, the pressed keyboard can be obtained, and the keyboard type to which the keyboard under the key belongs is determined, wherein the keyboard type can include but is not limited to a character key. , delete button, left arrow button, right arrow button, up arrow button and down arrow button.

步骤340,根据键盘类型对处于选中状态的字符串进行处理。Step 340, processing the character string in the selected state according to the keyboard type.

移动终端可根据按下的键盘所属的键盘类型,对输入框输入的字符中处于选中状态的字符串进行相应的处理,对处于选中状态的字符串进行的处理可包括但不限于删除处于选中状态的字符串、将处于选中状态的字符串替换为新的字符、变更输入框中处于选中状态的字符串等,其中,变更输入框中 处于选中状态的字符串可包括将处于未选中状态的字符变更为选中状态,或是将处于选中状态的字符变更为未选中状态等。The mobile terminal may perform corresponding processing on the character string selected in the input box according to the type of the keyboard to which the pressed keyboard belongs, and the processing of the character string in the selected state may include, but is not limited to, deleting the selected state. a string, a string that is selected to be replaced with a new character, a string that is selected in the change input box, etc., where the input box is changed The selected string may include changing the character that is not selected to the selected state, or changing the character that is selected to the unselected state.

移动终端可预先设定与各个键盘类型对应的处理方式,例如,删除键对应的处理方式可以是删除处于选中状态的字符串,字符键对应的处理方式可以是将处于选中状态的字符串替换按下的字符键对应的字符等,但不限于此。移动终端确定按下的键盘所属的键盘类型,可根据该键盘类型对应的处理方式对输入框中处于选中状态的字符串进行处理。The mobile terminal can preset the processing mode corresponding to each keyboard type. For example, the processing method corresponding to the delete key may be to delete the character string in the selected state, and the processing method corresponding to the character key may be to replace the character string in the selected state. The character corresponding to the character key below, etc., but is not limited to this. The mobile terminal determines the type of the keyboard to which the pressed keyboard belongs, and can process the character string in the input box according to the processing mode corresponding to the keyboard type.

在本实施例中,获取输入的查找字符串,在输入框中查找与查找字符串匹配的字符串,并将匹配的字符串设置为选中状态,当接收到键盘按下事件时,可根据按下的键盘所属的键盘类型对处于选中状态的字符串进行相应的处理,可快速定位输入框中需要进行处理的字符串,无需用户手动逐个进行查找,操作简便。In this embodiment, the input search string is obtained, the string matching the search string is searched in the input box, and the matched string is set to the selected state. When the keyboard press event is received, The keyboard type to which the keyboard belongs belongs to the character string in the selected state, and can quickly locate the character string that needs to be processed in the input box, without the user manually searching one by one, and the operation is simple.

如图4所示,在一个实施例中,步骤320在输入框中查找与查找字符串匹配的字符串,并将匹配的字符串设置为选中状态,包括以下步骤:As shown in FIG. 4, in one embodiment, step 320 searches for a string matching the lookup string in the input box, and sets the matched string to the selected state, including the following steps:

步骤402,获取输入框中的光标位置。Step 402: Acquire a cursor position in the input box.

用户通过点击移动终端的键盘在输入框中输入字符,输入框中可显示光标,光标可用于表示将要输入的字符的位置,可选地,光标可以是规则闪动的小竖线,也可以是规则闪动的小横线等。当移动终端查找输入框输入的字符中与查找字符串匹配的字符串时,可获取当前输入框中的光标位置。输入框中的光标可位于任意一个字符的前面或后面,在一个实施例中,可定义光标位置为P,P=N可表示光标位于输入框的第N个字符的后面,或是第N+1个字符的前面,其中,N可为大于或等于0的整数。例如,移动终端获取的光标位置P=0,表示光标位于输入框第一个字符的前面,获取的光标位置P=3,表示光标位于输入框第3个字符的后面等。The user inputs a character in the input box by clicking the keyboard of the mobile terminal, and the cursor can be displayed in the input box. The cursor can be used to indicate the position of the character to be input. Alternatively, the cursor can be a small vertical line with a regular flashing, or Rules flashing small horizontal lines, etc. When the mobile terminal searches for a character string matching the search string among the characters input in the input box, the cursor position in the current input box can be obtained. The cursor in the input box can be located before or after any one character. In one embodiment, the cursor position can be defined as P, P=N can indicate that the cursor is behind the Nth character of the input box, or N+ The front of 1 character, where N can be an integer greater than or equal to 0. For example, the cursor position P=0 acquired by the mobile terminal indicates that the cursor is located in front of the first character of the input box, and the acquired cursor position P=3 indicates that the cursor is located behind the third character of the input box.

步骤404,从光标位置向前查找与查找字符串匹配的字符串。Step 404, searching for a string matching the search string from the cursor position.

移动终端获取输入框的光标位置后,可从光标位置向前查找与查找字符串匹配的字符串,在一个实施例中,移动终端可先判断光标是否位于第一个 字符的前面,也即,可先判断光标位置P是否为0,若是,则可直接从输入框的最后一个字符向前查找与查找字符串匹配的字符串,若否,则可从光标位置向前查找与查找字符串匹配的字符串。After the mobile terminal obtains the cursor position of the input box, the character string matching the search string can be searched forward from the cursor position. In one embodiment, the mobile terminal can first determine whether the cursor is located first. The front of the character, that is, the cursor position P can be first determined to be 0. If yes, the string matching the search string can be directly searched from the last character of the input box. If not, the cursor position can be Find the string that matches the lookup string before.

步骤406,判断是否查找到与查找字符串匹配的字符串,若是,则执行步骤408,若否,则执行步骤410。Step 406: Determine whether a string matching the search string is found. If yes, go to step 408. If no, go to step 410.

移动终端可判断在光标位置向前的字符中,是否存在与查找字符串匹配的字符串。若在光标位置向前的字符中查找到与查找字符串匹配的字符串,则可将首次查找到的匹配的字符串设置为选中状态。在一个实施例中,移动终端可定义首次查找到的匹配的字符串的位置为PK,当PK=0时,可表示没有查找到与查找字符串匹配的字符串。若PK不等于0,可表示查找到与查找字符串匹配的字符串,移动终端可定义处于选中状态的字符个数为SL,可获取查找字符串的字符个数,并令SL=查找字符串的字符个数,可设置从输入框的第PK个字符开始的SL个字符为选中状态,其中,PK及SL均可以是大于或等于0的整数,SL可用于表示处于选中状态的字符个数。The mobile terminal can determine whether there is a character string matching the search string in the character forward of the cursor position. If a string matching the search string is found in the character preceding the cursor position, the matching string found for the first time can be set to the selected state. In one embodiment, the mobile terminal may define that the location of the matched string that is first found is PK, and when PK=0, it may indicate that no string matching the search string is found. If the PK is not equal to 0, it can be found that the string matching the search string is found. The mobile terminal can define the number of characters in the selected state to be SL, obtain the number of characters in the search string, and let SL = find the string. The number of characters can be set from the PK characters of the input box to the selected state, wherein PK and SL can both be integers greater than or equal to 0, and SL can be used to indicate the number of characters in the selected state. .

步骤408,将首次查找到的匹配的字符串设置为选中状态。In step 408, the matching string found for the first time is set to the selected state.

步骤410,从输入框中最后一个字符向前查找与查找字符串匹配的字符串。Step 410: Find the string matching the search string from the last character in the input box.

若从光标位置向前没有查找到与查找字符串匹配的字符串,移动终端可从输入框的最后一个字符向前查找与查找字符串匹配的字符串,并判断是否查找到与查找字符串匹配的字符串。If no character string matching the search string is found from the cursor position, the mobile terminal can look up the string matching the search string from the last character of the input box, and determine whether it matches the search string. String.

步骤412,判断是否查找到与查找字符串匹配的字符串,若是,则执行步骤408,若否,则执行步骤414。In step 412, it is determined whether a string matching the search string is found. If yes, step 408 is performed, and if no, step 414 is performed.

移动终端从输入框的最后一个字符向前查找与查找字符串匹配的字符串,若首次查找到的匹配的字符串的位置PK依然为0,则可说明输入框输入的字符中不存在与查找字符串匹配的字符串,可结束查找。若PK不等于0,可表示查找到与查找字符串匹配的字符串,移动终端可获取查找字符串的字符个数,令SL=查找字符串的字符个数,并可设置从输入框的第PK个字符 开始的SL个字符为选中状态。在一个实施例中,若没有在输入的字符中查找到与查找字符串匹配的字符串,可进行提示,提示没有查找到字符串,方便用户获取后更新查找字符串重新进行查找。The mobile terminal searches for the string matching the search string from the last character of the input box. If the position of the matching string found in the first time PK is still 0, it indicates that the character input in the input box does not exist and is searched. A string matching string that ends the lookup. If the PK is not equal to 0, it can be found that the string matching the search string is found, and the mobile terminal can obtain the number of characters of the search string, so that SL= finds the number of characters of the string, and can set the number from the input box. PK characters The starting SL characters are selected. In an embodiment, if a string matching the search string is not found in the input character, a prompt may be displayed to prompt that the string is not found, so that the user can obtain the updated search string and perform the search again.

在一个实施例中,移动终端将首次查找到的与查找字符串匹配的字符串设置为选中状态后,可将光标位置设置在处于选中状态的字符串的最后一个字符之后,可令光标位置P=PK+SL-1,即可将光标移动到最后一个处于选中状态的字符后面。In an embodiment, after the mobile terminal sets the first searched string matching the search string to the selected state, the cursor position can be set after the last character of the selected character string, and the cursor position P can be made. =PK+SL-1, you can move the cursor to the last character that is selected.

举个例子对上述查找与查找字符串匹配的字符串的过程进行说明。移动终端获取的输入的查找字符串为“abc”,输入框中输入的字符包括“kslfjabckfj”,可获取光标位置P=6,光标位于第6个字符“a”后面,则先从该光标位置向前查找与查找字符串“abc”匹配的字符串,从光标位置向前的字符“kslfja”不存在字符串“abc”,没有查找到匹配的字符串。移动终端可从最后一个字符“j”向前查找与查找字符串“abc”匹配的字符串,则可查找到匹配的字符串,首次查找到该匹配的字符串的位置PK=6,则移动终端可设置从第6个字符“a”开始的3个字符为选中状态,可展示为“kslfjabckfj”,其中,带有下划线部分的字符串则可表示处于选中状态。An example of the above process of finding a string that matches a search string is described. The input search string obtained by the mobile terminal is “abc”, the character input in the input box includes “kslfjabckfj”, and the cursor position P=6 can be obtained, and the cursor is located behind the sixth character “a”, then the cursor position is first. Looking forward to the string matching the search string "abc", the character "kslfja" from the cursor position forward does not have the string "abc", and no matching string is found. The mobile terminal can look up the string matching the search string "abc" from the last character "j", and then find the matching string, and find the position of the matched string for the first time PK=6, then move The terminal can set the 3 characters starting from the 6th character "a" to be selected, and can be displayed as "kslfj abc kfj", wherein the string with the underlined portion can indicate that it is selected.

步骤414,结束查找。In step 414, the search ends.

在本实施例中,可快速定位输入框中需要进行处理的字符串,无需用户手动逐个进行查找,操作简便。In this embodiment, the character string that needs to be processed in the input box can be quickly located, and the user does not need to manually search one by one, and the operation is simple.

在一个实施例中,步骤340根据键盘类型对处于选中状态的字符串进行处理,包括:获取预设标志位,在不同的键盘类型下,根据预设标志位分别对处于选中状态的字符串进行处理。In an embodiment, the step 340 processes the character string in the selected state according to the keyboard type, including: acquiring a preset flag bit, and performing, under different keyboard types, the character string in the selected state according to the preset flag bit. deal with.

当移动终端接收到键盘按下事件时,可获取预设标志位,其中,预设标志位可用于表示预设的选择键的状态,预设标志位可包括第一标志及第二标志,第一标志可用于表示选择键处于按下状态,第二标志可用于表示选择键处于松开状态。可选地,第一标志及第二标志可用不同的字符串进行表示,该字符串可由字母、数字、符号等中的一种或多种组成,例如,第一标志为 “true”,第二标志为“false”,或是第一标志为“1”,第二标志为“0”等,但不限于此。When the mobile terminal receives the keyboard press event, the preset flag bit may be acquired, where the preset flag bit may be used to indicate the state of the preset selection button, and the preset flag bit may include the first flag and the second flag, A flag can be used to indicate that the selection button is in the depressed state, and a second flag can be used to indicate that the selection button is in the released state. Optionally, the first flag and the second flag may be represented by different strings, and the string may be composed of one or more of letters, numbers, symbols, and the like. For example, the first flag is "true", the second flag is "false", or the first flag is "1", the second flag is "0", etc., but is not limited thereto.

移动终端获取按下的键盘所属的键盘类型,可根据预设标志位分别对处于选中状态的字符串进行处理,不同的键盘类型在不同的预设标志位下可分别对应不同的处理方式。移动终端获取按下的键盘所属的键盘类型,可先判断预设的选择键处于按下状态还是松开状态,在该键盘类型下可获取与选择键的状态对应的处理方式对处于选中状态的字符串进行处理。The mobile terminal obtains the type of the keyboard to which the pressed keyboard belongs, and can process the character string in the selected state according to the preset flag bit. Different keyboard types can respectively correspond to different processing modes under different preset flag bits. The mobile terminal acquires the type of the keyboard to which the pressed keyboard belongs, and can first determine whether the preset selection key is in a pressed state or a released state, and the processing mode corresponding to the state of the selection key can be obtained in the selected state. The string is processed.

可选地,如图5所示,步骤根据预设标志位分别对处于选中状态的字符串进行处理,包括步骤502~步骤506:Optionally, as shown in FIG. 5, the step processes the character string in the selected state according to the preset flag bit, and includes steps 502 to 506:

步骤502,获取与键盘按下事件对应的输入字符。Step 502: Acquire an input character corresponding to a keyboard press event.

当用户点击键盘的字符键时,移动终端可接收到被点击的按键的按下事件,并可确定按下的键盘所属的键盘类型为字符键。移动终端可获取与键盘按下事件对应的输入字符,比如,用户点击字母键“a”,则移动终端可接收到字母键“a”的按下事件,并确定键盘类型为字符键,可获取与该按下事件对应的输入字符为“a”。When the user clicks the character key of the keyboard, the mobile terminal can receive the pressing event of the clicked button, and can determine that the type of the keyboard to which the pressed keyboard belongs is a character key. The mobile terminal can obtain an input character corresponding to the keyboard pressing event. For example, if the user clicks the letter key “a”, the mobile terminal can receive the pressing event of the letter key “a”, and determine that the keyboard type is a character key, and can be obtained. The input character corresponding to the press event is "a".

步骤504,当预设标志位为第一标志时,在查找字符串后添加输入字符,并更新查找字符串。Step 504: When the preset flag is the first flag, add an input character after the string is searched, and update the search string.

当预设标志位为第一标志时,可说明选择键处于按下状态,当选择键处于按下状态时,可输入查找字符串。移动终端可在原有的查找字符串后添加与键盘按下事件对应的输入字符,并更新查找字符串。例如,原来的查找字符串为“abc”,用户点击字母键“a”,移动终端接收到字母键“a”的按下事件,获取对应的输入字符“a”,若当前选择键处于按下状态,则可在原来的查找字符串“abc”后添加输入字符“a”,更新后的查找字符串可为“abca”。When the preset flag is the first flag, it indicates that the selection button is in the pressed state, and when the selection button is in the pressed state, the search string can be input. The mobile terminal can add an input character corresponding to the keyboard press event after the original search string, and update the search string. For example, if the original search string is "abc", the user clicks the letter key "a", and the mobile terminal receives the press event of the letter key "a", and obtains the corresponding input character "a", if the current selection key is pressed. In the state, the input character "a" can be added after the original search string "abc", and the updated search string can be "abca".

步骤506,当预设标志位为第二标志时,将处于选中状态的字符串替换为输入字符。Step 506: When the preset flag is the second flag, replace the character string in the selected state with the input character.

当预设标志位为第二标志时,可说明选择键处于松开状态,若选择键处于松开状态,则移动终端可将输入框中处于选中状态的字符串替换为输入字 符。例如,输入框中的字符包含“kslfjabckfj”,其中,带有下划线部分的字符串为处于选中状态的字符串,用户点击字母键“a”,移动终端接收到字母键“a”的按下事件,获取对应的输入字符“a”,若当前选择键处于松开状态,则可将处于选中状态的字符串“abc”替换为输入字符“a”,则输入框中的字符可变更为“kslfjakfj”。When the preset flag is the second flag, it indicates that the selection button is in the released state, and if the selection button is in the released state, the mobile terminal can replace the character string in the input box with the input character with the input character. For example, the character in the input box contains "kslfj abc kfj", wherein the string with the underlined part is the string in the selected state, the user clicks the letter key "a", and the mobile terminal receives the press of the letter key "a". The next event, the corresponding input character "a" is obtained. If the current selection key is in the released state, the character string "abc" in the selected state can be replaced with the input character "a", and the character in the input box can be changed more. "kslfjakfj".

在一个实例中,移动终端接收到字符键的按下事件,若预设标志位为第二标志,移动终端可获取光标位置P,若此时光标位置P位于处于选中状态的字符串的最后一个字符之后,则可令P=P-SL,将光标位置移动到处于选中状态的字符串的第一个字符之前。移动终端可删除光标位置P后处于选中状态的字符,并在光标位置处插入输入字符,同时可设置P=P+1,将光标移动到输入字符之后。In an example, the mobile terminal receives the pressing event of the character key. If the preset flag is the second flag, the mobile terminal can acquire the cursor position P, and if the cursor position P is located at the last character of the selected character string. After the character, you can let P=P-SL move the cursor position before the first character of the selected character string. The mobile terminal can delete the character that is selected after the cursor position P, and insert the input character at the cursor position, and can set P=P+1 to move the cursor after the input character.

可选地,步骤根据预设标志位分别对处于选中状态的字符串进行处理,包括步骤(1)和步骤(2):Optionally, the step processes the character string in the selected state according to the preset flag bit, including step (1) and step (2):

步骤(1),当预设标志位为第一标志时,删除查找字符串的最后一个字符,并更新查找字符串。In step (1), when the preset flag is the first flag, the last character of the search string is deleted, and the search string is updated.

当移动终端接收到删除键的按下事件时,可判断选择键是否处于按下状态。移动终端可读取预设标志标,当预设标志位为第一标志时,可说明选择键处于按下状态,当选择键处于按下状态时,可删除查找字符串的字符。移动终端可删除原有的查找字符串的最后一个字符,并更新查找字符串。例如,例如,原来的查找字符串为“abc”,移动终端接收到删除键的按下事件,若当前选择键处于按下状态,则可删除原来的查找字符串“abc”的最后一个字符“c”,更新后的查找字符串可为“ab”。When the mobile terminal receives the press event of the delete key, it can be determined whether the select key is in the pressed state. The mobile terminal can read the preset flag. When the preset flag is the first flag, it indicates that the selection button is in the pressed state, and when the selection button is in the pressed state, the character of the search string can be deleted. The mobile terminal can delete the last character of the original search string and update the search string. For example, for example, the original search string is “abc”, and the mobile terminal receives the press event of the delete key. If the current selection key is pressed, the last character of the original search string “abc” may be deleted. c", the updated search string can be "ab".

步骤(2),当预设标志位为第二标志时,删除处于选中状态的字符串。In step (2), when the preset flag is the second flag, the character string in the selected state is deleted.

当预设标志位为第二标志时,可说明选择键处于松开状态,若选择键处于松开状态,则移动终端可将输入框中处于选中状态的字符串删除。例如,输入框中的字符包含“kslfjabckfj”,其中,带有下划线部分的字符串为处于选中状态的字符串,移动终端接收到删除键的按下事件,若当前选择键处于 松开状态,则可删除处于选中状态的字符串“abc”,则输入框中的字符可变更为“kslfjkfj”。When the preset flag is the second flag, it indicates that the selection button is in the released state, and if the selection button is in the released state, the mobile terminal can delete the character string in the input box in the selected state. For example, the character in the input box contains "kslfj abc kfj", wherein the character string with the underlined part is the character string in the selected state, and the mobile terminal receives the press event of the delete key, if the current selection key is released. , you can delete the string "abc" in the selected state, the character in the input box can be changed to "kslfjkfj".

在一个实施例中,移动终端接收到删除键的按下事件,若预设标志位为第二标志,移动终端可先获取输入框中处于选中状态的字符个数SL,可先判断SL是否为0。若SL不为0,说明输入框中包含处于选中状态的字符,则移动终端可获取光标位置P,若此时光标位置P位于处于选中状态的字符串的最后一个字符之后,则可令P=P-SL,将光标位置移动到处于选中状态的字符串的第一个字符之前,并删除光标位置P后处于选中状态的字符。若SL=0,说明输入框中不存在处于选中状态的字符,则移动终端可获取光标位置P,并判断P是否为0。若P为0,说明光标位于输入框的第一个字符之前,则可不进行处理。若P不为0,则移动终端可删除在光标位置P前的一个字符,并可同时设置P=P-1。In an embodiment, the mobile terminal receives the press event of the delete key. If the preset flag is the second flag, the mobile terminal may first obtain the number of characters SL in the selected state in the input box, and may first determine whether the SL is 0. If SL is not 0, indicating that the input box contains the character in the selected state, the mobile terminal can obtain the cursor position P. If the cursor position P is located after the last character of the selected character string, then P= P-SL moves the cursor position to the first character of the character string in the selected state, and deletes the character that is selected after the cursor position P. If SL=0, it means that there is no character in the input box, the mobile terminal can obtain the cursor position P and judge whether P is 0. If P is 0, the cursor is not in front of the first character in the input box. If P is not 0, the mobile terminal can delete a character before the cursor position P, and can simultaneously set P=P-1.

在本实施例中,可将选择键与字符键、删除键等进行结合,根据选择键的状态可快速更新查找字符串的内容,或是对处于选中状态的字符串进行替按、删除等处理,操作简便快捷。In this embodiment, the selection key can be combined with the character key, the delete key, etc., according to the state of the selection key, the content of the search string can be quickly updated, or the character string in the selected state can be replaced or deleted. The operation is simple and quick.

在一个实施例中,如图6所示,步骤根据预设标志位分别对处于选中状态的字符串进行处理,包括步骤602~步骤606:In an embodiment, as shown in FIG. 6, the step processes the character string in the selected state according to the preset flag bit, and includes steps 602 to 606:

步骤602,当预设标志位为第一标志时,获取输入框的光标位置。Step 602: When the preset flag is the first flag, obtain the cursor position of the input box.

当移动终端接收到左方向键的按下事件时,可判断选择键是否处于按下状态。移动终端可读取预设标志标,当预设标志位为第一标志时,可说明选择键处于按下状态,移动终端可获取输入框的光标位置。When the mobile terminal receives the press event of the left direction key, it can be determined whether the selection key is in the pressed state. The mobile terminal can read the preset flag. When the preset flag is the first flag, it can be stated that the selection button is in the pressed state, and the mobile terminal can obtain the cursor position of the input box.

步骤604,当光标位置的前一个字符为选中状态时,将前一个字符设置为未选中状态。In step 604, when the previous character of the cursor position is selected, the previous character is set to an unselected state.

步骤606,当光标位置的前一个字符为未选中状态时,将前一个字符设置为选中状态。Step 606: When the previous character of the cursor position is unselected, the previous character is set to the selected state.

在一个实施例中,若预设标志位为第一标志,移动终端可获取光标位置P,并判断P是否为0,若P为0,说明光标位于输入框的第一个字符之前, 则可不进行处理。若P为不0,则移动终端可判断光标位置P的前一个字符是否为选中状态。若光标位置P的前一个字符为选中状态,则可将该前一个字符设置为未选中状态,同时可设置输入框中处于选中状态的字符个数SL=SL-1。若光标位置P的前一个字符为未选中状态,则可将该前一个字符设置为选中状态,同时可设置SL=SL+1。移动终端可同时将光标向前移动一位,设置P=P-1。In one embodiment, if the preset flag is the first flag, the mobile terminal can acquire the cursor position P and determine whether P is 0. If P is 0, the cursor is located before the first character of the input box. Then no processing is possible. If P is not 0, the mobile terminal can determine whether the previous character of the cursor position P is the selected state. If the previous character of the cursor position P is selected, the previous character can be set to the unselected state, and the number of characters in the input box that is selected can be set to SL=SL-1. If the previous character of the cursor position P is unchecked, the previous character can be set to the selected state, and SL=SL+1 can be set. The mobile terminal can move the cursor one bit forward and set P=P-1.

例如,输入框中的字符包含“kslfjabckfj”,其中,带有下划线部分的字符串为处于选中状态的字符串“abc”。移动终端接收到左方向键的按下事件,若当前选择键处于按下状态,移动终端可获取光标位置P=5,光标位于第5个字符“j”后面,光标位置的前一个字符“j”处于未选中状态,则可将前一个字符“j”设置为选中状态,输入框中处于选中状态的字符串从“abc”变更为“jabc”,可展示为“kslfjabckfj”。若移动终端获取的光标位置P=8,光标位于第8个字符“c”后面,光标位置的前一个字符“c”处于选中状态,则可将前一个字符“c”设置为未选中状态,输入框中处于选中状态的字符串从“abc”变更为“ab”,可展示为“kslfjabckfj”。For example, the character in the input box contains "kslfj abc kfj", where the underlined string is the string "abc" in the selected state. The mobile terminal receives the pressing event of the left direction key. If the current selection key is in the pressed state, the mobile terminal can acquire the cursor position P=5, the cursor is located behind the fifth character “j”, and the previous character “j” of the cursor position "Unchecked, the previous character "j" can be set to the selected state, and the character string selected in the input box is changed from "abc" to "jabc", which can be displayed as "kslf jabc kfj". If the cursor position acquired by the mobile terminal is P=8, the cursor is located behind the 8th character “c”, and the previous character “c” of the cursor position is selected, the previous character “c” can be set to the unselected state. The string selected in the input box is changed from "abc" to "ab" and can be displayed as "kslfj ab ckfj".

在一个实施例中,当移动终端接收到左方向键的按下事件,若预设标志位为第二标志,说明选择键处于松开状态,则移动终端可将输入框中所有处于选中状态的字符设置为未选中状态。移动终端可获取光标位置P,可定义输入框中所有字符个数为L,并设置P=(P+L)%(L+1),当P=0时,将光标移动到输入框的最后一个字符之后,若P不为0,则将光标向前移动一位,其中,L可为大于或等于0的整数。In an embodiment, when the mobile terminal receives the pressing event of the left direction key, if the preset flag is the second flag, indicating that the selection key is in the released state, the mobile terminal may select all the input boxes in the selected state. The character is set to unchecked. The mobile terminal can obtain the cursor position P, and can define the number of all characters in the input box to be L, and set P=(P+L)%(L+1). When P=0, move the cursor to the end of the input box. After a character, if P is not 0, the cursor is moved forward by one bit, where L can be an integer greater than or equal to 0.

可选地,如图7所示,步骤根据预设标志位分别对处于选中状态的字符串进行处理,包括步骤702~步骤706:Optionally, as shown in FIG. 7 , the step processes the character string in the selected state according to the preset flag bit, and includes steps 702 to 706:

步骤702,当预设标志位为第一标志时,获取输入框的光标位置。Step 702: When the preset flag is the first flag, obtain the cursor position of the input box.

当移动终端接收到右方向键的按下事件时,可判断选择键是否处于按下状态。移动终端可读取预设标志标,当预设标志位为第一标志时,可说明选择键处于按下状态,移动终端可获取输入框的光标位置。 When the mobile terminal receives the press event of the right direction key, it can be determined whether the selection key is in the pressed state. The mobile terminal can read the preset flag. When the preset flag is the first flag, it can be stated that the selection button is in the pressed state, and the mobile terminal can obtain the cursor position of the input box.

步骤704,当光标位置的后一个字符为选中状态时,将后一个字符设置为未选中状态。In step 704, when the next character of the cursor position is selected, the latter character is set to an unselected state.

在一个实施例中,若预设标志位为第一标志,移动终端可获取光标位置P,并判断P是否为L,若P为L,说明光标位于输入框的最后一个字符之后,则可不进行处理。若P为不L,则移动终端可判断光标位置P的后一个字符是否为选中状态。若光标位置P的后一个字符为选中状态,则可将该后一个字符设置为未选中状态,同时可设置输入框中处于选中状态的字符个数SL=SL-1。若光标位置P的后一个字符为未选中状态,则可将该后一个字符设置为选中状态,同时可设置SL=SL+1。移动终端可同时将光标向后移动一位,设置P=P+1。In an embodiment, if the preset flag is the first flag, the mobile terminal can acquire the cursor position P and determine whether P is L. If P is L, indicating that the cursor is located after the last character of the input box, the cursor may not be performed. deal with. If P is not L, the mobile terminal can determine whether the next character of the cursor position P is the selected state. If the next character of the cursor position P is selected, the latter character can be set to the unselected state, and the number of characters in the input box that is selected can be set to SL=SL-1. If the next character of the cursor position P is unchecked, the latter character can be set to the selected state, and SL=SL+1 can be set. The mobile terminal can move the cursor one bit at the same time and set P=P+1.

例如,输入框中的字符包含“kslfjabckfj”,其中,带有下划线部分的字符串为处于选中状态的字符串“abc”。移动终端接收到右方向键的按下事件,若当前选择键处于按下状态,移动终端可获取光标位置P=5,光标位于第6个字符“a”前面,光标位置的后一个字符“a”处于选中状态,则可将后一个字符“a”设置为未选中状态,输入框中处于选中状态的字符串从“abc”变更为“bc”,可展示为“kslfjabckfj”。若移动终端获取的光标位置P=8,光标位于第9个字符“k”前面,光标位置的后一个字符“k”处于未选中状态,则可将后一个字符“k”设置为选中状态,输入框中处于选中状态的字符串从“abc”变更为“abck”,可展示为“kslfjabckfj”。For example, the character in the input box contains "kslfj abc kfj", where the underlined string is the string "abc" in the selected state. The mobile terminal receives the pressing event of the right direction key. If the current selection key is in the pressed state, the mobile terminal can acquire the cursor position P=5, the cursor is located in front of the sixth character “a”, and the next character “a” at the cursor position "When selected, the next character "a" can be set to unchecked. The string in the input box is changed from "abc" to "bc" and can be displayed as "kslfja bc kfj". If the cursor position acquired by the mobile terminal is P=8, the cursor is located in front of the ninth character “k”, and the next character “k” of the cursor position is not selected, the latter character “k” may be set to the selected state. The string selected in the input box is changed from "abc" to "abck" and can be displayed as "kslfj abck fj".

步骤706,当光标位置的后一个字符为未选中状态时,将后一个字符设置为选中状态。In step 706, when the next character of the cursor position is unselected, the latter character is set to the selected state.

在一个实施例中,当移动终端接收到右方向键的按下事件,若预设标志位为第二标志,说明选择键处于松开状态,则移动终端可将输入框中所有处于选中状态的字符设置为未选中状态。移动终端可获取光标位置P,并设置P=(P+1)%(L+1),当P=L时,将光标移动到输入框的第一个字符之前,若P不为L,则可将光标向后移动一位。In an embodiment, when the mobile terminal receives the pressing event of the right direction key, if the preset flag is the second flag, indicating that the selection key is in the released state, the mobile terminal may select all the input boxes in the selected state. The character is set to unchecked. The mobile terminal can acquire the cursor position P and set P=(P+1)%(L+1). When P=L, move the cursor to the first character of the input box, if P is not L, then You can move the cursor one bit backward.

在本实施例中,可将选择键与左方向键、右方向键等进行结合,根据选 择键的状态可快速改变字符的选中状态,方便后续对处于选中状态的字符串进行处理,操作简便快捷。In this embodiment, the selection key can be combined with the left direction key, the right direction key, etc., according to the selection. The state of the key selection can quickly change the selected state of the character, which facilitates subsequent processing of the character string in the selected state, and the operation is simple and quick.

在一个实施例中,如图8所示,步骤根据预设标志位分别对处于选中状态的字符串进行处理,包括步骤802~步骤818。In an embodiment, as shown in FIG. 8, the step processes the character string in the selected state according to the preset flag bit, and includes steps 802 to 818.

步骤802,当预设标志位为第一标志时,获取输入框的光标位置。Step 802: When the preset flag is the first flag, obtain the cursor position of the input box.

当移动终端接收到上方向键的按下事件时,可判断选择键是否处于按下状态。移动终端可读取预设标志标,当预设标志位为第二标志时,可说明选择键处于松开状态,移动终端可暂时不进行处理。当预设标志位为第一标志时,可说明选择键处于按下状态,移动终端可获取输入框的光标位置。When the mobile terminal receives the press event of the up arrow key, it can be determined whether the select button is in the pressed state. The mobile terminal can read the preset flag. When the preset flag is the second flag, it can be stated that the selection button is in the released state, and the mobile terminal can temporarily not process. When the preset flag is the first flag, it can be stated that the selection button is in the pressed state, and the mobile terminal can acquire the cursor position of the input box.

步骤804,判断光标位置的前一个字符是否为选中状态,若是,则执行步骤806,若否,则执行步骤808。In step 804, it is determined whether the previous character of the cursor position is the selected state. If yes, step 806 is performed, and if no, step 808 is performed.

在一个实施例中,若预设标志位为第一标志,移动终端可获取光标位置P,并判断光标位置的前一个字符是否为选中状态,也即,可判断输入框的第P个字符是否处于选中状态。若第P个字符处于选中状态,则移动终端可从第P-SL个字符开始向前查找与查找字符串匹配的字符串,从光标位置向前的首个处于未选中状态的字符开始,向前查找与查找字符串匹配的字符串。若第P个字符处于未选中状态,则移动终端可直接从第P个字符向前查找与查找字符串匹配的字符串,从光标位置向前查找与查找字符串匹配的字符串。In an embodiment, if the preset flag is the first flag, the mobile terminal can acquire the cursor position P and determine whether the previous character of the cursor position is the selected state, that is, whether the P character of the input box can be determined whether Is selected. If the P character is selected, the mobile terminal can search for the character string matching the search string from the P-SL characters, starting from the first character in the unselected state at the cursor position, Find the string that matches the lookup string before. If the P character is unchecked, the mobile terminal can directly search for the character string matching the search string from the P character, and look up the string matching the search string from the cursor position.

步骤806,从光标位置向前的首个处于未选中状态的字符开始,向前查找与查找字符串匹配的字符串。Step 806, starting from the first character in the unselected state forward of the cursor position, and looking forward to the string matching the search string.

例如,移动终端获取的输入的查找字符串为“abc”,输入框中的字符包含“kslfjabckfj”,其中,带有下划线部分的字符串为处于选中状态的字符串“abc”。移动终端接收到上方向键的按下事件,若当前选择键处于按下状态,移动终端可获取光标位置P=8,光标位于第8个字符“c”后面,光标位置的前一个字符“c”处于选中状态,则可从光标位置向前的首个处于未选中状态的字符“j”开始,查找与查找字符串“abc”匹配的字符串。若查找与查找字符串匹配的字符串P=5,光标位于第5个字符“j”后面,光标位置的前一个 字符“j”处于未选中状态,则可直接从光标位置向前查找与查找字符串匹配的字符串。For example, the input search string obtained by the mobile terminal is "abc", and the character in the input box contains "kslfj abc kfj", wherein the character string with the underlined portion is the character string "abc" in the selected state. The mobile terminal receives the pressing event of the up direction key. If the current selection key is in the pressed state, the mobile terminal can acquire the cursor position P=8, the cursor is located after the 8th character “c”, and the previous character “c” of the cursor position "When selected, the first character "j" in the unselected state from the cursor position can be searched for a string matching the search string "abc". If the character string P=5 matching the search string is found, the cursor is located after the 5th character “j”, and the previous character “j” at the cursor position is unselected, then the search and lookup can be directly forward from the cursor position. A string that matches the string.

步骤808,从光标位置向前查找与查找字符串匹配的字符串。Step 808: Find a string matching the search string from the cursor position forward.

步骤810,判断是否查找到与查找字符串匹配的字符串,若是,则执行步骤812,若否,则执行步骤814。In step 810, it is determined whether a string matching the search string is found. If yes, step 812 is performed, and if no, step 814 is performed.

移动终端可判断从光标位置向前的首个处于未选中状态的字符开始,向前的字符中,是否存在与查找字符串匹配的字符串。若在光标位置向前的未处于选中状态的字符中查找到与查找字符串匹配的字符串,则可先将输入框中的所有字符设置为未选中状态,并将首次查找到的匹配的字符串设置为选中状态。在一个实施例中,移动终端可获取首次查找到的匹配的字符串的位置PK,并判断PK是否为0,若为0,则说明没有查找到匹配的字符串,若不为0,则可先将输入框中的所有字符设置为未选中状态,并获取查找字符串的字符个数,令SL=查找字符串的字符个数,可设置从输入框的第PK个字符开始的SL个字符为选中状态。The mobile terminal can judge whether the first character in the unselected state is forwarded from the cursor position, and whether there is a character string matching the search string in the forward character. If a string matching the search string is found in the character that is not selected at the cursor position, the characters in the input box may be first set to the unselected state, and the matching characters found for the first time may be found. The string is set to the selected state. In an embodiment, the mobile terminal may obtain the location PK of the first found matching string and determine whether the PK is 0. If it is 0, it indicates that no matching string is found. If not, the First set all the characters in the input box to unchecked state, and get the number of characters to find the string, so SL = find the number of characters in the string, you can set the SL characters from the PK character of the input box Is selected.

例如,移动终端获取的输入的查找字符串为“abc”,输入框中的字符包含“pabckslfjabckfj”,其中,带有下划线部分的字符串为处于选中状态的字符串。移动终端接收到上方向键的按下事件,若当前选择键处于按下状态,移动终端可获取光标位置P=12,光标位于第12个字符“c”后面,可从光标位置前的首个处于未选中状态的字符“j”开始,查找与查找字符串“abc”匹配的字符串。移动终端在光标位置向前的未处于选中状态的字符中,可查找到与查找字符串“abc”匹配的字符串,可先将输入框中的所有字符设置为未选中状态,并将首次查找到的匹配的字符串设置为选中状态,可展示为“pabckslfjabckfj”,处于选中状态的字符串发生了变化。For example, the input string of the input obtained by the mobile terminal is "abc", and the character in the input box contains "pabckslfj abc kfj", wherein the string with the underlined part is the character string in the selected state. The mobile terminal receives the pressing event of the up direction key. If the current selection key is in the pressed state, the mobile terminal can acquire the cursor position P=12, and the cursor is located behind the 12th character “c”, which can be the first one before the cursor position. Starts with the unselected character "j" and looks for a string that matches the lookup string "abc". The mobile terminal can find a string matching the search string "abc" in the character that is not in the selected state at the cursor position, and can first set all the characters in the input box to the unselected state, and will find the first time. The matching string is set to selected and can be displayed as "p abc kslfjabckfj", and the selected string has changed.

步骤812,将输入框中的所有字符设置为未选中状态,并将首次查找到的匹配的字符串设置为选中状态。In step 812, all the characters in the input box are set to the unselected state, and the matching string found for the first time is set to the selected state.

步骤814,从输入框的最后一个字符向前查找与查找字符串匹配的字符串。 Step 814: Find the string matching the search string from the last character of the input box.

若在光标位置向前的未处于选中状态的字符中没有查找到与查找字符串匹配的字符串,移动终端可从输入框的最后一个字符向前查找与查找字符串匹配的字符串,并判断是否查找到与查找字符串匹配的字符串。If the character string matching the search string is not found in the character that is not in the selected state at the cursor position, the mobile terminal can look up the string matching the search string from the last character of the input box, and judge Whether to find a string that matches the lookup string.

步骤816,判断是否查找到与查找字符串匹配的字符串,若是,则执行步骤812,若否,则执行步骤818。In step 816, it is determined whether a string matching the search string is found. If yes, step 812 is performed, and if no, step 818 is performed.

移动终端从输入框的最后一个字符向前查找与查找字符串匹配的字符串,若首次查找到的匹配的字符串的位置PK依然为0,则可说明输入框输入的字符中不存在与查找字符串匹配的字符串,可结束查找。若PK不等于0,可表示查找到与查找字符串匹配的字符串,移动终端可先将输入框中的所有字符设置为未选中状态,并获取查找字符串的字符个数,令SL=查找字符串的字符个数,可设置从输入框的第PK个字符开始的SL个字符为选中状态。The mobile terminal searches for the string matching the search string from the last character of the input box. If the position of the matching string found in the first time PK is still 0, it indicates that the character input in the input box does not exist and is searched. A string matching string that ends the lookup. If the PK is not equal to 0, it can be found that the string matching the search string is found. The mobile terminal can first set all the characters in the input box to the unselected state, and obtain the number of characters in the search string, so that SL=search The number of characters in the string can be set to SL characters starting from the PK character of the input box.

在一个实施例中,移动终端将首次查找到的与查找字符串匹配的字符串设置为选中状态后,可将光标位置设置在处于选中状态的字符串的最后一个字符之后,可令光标位置P=PK+SL-1,即可将光标移动到最后一个处于选中状态的字符后面。In an embodiment, after the mobile terminal sets the first searched string matching the search string to the selected state, the cursor position can be set after the last character of the selected character string, and the cursor position P can be made. =PK+SL-1, you can move the cursor to the last character that is selected.

步骤818,结束查找。At step 818, the search ends.

可选地,如图9所示,步骤根据预设标志位分别对处于选中状态的字符串进行处理,包括步骤902~步骤914:Optionally, as shown in FIG. 9, the step processes the character string in the selected state according to the preset flag bit, and includes steps 902 to 914:

步骤902,当预设标志位为第一标志时,获取输入框的光标位置。Step 902: When the preset flag is the first flag, obtain the cursor position of the input box.

当移动终端接收到下方向键的按下事件时,可判断选择键是否处于按下状态。移动终端可读取预设标志标,当预设标志位为第二标志时,可说明选择键处于松开状态,移动终端可暂时不进行处理。当预设标志位为第一标志时,可说明选择键处于按下状态,移动终端可获取输入框的光标位置。When the mobile terminal receives the press event of the down direction key, it can be judged whether the selection key is in the pressed state. The mobile terminal can read the preset flag. When the preset flag is the second flag, it can be stated that the selection button is in the released state, and the mobile terminal can temporarily not process. When the preset flag is the first flag, it can be stated that the selection button is in the pressed state, and the mobile terminal can acquire the cursor position of the input box.

步骤904,判断光标位置的后一个字符是否为选中状态,若是,则执行步骤906,若否,则执行步骤908。In step 904, it is determined whether the next character of the cursor position is the selected state. If yes, step 906 is performed, and if no, step 908 is performed.

在一个实施例中,若预设标志位为第一标志,移动终端可获取光标位置P,并判断光标位置的后一个字符是否为选中状态,也即,可判断输入框的第 P+1个字符是否处于选中状态。若第P+1个字符处于选中状态,则移动终端可从第P+SL+1个字符开始向后查找与查找字符串匹配的字符串,从光标位置向后的首个处于未选中状态的字符开始,向后查找与查找字符串匹配的字符串。若第P+1个字符处于未选中状态,则移动终端可直接从第P+1个字符向后查找与查找字符串匹配的字符串,从光标位置向后查找与查找字符串匹配的字符串。In an embodiment, if the preset flag is the first flag, the mobile terminal can acquire the cursor position P and determine whether the next character of the cursor position is selected, that is, the input box can be determined. Whether P+1 characters are selected. If the P+1 character is selected, the mobile terminal can search for the character string matching the search string backward from the P+SL+1 character, and the first one from the cursor position is in the unselected state. The character begins and looks backwards for the string that matches the lookup string. If the P+1 character is unchecked, the mobile terminal can directly search for the string matching the search string from the P+1 character, and search for the string matching the search string from the cursor position. .

步骤906,从光标位置向后的首个处于未选中状态的字符开始,向后查找与查找字符串匹配的字符串。In step 906, starting from the first position of the cursor in the unselected state, the backward looking for the string matching the search string.

例如,移动终端获取的输入的查找字符串为“abc”,输入框中的字符包含“kslfjabckfj”,其中,带有下划线部分的字符串为处于选中状态的字符串“abc”。移动终端接收到下方向键的按下事件,若当前选择键处于按下状态,移动终端可获取光标位置P=8,光标位于第9个字符“k”前面,光标位置的后一个字符“k”处于未选中状态,则可直接从光标位置向后查找与查找字符串匹配的字符串。若查找与查找字符串匹配的字符串P=5,光标位于第6个字符“a”前面,光标位置的后一个字符“a”处于选中状态,则移动终端可从光标位置向后的首个处于未选中状态的字符“k”开始,查找与查找字符串“abc”匹配的字符串。For example, the input search string obtained by the mobile terminal is "abc", and the character in the input box contains "kslfj abc kfj", wherein the character string with the underlined portion is the character string "abc" in the selected state. The mobile terminal receives the pressing event of the down direction key. If the current selection key is in the pressed state, the mobile terminal can acquire the cursor position P=8, the cursor is located in front of the ninth character “k”, and the next character “k” of the cursor position "Unchecked, you can search for the string matching the search string directly from the cursor position." If the character string P=5 matching the search string is found, the cursor is located in front of the sixth character "a", and the next character "a" at the cursor position is selected, the mobile terminal can be the first backward from the cursor position. The character "k" in the unselected state begins, looking for a string that matches the lookup string "abc".

步骤908,从光标位置向后查找与查找字符串匹配的字符串。In step 908, a string matching the search string is searched backward from the cursor position.

步骤910,判断是否查找到与查找字符串匹配的字符串,若是,则执行步骤912,若否,则执行步骤914。In step 910, it is determined whether a string matching the search string is found. If yes, step 912 is performed, and if no, step 914 is performed.

移动终端可判断从光标位置向后的首个处于未选中状态的字符开始,向后的字符中,是否存在与查找字符串匹配的字符串。若在光标位置向后的未处于选中状态的字符中查找到与查找字符串匹配的字符串,则可先将输入框中的所有字符设置为未选中状态,并将首次查找到的匹配的字符串设置为选中状态。在一个实施例中,移动终端可获取首次查找到的匹配的字符串的位置PK,并判断PK是否为0,若为0,则说明没有查找到匹配的字符串,若不为0,则可先将输入框中的所有字符设置为未选中状态,并获取查找字符 串的字符个数,令SL=查找字符串的字符个数,可设置从输入框的第PK个字符开始的SL个字符为选中状态。The mobile terminal can judge whether the first character in the unselected state is returned from the cursor position, and whether there is a character string matching the search string in the backward character. If a string matching the search string is found in a character that is not selected at the cursor position, the characters in the input box may be first set to the unselected state, and the matching characters found for the first time may be found. The string is set to the selected state. In an embodiment, the mobile terminal may obtain the location PK of the first found matching string and determine whether the PK is 0. If it is 0, it indicates that no matching string is found. If not, the First set all characters in the input box to unchecked and get the search characters The number of characters in the string, so that SL = the number of characters in the search string, and the SL characters from the PK character of the input box can be set to be selected.

步骤912,将输入框中的所有字符设置为未选中状态,并将首次查找到的匹配的字符串设置为选中状态。In step 912, all the characters in the input box are set to the unselected state, and the matching string found for the first time is set to the selected state.

例如,移动终端获取的输入的查找字符串为“abc”,输入框中的字符包含“pabckslfjabckfj”,其中,带有下划线部分的字符串为处于选中状态的字符串。移动终端接收到下方向键的按下事件,若当前选择键处于按下状态,移动终端可获取光标位置P=1,光标位于第2个字符“a”前面,可从光标位置后的首个处于未选中状态的字符“k”开始,查找与查找字符串“abc”匹配的字符串。移动终端在光标位置向后的未处于选中状态的字符中,可查找到与查找字符串“abc”匹配的字符串,可先将输入框中的所有字符设置为未选中状态,并将首次查找到的匹配的字符串设置为选中状态,可展示为“pabckslfjabckfj”,处于选中状态的字符串发生了变化。For example, the input string of the input obtained by the mobile terminal is "abc", and the character in the input box contains "p abc kslfjabckfj", wherein the string with the underlined part is the character string in the selected state. The mobile terminal receives the pressing event of the down direction key. If the current selection key is in the pressed state, the mobile terminal can acquire the cursor position P=1, the cursor is located in front of the second character “a”, and can be the first one after the cursor position. The character "k" in the unselected state begins, looking for a string that matches the lookup string "abc". The mobile terminal can find a string matching the search string "abc" in the character that is not in the selected state at the cursor position, and can first set all the characters in the input box to the unselected state, and will find the first time. The matching string is set to the selected state and can be displayed as "pabckslfj abc kfj", and the selected string has changed.

步骤914,从输入框的第一个字符向后查找与查找字符串匹配的字符串。Step 914, searching for the string matching the search string from the first character of the input box.

若在光标位置向后的未处于选中状态的字符中没有查找到与查找字符串匹配的字符串,移动终端可从输入框的第一个字符向后查找与查找字符串匹配的字符串,并判断是否查找到与查找字符串匹配的字符串。If a character string matching the search string is not found in the character that is not selected at the cursor position, the mobile terminal can search for the character string matching the search string backward from the first character of the input box, and Determines if a string matching the lookup string is found.

步骤916,判断是否查找到与查找字符串匹配的字符串,若是,则执行步骤912,若否,则执行步骤918。In step 916, it is determined whether a string matching the search string is found. If yes, step 912 is performed, and if no, step 918 is performed.

移动终端从输入框的第一个字符向后查找与查找字符串匹配的字符串,若首次查找到的匹配的字符串的位置PK依然为0,则可说明输入框输入的字符中不存在与查找字符串匹配的字符串,可结束查找。若PK不等于0,可表示查找到与查找字符串匹配的字符串,移动终端可先将输入框中的所有字符设置为未选中状态,并获取查找字符串的字符个数,令SL=查找字符串的字符个数,可设置从输入框的第PK个字符开始的SL个字符为选中状态。The mobile terminal searches for the string matching the search string from the first character of the input box. If the position of the matching string found in the first time PK is still 0, it indicates that the character input in the input box does not exist. Find the string that matches the string to end the lookup. If the PK is not equal to 0, it can be found that the string matching the search string is found. The mobile terminal can first set all the characters in the input box to the unselected state, and obtain the number of characters in the search string, so that SL=search The number of characters in the string can be set to SL characters starting from the PK character of the input box.

在一个实施例中,移动终端将首次查找到的与查找字符串匹配的字符串设置为选中状态后,可将光标位置设置在处于选中状态的字符串的最后一个 字符之后,可令光标位置P=PK+SL-1,即可将光标移动到最后一个处于选中状态的字符后面。In an embodiment, after the mobile terminal sets the first searched string matching the search string to the selected state, the cursor position can be set to the last character of the selected character string. After the character, you can move the cursor to the last character that is selected by making the cursor position P=PK+SL-1.

步骤918,结束查找。At step 918, the search ends.

在本实施例中,可将选择键与上方向键、下方向键等进行结合,当输入框中存在较多的输入字符时,也可快速定位所需处理的字符串,无需用户手动逐个进行查找,操作简便。In this embodiment, the selection key can be combined with the up direction key, the down direction key, etc., when there are more input characters in the input box, the character string to be processed can also be quickly located, without the user manually performing one by one. Find and operate easily.

如图10所示,在一个实施例中,上述信息处理方法,还包括以下步骤:As shown in FIG. 10, in an embodiment, the information processing method further includes the following steps:

步骤1002,当检测到查找字符串发生更新时,将输入框中的所有字符设置为未选中状态。Step 1002: When it is detected that the search string is updated, all characters in the input box are set to an unselected state.

移动终端可将选择键与字符键、删除键等进行结合,对查找字符串进行输入、更新等。当移动终端接收到字符键或删除键的按下事件时,可读取预设标志位,若预设标志位为第一标志,说明选择键处于按下状态,可修改原有的查找字符串,并进行更新。当移动终端检测到查找字符串发生更新时,可将输入框中的所有字符设置为未选中状态,并重新查找与更新后的字符串匹配的字符串,将查找到的匹配的字符串设置为选中状态。The mobile terminal can combine the selection key with a character key, a delete key, etc., and input, update, and the like for the search string. When the mobile terminal receives the pressing event of the character key or the delete key, the preset flag bit can be read. If the preset flag bit is the first flag, the selection button is in the pressed state, and the original search string can be modified. And update it. When the mobile terminal detects that the search string is updated, all the characters in the input box can be set to the unselected state, and the string matching the updated string is re-find, and the found matching string is set to Checked state.

步骤1004,重新查找与更新后的字符串匹配的字符串,并将匹配的字符串设置为选中状态。In step 1004, the string matching the updated string is re-discovered, and the matched string is set to the selected state.

在一个实施例中,当移动终端检测到查找字符串发生更新时,可将输入框中的所有字符设置为未选中状态,并获取输入框中的光标位置。移动终端可从光标位置向前查找与更新后的查找字符串匹配的字符串,并将首次查找到的匹配的字符串设置为选中状态。若从光标位置向前没有查找到与更新后的查找字符串匹配的字符串,则可从输入框中最后一个字符向前查找与更新后的查找字符串匹配的字符串,并将首次查找到的匹配的字符串设置为选中状态。In one embodiment, when the mobile terminal detects that the search string is updated, all characters in the input box may be set to an unselected state, and the cursor position in the input box is obtained. The mobile terminal can look up the string matching the updated search string from the cursor position and set the matching string found for the first time to the selected state. If the string matching the updated search string is not found forward from the cursor position, the string matching the updated search string can be searched forward from the last character in the input box, and will be found for the first time. The matching string is set to selected.

在本实施例中,当查找字符串发生更新后,可快速重新定位输入框中需要进行处理的字符串,无需用户手动逐个进行查找,操作简便。In this embodiment, after the search string is updated, the character string that needs to be processed in the input box can be quickly relocated, and the user does not need to manually search one by one, and the operation is simple.

在一个实施例中,提供一种信息处理方法,包括以下步骤: In one embodiment, an information processing method is provided, including the following steps:

步骤(1),获取输入的查找字符串。Step (1), obtain the input search string.

步骤(2),在输入框中查找与查找字符串匹配的字符串,并将匹配的字符串设置为选中状态。Step (2), in the input box, find a string matching the search string, and set the matched string to the selected state.

可选地,在输入框中查找与查找字符串匹配的字符串,并将匹配的字符串设置为选中状态,包括:获取输入框中的光标位置,从光标位置向前查找与查找字符串匹配的字符串,并将首次查找到的匹配的字符串设置为选中状态;若从光标位置向前没有查找到与查找字符串匹配的字符串,则从输入框中最后一个字符向前查找与查找字符串匹配的字符串,并将首次查找到的匹配的字符串设置为选中状态。Optionally, searching for a string matching the search string in the input box, and setting the matched string to the selected state, including: obtaining a cursor position in the input box, and searching forward from the cursor position to match the search string String, and set the matching string found for the first time to the selected state; if the string matching the search string is not found forward from the cursor position, the last character in the input box is forwarded and searched A string that matches the string and sets the matching string that was first found to be selected.

可选地,将光标位置设置在处于选中状态的字符串的最后一个字符之后。Optionally, set the cursor position after the last character of the selected string.

步骤(3),当接收到键盘按下事件时,获取按下的键盘所属的键盘类型。In step (3), when a keyboard press event is received, the keyboard type to which the pressed keyboard belongs is obtained.

步骤(4),根据键盘类型对处于选中状态的字符串进行处理。In step (4), the character string in the selected state is processed according to the keyboard type.

可选地,根据键盘类型对处于选中状态的字符串进行处理,包括:获取预设标志位,预设标志位包括第一标志及第二标志,其中,第一标志用于表示预设的选择键处于按下状态,第二标志用于表示预设的选择键处于松开状态;在不同的键盘类型下,根据预设标志位分别对处于选中状态的字符串进行处理。Optionally, processing the character string in the selected state according to the keyboard type, including: acquiring a preset flag bit, where the preset flag bit includes the first flag and the second flag, wherein the first flag is used to indicate the preset selection The key is in the pressed state, and the second flag is used to indicate that the preset selection key is in the released state; under different keyboard types, the character string in the selected state is processed according to the preset flag bit.

可选地,键盘类型包括字符键,根据预设标志位分别对处于选中状态的字符串进行处理,包括:获取与键盘按下事件对应的输入字符;当预设标志位为第一标志时,在查找字符串后添加所述输入字符,并更新查找字符串;当预设标志位为第二标志时,将处于选中状态的字符串替换为所述输入字符。Optionally, the keyboard type includes a character key, and the character string in the selected state is processed according to the preset flag bit, including: obtaining an input character corresponding to a keyboard press event; and when the preset flag bit is the first flag, The input character is added after the string is searched, and the search string is updated; when the preset flag is the second flag, the character string in the selected state is replaced with the input character.

可选地,键盘类型包括删除键,根据预设标志位分别对处于选中状态的字符串进行处理,包括:当预设标志位为第一标志时,删除查找字符串的最后一个字符,并更新查找字符串;当预设标志位为第二标志时,删除处于选中状态的字符串。Optionally, the keyboard type includes a delete key, and the character string in the selected state is processed according to the preset flag bit, including: when the preset flag bit is the first flag, deleting the last character of the search string, and updating Find the string; when the preset flag is the second flag, delete the string that is selected.

可选地,键盘类型包括左方向键,根据预设标志位分别对处于选中状态的字符串进行处理,包括:当预设标志位为第一标志时,获取输入框的光标 位置;当光标位置的前一个字符为选中状态时,将前一个字符设置为未选中状态;当光标位置的前一个字符为未选中状态时,将前一个字符设置为选中状态。Optionally, the keyboard type includes a left direction key, and respectively processes the character string in the selected state according to the preset flag bit, including: when the preset flag bit is the first flag, acquiring the cursor of the input box Position; when the previous character of the cursor position is selected, the previous character is set to the unselected state; when the previous character of the cursor position is unselected, the previous character is set to the selected state.

可选地,键盘类型包括右方向键,根据预设标志位分别对处于选中状态的字符串进行处理,包括:当预设标志位为第一标志时,获取输入框的光标位置;当光标位置的后一个字符为选中状态时,将后一个字符设置为未选中状态;当光标位置的后一个字符为未选中状态时,将后一个字符设置为选中状态。Optionally, the keyboard type includes a right direction key, and respectively processes the character string in the selected state according to the preset flag bit, including: when the preset flag bit is the first flag, acquiring the cursor position of the input box; when the cursor position When the next character is selected, the latter character is set to the unselected state; when the next character of the cursor position is unselected, the latter character is set to the selected state.

可选地,键盘类型包括上方向键,根据预设标志位分别对处于选中状态的字符串进行处理,包括:当预设标志位为第一标志时,获取输入框的光标位置;判断光标位置的前一个字符是否为选中状态,若是,则从光标位置向前的首个处于未选中状态的字符开始,向前查找与查找字符串匹配的字符串,若否,则从光标位置向前查找与查找字符串匹配的字符串;若向前没有查找到与查找字符串匹配的字符串,则从输入框的最后一个字符向前查找与查找字符串匹配的字符串;当查找到与查找字符串匹配的字符串时,将输入框中的所有字符设置为未选中状态,并将首次查找到的匹配的字符串设置为选中状态。Optionally, the keyboard type includes an up direction key, and respectively processing the character string in the selected state according to the preset flag bit, including: when the preset flag bit is the first flag, acquiring the cursor position of the input box; determining the cursor position Whether the previous character is selected, if yes, starting from the first unselected character from the cursor position, looking forward to the string matching the search string, if not, looking forward from the cursor position a string that matches the lookup string; if no forward string is found that matches the lookup string, the last character of the input box is forwarded to find the string that matches the lookup string; when the find and find characters are found When the string matches the string, all the characters in the input box are set to unchecked, and the matching string found for the first time is set to the selected state.

可选地,键盘类型包括下方向键,根据预设标志位分别对处于选中状态的字符串进行处理,包括:当预设标志位为第一标志时,获取输入框的光标位置;判断光标位置的后一个字符是否为选中状态,若是,则从光标位置向后的首个处于未选中状态的字符开始,向后查找与查找字符串匹配的字符串,若否,则从光标位置向后查找与查找字符串匹配的字符串;若没有查找到与查找字符串匹配的字符串,则从输入框的第一个字符向后查找与查找字符串匹配的字符串;当查找到与查找字符串匹配的字符串时,将输入框中的所有字符设置为未选中状态,并将首次查找到的匹配的字符串设置为选中状态。Optionally, the keyboard type includes a down arrow key, and respectively processing the character string in the selected state according to the preset flag bit, including: when the preset flag bit is the first flag, acquiring the cursor position of the input box; determining the cursor position Whether the next character is selected, if yes, starting from the cursor position to the first unselected character, looking backward for the string matching the search string, if not, looking backward from the cursor position a string that matches the lookup string; if no string is found that matches the lookup string, the first character of the input box is searched backwards for the string that matches the lookup string; when the find and find strings are found When matching a string, set all characters in the input box to unchecked and set the matching string found for the first time to the selected state.

步骤(5),当检测到查找字符串发生更新时,将输入框中的所有字符设置为未选中状态,重新查找与更新后的字符串匹配的字符串,并将匹配的字 符串设置为选中状态。Step (5), when it is detected that the search string is updated, all the characters in the input box are set to the unselected state, and the string matching the updated string is newly found, and the matched words are matched. The string is set to selected.

在本实施例中,获取输入的查找字符串,在输入框中查找与查找字符串匹配的字符串,并将匹配的字符串设置为选中状态,当接收到键盘按下事件时,可根据按下的键盘所属的键盘类型对处于选中状态的字符串进行相应的处理,可快速定位输入框中需要进行处理的字符串,无需用户手动逐个进行查找,操作简便。In this embodiment, the input search string is obtained, the string matching the search string is searched in the input box, and the matched string is set to the selected state. When the keyboard press event is received, The keyboard type to which the keyboard belongs belongs to the character string in the selected state, and can quickly locate the character string that needs to be processed in the input box, without the user manually searching one by one, and the operation is simple.

如图11所示,在一个实施例中,提供一种信息处理装置1100,包括字符串获取模块1110、查找模块1120、事件接收模块1130及处理模块1140。As shown in FIG. 11, in an embodiment, an information processing apparatus 1100 is provided, including a character string obtaining module 1110, a searching module 1120, an event receiving module 1130, and a processing module 1140.

字符串获取模块1110,用于获取输入的查找字符串。The string obtaining module 1110 is configured to obtain an input search string.

查找模块1120,用于在输入框中查找与查找字符串匹配的字符串,并将匹配的字符串设置为选中状态。The searching module 1120 is configured to search for a string matching the search string in the input box, and set the matched string to the selected state.

事件接收模块1130,用于当接收到键盘按下事件时,获取按下的键盘所属的键盘类型。The event receiving module 1130 is configured to acquire a keyboard type to which the pressed keyboard belongs when receiving a keyboard pressing event.

处理模块1140,用于根据键盘类型对处于选中状态的字符串进行处理。The processing module 1140 is configured to process the character string in the selected state according to the keyboard type.

在本实施例中,获取输入的查找字符串,在输入框中查找与查找字符串匹配的字符串,并将匹配的字符串设置为选中状态,当接收到键盘按下事件时,可根据按下的键盘所属的键盘类型对处于选中状态的字符串进行相应的处理,可快速定位输入框中需要进行处理的字符串,无需用户手动逐个进行查找,操作简便。In this embodiment, the input search string is obtained, the string matching the search string is searched in the input box, and the matched string is set to the selected state. When the keyboard press event is received, The keyboard type to which the keyboard belongs belongs to the character string in the selected state, and can quickly locate the character string that needs to be processed in the input box, without the user manually searching one by one, and the operation is simple.

在一个实施例中,查找模块1120,包括光标获取单元及查找单元。In one embodiment, the lookup module 1120 includes a cursor acquisition unit and a lookup unit.

光标获取单元,用于获取输入框中的光标位置。A cursor acquisition unit for obtaining a cursor position in the input box.

查找单元,用于从光标位置向前查找与所述查找字符串匹配的字符串,并将首次查找到的匹配的字符串设置为选中状态。a searching unit for searching for a string matching the search string from the cursor position and setting the matching string found for the first time to the selected state.

查找单元,还用于若从光标位置向前没有查找到与查找字符串匹配的字符串,则从输入框中最后一个字符向前查找与查找字符串匹配的字符串,并将首次查找到的匹配的字符串设置为选中状态。 The search unit is also used to search for a string matching the search string from the last character in the input box if the string matching the search string is not found from the cursor position, and the first search is performed. The matching string is set to selected.

在一个实施例中,上述信息处理装置1100,除了包括字符串获取模块1110、查找模块1120、事件接收模块1130及处理模块1140,还包括光标设置模块。In one embodiment, the information processing apparatus 1100 includes a character string obtaining module 1110, a searching module 1120, an event receiving module 1130, and a processing module 1140, and a cursor setting module.

光标设置模块,用于将光标位置设置在处于选中状态的字符串的最后一个字符之后。The cursor setting module is used to set the cursor position after the last character of the selected character string.

在本实施例中,可快速定位输入框中需要进行处理的字符串,无需用户手动逐个进行查找,操作简便。In this embodiment, the character string that needs to be processed in the input box can be quickly located, and the user does not need to manually search one by one, and the operation is simple.

在一个实施例中,处理模块1140,包括标志位获取单元及处理单元。In one embodiment, the processing module 1140 includes a flag bit acquiring unit and a processing unit.

标志位获取单元,用于获取预设标志位,预设标志位包括第一标志及第二标志,其中,第一标志用于表示预设的选择键处于按下状态,第二标志用于表示预设的选择键处于松开状态。a flag bit acquiring unit, configured to acquire a preset flag bit, where the preset flag bit includes a first flag and a second flag, wherein the first flag is used to indicate that the preset selection button is in a pressed state, and the second flag is used to indicate The preset selection button is released.

处理单元,用于在不同的键盘类型下,根据预设标志位分别对处于选中状态的字符串进行处理。The processing unit is configured to process the character string in the selected state according to the preset flag bit under different keyboard types.

可选地,键盘类型包括字符键。处理单元,包括字符获取子单元、更新子单元及替换子单元。Optionally, the keyboard type includes a character key. The processing unit includes a character acquisition subunit, an update subunit, and a replacement subunit.

字符获取子单元,用于获取与键盘按下事件对应的输入字符。A character acquisition subunit for obtaining an input character corresponding to a keyboard press event.

更新子单元,用于当预设标志位为第一标志时,在查找字符串后添加输入字符,并更新查找字符串。The update subunit is configured to add an input character after the search string and update the search string when the preset flag is the first flag.

替换子单元,用于当预设标志位为第二标志时,将处于选中状态的字符串替换为输入字符。The replacement subunit is configured to replace the character string in the selected state with the input character when the preset flag bit is the second flag.

可选地,键盘类型包括删除键。处理单元,除了包括字符获取子单元、更新子单元及替换子单元,还包括删除子单元。Optionally, the keyboard type includes a delete key. The processing unit includes a delete subunit in addition to the character acquisition subunit, the update subunit, and the replacement subunit.

更新子单元,还用于当预设标志位为第一标志时,删除查找字符串的最后一个字符,并更新查找字符串。The sub-unit is updated, and when the preset flag is the first flag, the last character of the search string is deleted, and the search string is updated.

删除子单元,用于当预设标志位为第二标志时,删除处于选中状态的字符串。The subunit is deleted, and when the preset flag is the second flag, the character string in the selected state is deleted.

在本实施例中,可将选择键与字符键、删除键等进行结合,根据选择键 的状态可快速更新查找字符串的内容,或是对处于选中状态的字符串进行替按、删除等处理,操作简便快捷。In this embodiment, the selection key can be combined with the character key, the delete key, etc., according to the selection key. The status can be quickly updated to find the content of the string, or to replace or delete the string in the selected state, the operation is simple and fast.

在一个实施例中,键盘类型包括左方向键。处理单元,除了包括字符获取子单元、更新子单元、替换子单元及删除子单元,还包括位置获取子单元及状态设置子单元。In one embodiment, the keyboard type includes a left arrow key. The processing unit includes a position acquisition subunit and a state setting subunit, in addition to the character acquisition subunit, the update subunit, the replacement subunit, and the deletion subunit.

位置获取子单元,用于当预设标志位为第一标志时,获取输入框的光标位置。The position obtaining subunit is configured to obtain a cursor position of the input box when the preset flag bit is the first flag.

状态设置子单元,用于当光标位置的前一个字符为选中状态时,将前一个字符设置为未选中状态。The status setting sub-unit is used to set the previous character to the unselected state when the previous character of the cursor position is selected.

状态设置子单元,还用于当光标位置的前一个字符为未选中状态时,将前一个字符设置为选中状态。The status setting sub-unit is also used to set the previous character to the selected state when the previous character of the cursor position is unselected.

可选地,键盘类型包括右方向键。Optionally, the keyboard type includes a right arrow key.

位置获取子单元,还用于当预设标志位为第一标志时,获取输入框的光标位置。The position acquisition subunit is further configured to acquire a cursor position of the input box when the preset flag bit is the first flag.

状态设置子单元,还用于当光标位置的后一个字符为选中状态时,将后一个字符设置为未选中状态。The status setting sub-unit is also used to set the latter character to the unselected state when the next character of the cursor position is selected.

状态设置子单元,还用于当光标位置的后一个字符为未选中状态时,将后一个字符设置为选中状态。The status setting sub-unit is also used to set the latter character to the selected state when the next character of the cursor position is unselected.

在本实施例中,可将选择键与左方向键、右方向键等进行结合,根据选择键的状态可快速改变字符的选中状态,方便后续对处于选中状态的字符串进行处理,操作简便快捷。In this embodiment, the selection key can be combined with the left direction key, the right direction key, etc., according to the state of the selection key, the selected state of the character can be quickly changed, and the subsequent processing of the character string in the selected state is facilitated, and the operation is simple and quick. .

在一个实施例中,键盘类型包括上方向键。处理单元,除了包括字符获取子单元、更新子单元、替换子单元、删除子单元、位置获取子单元及状态设置子单元,还包括判断子单元及查找子单元。In one embodiment, the keyboard type includes an up arrow key. The processing unit includes, in addition to the character acquisition subunit, the update subunit, the replacement subunit, the deletion subunit, the location acquisition subunit, and the state setting subunit, a judgment subunit and a lookup subunit.

位置获取子单元,还用于当预设标志位为第一标志时,获取输入框的光标位置。The position acquisition subunit is further configured to acquire a cursor position of the input box when the preset flag bit is the first flag.

判断子单元,用于判断光标位置的前一个字符是否为选中状态。 The judging subunit is configured to determine whether the previous character of the cursor position is the selected state.

查找子单元,用于若光标位置的前一个字符是选中状态,则从光标位置向前的首个处于未选中状态的字符开始,向前查找与查找字符串匹配的字符串。The lookup subunit is used to search for a string matching the search string from the first uncharacterized character before the cursor position, if the previous character of the cursor position is selected.

查找子单元,还用于若光标位置的前一个字符不是选中状态,则从光标位置向前查找与查找字符串匹配的字符串。The lookup subunit is also used to search for a string matching the search string from the cursor position if the previous character of the cursor position is not selected.

查找子单元,还用于若向前没有查找到与查找字符串匹配的字符串,则从输入框的最后一个字符向前查找与查找字符串匹配的字符串。The lookup subunit is also used to look up the string matching the lookup string from the last character of the input box if the string matching the lookup string is not found forward.

状态设置子单元,还用于当查找到与查找字符串匹配的字符串时,将输入框中的所有字符设置为未选中状态,并将首次查找到的匹配的字符串设置为选中状态。The status setting sub-unit is also used to set all the characters in the input box to the unselected state when the string matching the search string is found, and set the matching string found for the first time to the selected state.

可选地,键盘类型包括下方向键。Optionally, the keyboard type includes a down arrow key.

位置获取子单元,还用于当预设标志位为第一标志时,获取输入框的光标位置。The position acquisition subunit is further configured to acquire a cursor position of the input box when the preset flag bit is the first flag.

判断子单元,还用于判断光标位置的后一个字符是否为选中状态。The judging subunit is also used to determine whether the next character of the cursor position is selected.

查找子单元,还用于若光标位置的后一个字符是选中状态,则从光标位置向后的首个处于未选中状态的字符开始,向后查找与查找字符串匹配的字符串。The search subunit is also used to search for the character string that matches the search string from the cursor position to the first character that is not selected when the latter character of the cursor position is selected.

查找子单元,还用于若光标位置的后一个字符不是选中状态,则从光标位置向后查找与查找字符串匹配的字符串。The search subunit is also used to search for a string matching the search string from the cursor position if the next character of the cursor position is not selected.

查找子单元,还用于若向后没有查找到与查找字符串匹配的字符串,则从输入框的第一个字符向后查找与查找字符串匹配的字符串。The lookup subunit is also used to search for the string matching the lookup string from the first character of the input box if the string matching the lookup string is not found backward.

状态设置子单元,还用于当查找到与查找字符串匹配的字符串时,将输入框中的所有字符设置为未选中状态,并将首次查找到的匹配的字符串设置为选中状态。The status setting sub-unit is also used to set all the characters in the input box to the unselected state when the string matching the search string is found, and set the matching string found for the first time to the selected state.

在本实施例中,可将选择键与上方向键、下方向键等进行结合,当输入框中存在较多的输入字符时,也可快速定位所需处理的字符串,无需用户手动逐个进行查找,操作简便。 In this embodiment, the selection key can be combined with the up direction key, the down direction key, etc., when there are more input characters in the input box, the character string to be processed can also be quickly located, without the user manually performing one by one. Find and operate easily.

在一个实施例中,查找模块1120,还用于当检测到查找字符串发生更新时,将输入框中的所有字符设置为未选中状态,重新查找与更新后的字符串匹配的字符串,并将匹配的字符串设置为选中状态。In an embodiment, the searching module 1120 is further configured to: when detecting that the search string is updated, set all the characters in the input box to an unselected state, and re-look the string matching the updated string, and Set the matching string to the selected state.

在本实施例中,当查找字符串发生更新后,可快速重新定位输入框中需要进行处理的字符串,无需用户手动逐个进行查找,操作简便。In this embodiment, after the search string is updated, the character string that needs to be processed in the input box can be quickly relocated, and the user does not need to manually search one by one, and the operation is simple.

本申请实施例还提供了一种移动终端。如图12所示,为了便于说明,仅示出了与本申请实施例相关的部分,具体技术细节未揭示的,请参照本申请实施例方法部分。该移动终端可以为包括手机、平板电脑、PDA(Personal Digital Assistant,个人数字助理)、POS(Point of Sales,销售终端)、车载电脑、穿戴式设备等任意终端设备,以移动终端为手机为例:The embodiment of the present application further provides a mobile terminal. As shown in FIG. 12, for the convenience of description, only the parts related to the embodiments of the present application are shown. If the specific technical details are not disclosed, please refer to the method part of the embodiment of the present application. The mobile terminal can be any mobile device, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), an on-board computer, a wearable device, or the like, and the mobile terminal is used as a mobile phone as an example. :

图12为与本申请实施例提供的移动终端相关的手机的部分结构的框图。参考图12,手机包括:射频(Radio Frequency,RF)电路1210、存储器1220、输入单元1230、显示单元1240、传感器1250、音频电路1260、无线保真(Wireless-Fidelity,WiFi)模块1270、处理器1280、以及电源1290等部件。本领域技术人员可以理解,图12所示的手机结构并不构成对手机的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。FIG. 12 is a block diagram showing a partial structure of a mobile phone related to a mobile terminal provided by an embodiment of the present application. Referring to FIG. 12, the mobile phone includes: a radio frequency (RF) circuit 1210, a memory 1220, an input unit 1230, a display unit 1240, a sensor 1250, an audio circuit 1260, a Wireless-Fidelity (WiFi) module 1270, and a processor. 1280, and power supply 1290 and other components. It will be understood by those skilled in the art that the structure of the handset shown in FIG. 12 does not constitute a limitation to the handset, and may include more or less components than those illustrated, or some components may be combined, or different components may be arranged.

其中,RF电路1210可用于收发信息或通话过程中,信号的接收和发送,可将基站的下行信息接收后,给处理器1280处理;也可以将上行的数据发送给基站。通常,RF电路包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器(Low Noise Amplifier,LNA)、双工器等。此外,RF电路1210还可以通过无线通信与网络和其他设备通信。上述无线通信可以使用任一通信标准或协议,包括但不限于GSM、通用分组无线服务(General Packet Radio Service,GPRS)、CDMA、宽带码分多址(Wideband Code Division Multiple Access,WCDMA)、长期演进(Long Term Evolution,LTE)、电子邮件、短消息服务(Short Messaging  Service,SMS)等。The RF circuit 1210 can be used for receiving and transmitting information during the transmission and reception of information or during the call. The downlink information of the base station can be received and processed by the processor 1280. The uplink data can also be sent to the base station. Generally, RF circuits include, but are not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuitry 1210 can also communicate with the network and other devices via wireless communication. The above wireless communication may use any communication standard or protocol, including but not limited to GSM, General Packet Radio Service (GPRS), CDMA, Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (Long Term Evolution, LTE), email, short message service (Short Messaging) Service, SMS), etc.

存储器1220可用于存储软件程序以及模块,处理器1280通过运行存储在存储器1220的软件程序以及模块,从而执行手机的各种功能应用以及数据处理。存储器1220可主要包括程序存储区和数据存储区,其中,程序存储区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能的应用程序、图像播放功能的应用程序等)等;数据存储区可存储根据手机的使用所创建的数据(比如音频数据、通讯录等)等。此外,存储器1220可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。The memory 1220 can be used to store software programs and modules, and the processor 1280 executes various functional applications and data processing of the mobile phone by running software programs and modules stored in the memory 1220. The memory 1220 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as an application of a sound playing function, an application of an image playing function, etc.); The data storage area can store data (such as audio data, address book, etc.) created according to the use of the mobile phone. Moreover, memory 1220 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.

输入单元1230可用于接收输入的数字或字符信息,以及产生与手机1200的用户设置以及功能控制有关的键信号输入。具体地,输入单元1230可包括触控面板1232以及其他输入设备1234。触控面板1232,也可称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板1232上或在触控面板1232附近的操作),并根据预先设定的程式驱动相应的连接装置。在一个实施例中,触控面板1232可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1280,并能接收处理器1280发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板1232。除了触控面板1232,输入单元1230还可以包括其他输入设备1234。具体地,其他输入设备1234可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)等中的一种或多种。The input unit 1230 can be configured to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the handset 1200. Specifically, the input unit 1230 may include a touch panel 1232 and other input devices 1234. The touch panel 1232, which may also be referred to as a touch screen, can collect touch operations on or near the user (such as the user using a finger, a stylus, or the like on the touch panel 1232 or near the touch panel 1232. Operation) and drive the corresponding connection device according to a preset program. In one embodiment, the touch panel 1232 can include two portions of a touch detection device and a touch controller. Wherein, the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information. The processor 1280 is provided and can receive commands from the processor 1280 and execute them. In addition, the touch panel 1232 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves. In addition to the touch panel 1232, the input unit 1230 may also include other input devices 1234. Specifically, other input devices 1234 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.).

显示单元1240可用于显示由用户输入的信息或提供给用户的信息以及手机的各种菜单。显示单元1240可包括显示面板1242。在一个实施例中,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板1242。 在一个实施例中,触控面板1232可覆盖显示面板1242,当触控面板1232检测到在其上或附近的触摸操作后,传送给处理器1280以确定触摸事件的类型,随后处理器1280根据触摸事件的类型在显示面板1242上提供相应的视觉输出。虽然在图12中,触控面板1232与显示面板1242是作为两个独立的部件来实现手机的输入和输入功能,但是在某些实施例中,可以将触控面板1232与显示面板1242集成而实现手机的输入和输出功能。The display unit 1240 can be used to display information input by the user or information provided to the user as well as various menus of the mobile phone. Display unit 1240 can include display panel 1242. In one embodiment, the display panel 1242 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like. In one embodiment, the touch panel 1232 can cover the display panel 1242. When the touch panel 1232 detects a touch operation thereon or nearby, the touch panel 1232 transmits to the processor 1280 to determine the type of the touch event, and then the processor 1280 is The type of touch event provides a corresponding visual output on display panel 1242. Although in FIG. 12, the touch panel 1232 and the display panel 1242 are used as two independent components to implement the input and input functions of the mobile phone, in some embodiments, the touch panel 1232 can be integrated with the display panel 1242. Realize the input and output functions of the phone.

手机1200还可包括至少一种传感器1250,比如光传感器、运动传感器以及其他传感器。具体地,光传感器可包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板1242的亮度,接近传感器可在手机移动到耳边时,关闭显示面板1242和/或背光。运动传感器可包括加速度传感器,通过加速度传感器可检测各个方向上加速度的大小,静止时可检测出重力的大小及方向,可用于识别手机姿态的应用(比如横竖屏切换)、振动识别相关功能(比如计步器、敲击)等;此外,手机还可配置陀螺仪、气压计、湿度计、温度计、红外线传感器等其他传感器等。The handset 1200 can also include at least one type of sensor 1250, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 1242 according to the brightness of the ambient light, and the proximity sensor may close the display panel 1242 and/or when the mobile phone moves to the ear. Or backlight. The motion sensor may include an acceleration sensor, and the acceleration sensor can detect the magnitude of the acceleration in each direction, and the magnitude and direction of the gravity can be detected at rest, and can be used to identify the gesture of the mobile phone (such as horizontal and vertical screen switching), and vibration recognition related functions (such as Pedometer, tapping, etc.; in addition, the phone can also be equipped with gyroscopes, barometers, hygrometers, thermometers, infrared sensors and other sensors.

音频电路1260、扬声器1262和传声器1264可提供用户与手机之间的音频接口。音频电路1260可将接收到的音频数据转换后的电信号,传输到扬声器1262,由扬声器1262转换为声音信号输出;另一方面,传声器1264将收集的声音信号转换为电信号,由音频电路1260接收后转换为音频数据,再将音频数据输出处理器1280处理后,经RF电路1210可以发送给另一手机,或者将音频数据输出至存储器1220以便后续处理。Audio circuitry 1260, speaker 1262, and microphone 1264 can provide an audio interface between the user and the handset. The audio circuit 1260 can transmit the converted electrical data of the received audio data to the speaker 1262, and convert it into a sound signal output by the speaker 1262; on the other hand, the microphone 1264 converts the collected sound signal into an electrical signal, by the audio circuit 1260. After receiving, it is converted into audio data, and then processed by the audio data output processor 1280, transmitted to another mobile phone via the RF circuit 1210, or outputted to the memory 1220 for subsequent processing.

WiFi属于短距离无线传输技术,手机通过WiFi模块1270可以帮助用户收发电子邮件、浏览网页和访问流式媒体等,它为用户提供了无线的宽带互联网访问。WiFi is a short-range wireless transmission technology. The mobile phone through the WiFi module 1270 can help users to send and receive e-mail, browse the web and access streaming media, etc. It provides users with wireless broadband Internet access.

处理器1280是手机的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在存储器1220内的软件程序和/或模块,以及调用存储在存储器1220内的数据,执行手机的各种功能和处理数据, 从而对手机进行整体监控。在一个实施例中,处理器1280可包括一个或多个处理单元。在一个实施例中,处理器1280可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等;调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1280中。The processor 1280 is a control center for the handset that connects various portions of the entire handset using various interfaces and lines, by executing or executing software programs and/or modules stored in the memory 1220, and invoking data stored in the memory 1220, Various functions and processing data of the mobile phone, Thereby the overall monitoring of the mobile phone. In one embodiment, processor 1280 can include one or more processing units. In one embodiment, the processor 1280 can integrate an application processor and a modem processor, wherein the application processor primarily processes an operating system, a user interface, an application, etc.; the modem processor primarily processes wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 1280.

手机1200还包括给各个部件供电的电源1290(比如电池),优选的,电源1290可以通过电源管理系统与处理器1280逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。The mobile phone 1200 also includes a power supply 1290 (such as a battery) for powering various components. Preferably, the power supply 1290 can be logically coupled to the processor 1280 through a power management system to manage functions such as charging, discharging, and power management through a power management system. .

在一个实施例中,手机1200还可以包括摄像头、蓝牙模块等。In one embodiment, the handset 1200 can also include a camera, a Bluetooth module, and the like.

在本申请实施例中,该移动终端所包括的处理器1280执行存储在存储器上的计算机可执行指令时实现上述的信息处理方法。In the embodiment of the present application, the processor 1280 included in the mobile terminal implements the above information processing method when executing computer executable instructions stored in the memory.

在一个实施例中,该移动终端可包括存储器1220及处理器1280,存储器1220中存储有计算机可执行指令,该计算机可执行指令被处理器1280执行时,使得处理器执行如下步骤:In one embodiment, the mobile terminal can include a memory 1220 and a processor 1280 having stored therein computer executable instructions that, when executed by the processor 1280, cause the processor to perform the following steps:

获取输入的查找字符串;Get the input search string;

在输入框中查找与查找字符串匹配的字符串,并将匹配的字符串设置为选中状态;Find the string matching the search string in the input box, and set the matching string to the selected state;

当接收到键盘按下事件时,获取按下的键盘所属的键盘类型;When a keyboard press event is received, the keyboard type to which the pressed keyboard belongs is obtained;

根据键盘类型对处于选中状态的字符串进行处理。The string that is selected is processed according to the keyboard type.

在一个实施例中,提供一个或多个存储有计算机可执行指令的非易失性可读存储介质,计算机可执行指令被一个或多个处理器执行时,使得一个或多个处理器执行时实现上述的信息处理方法。In one embodiment, one or more non-volatile readable storage media storing computer-executable instructions are provided, when executed by one or more processors, causing one or more processors to execute The above information processing method is implemented.

在一个实施例中,提供一种包含计算机程序的计算机程序产品,当其在计算机设备上运行时,使得计算机设备执行时实现上述的信息处理方法。In one embodiment, a computer program product comprising a computer program, when executed on a computer device, causes the computer device to perform the information processing method described above when executed.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于 一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。A person skilled in the art can understand that all or part of the process of implementing the above embodiment method can be completed by a computer program to instruct related hardware, and the program can be stored in A non-volatile computer readable storage medium, the program, when executed, may include the flow of an embodiment of the methods described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.

如此处所使用的对存储器、存储、数据库或其它介质的任何引用可包括非易失性和/或易失性存储器。合适的非易失性存储器可包括只读存储器(ROM)、可编程ROM(PROM)、电可编程ROM(EPROM)、电可擦除可编程ROM(EEPROM)或闪存。易失性存储器可包括随机存取存储器(RAM),它用作外部高速缓冲存储器。作为说明而非局限,RAM以多种形式可得,诸如静态RAM(SRAM)、动态RAM(DRAM)、同步DRAM(SDRAM)、双数据率SDRAM(DDR SDRAM)、增强型SDRAM(ESDRAM)、同步链路(Synchlink)DRAM(SLDRAM)、存储器总线(Rambus)直接RAM(RDRAM)、直接存储器总线动态RAM(DRDRAM)、以及存储器总线动态RAM(RDRAM)。Any reference to a memory, storage, database or other medium as used herein may include non-volatile and/or volatile memory. Suitable non-volatile memories can include read only memory (ROM), programmable ROM (PROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), or flash memory. Volatile memory can include random access memory (RAM), which acts as an external cache. By way of illustration and not limitation, RAM is available in a variety of forms, such as static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), dual data rate SDRAM (DDR SDRAM), enhanced SDRAM (ESDRAM), synchronization. Link (Synchlink) DRAM (SLDRAM), Memory Bus (Rambus) Direct RAM (RDRAM), Direct Memory Bus Dynamic RAM (DRDRAM), and Memory Bus Dynamic RAM (RDRAM).

以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.

以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。 The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (15)

一种信息处理方法,包括:An information processing method includes: 获取输入的查找字符串;Get the input search string; 在输入框中查找与所述查找字符串匹配的字符串,并将所述匹配的字符串设置为选中状态;Finding a string matching the search string in an input box, and setting the matched string to a selected state; 当接收到键盘按下事件时,获取按下的键盘所属的键盘类型;When a keyboard press event is received, the keyboard type to which the pressed keyboard belongs is obtained; 根据所述键盘类型对处于选中状态的字符串进行处理。The character string in the selected state is processed according to the keyboard type. 根据权利要求1所述的方法,其特征在于,所述在输入框中查找与所述查找字符串匹配的字符串,并将所述匹配的字符串设置为选中状态,包括:The method according to claim 1, wherein the searching for a character string matching the search string in the input box and setting the matched character string to a selected state comprises: 获取输入框中的光标位置;Get the cursor position in the input box; 从所述光标位置向前查找与所述查找字符串匹配的字符串,并将首次查找到的匹配的字符串设置为选中状态。A string matching the search string is searched forward from the cursor position, and the matched string found for the first time is set to the selected state. 根据权利要求2所述的方法,其特征在于,所述在输入框中查找与所述查找字符串匹配的字符串,并将所述匹配的字符串设置为选中状态,还包括:The method according to claim 2, wherein the searching for a character string matching the search string in the input box, and setting the matched character string to the selected state, further comprising: 若从所述光标位置向前没有查找到与所述查找字符串匹配的字符串,则从输入框中最后一个字符向前查找与所述查找字符串匹配的字符串,并将首次查找到的匹配的字符串设置为选中状态。If a string matching the search string is not found from the cursor position, the last character in the input box is forwarded to find a string matching the search string, and the first search is performed. The matching string is set to selected. 根据权利要求1所述的方法,其特征在于,所述根据所述键盘类型对处于选中状态的字符串进行处理,包括:The method according to claim 1, wherein the processing the character string in the selected state according to the keyboard type comprises: 获取预设标志位,所述预设标志位包括第一标志及第二标志,其中,第一标志用于表示预设的选择键处于按下状态,第二标志用于表示预设的选择键处于松开状态;Obtaining a preset flag bit, where the preset flag bit includes a first flag and a second flag, wherein the first flag is used to indicate that the preset selection key is in a pressed state, and the second flag is used to indicate a preset selection key Being released 在不同的键盘类型下,根据所述预设标志位分别对处于选中状态的字符串进行处理。Under different keyboard types, the character string in the selected state is processed according to the preset flag bit. 根据权利要求4所述的方法,其特征在于,所述键盘类型包括字符键;The method of claim 4 wherein said keyboard type comprises a character key; 所述根据所述预设标志位分别对处于选中状态的字符串进行处理,包括: And processing, according to the preset flag bit, the character string in the selected state, including: 获取与所述键盘按下事件对应的输入字符;Obtaining an input character corresponding to the keyboard press event; 当所述预设标志位为第一标志时,在所述查找字符串后添加所述输入字符,并更新查找字符串;When the preset flag is the first flag, adding the input character after the search string, and updating the search string; 当所述预设标志位为第二标志时,将处于选中状态的字符串替换为所述输入字符。When the preset flag is the second flag, the character string in the selected state is replaced with the input character. 根据权利要求4所述的方法,其特征在于,所述键盘类型包括删除键;The method of claim 4 wherein said keyboard type comprises a delete key; 所述根据所述预设标志位分别对处于选中状态的字符串进行处理,包括:And processing, according to the preset flag bit, the character string in the selected state, including: 当所述预设标志位为第一标志时,删除所述查找字符串的最后一个字符,并更新查找字符串;When the preset flag is the first flag, deleting the last character of the search string and updating the search string; 当所述预设标志位为第二标志时,删除处于选中状态的字符串。When the preset flag is the second flag, the character string in the selected state is deleted. 根据权利要求5或6所述的方法,其特征在于,所述方法还包括:The method according to claim 5 or 6, wherein the method further comprises: 当检测到所述查找字符串发生更新时,将所述输入框中的所有字符设置为未选中状态;When it is detected that the search string is updated, all characters in the input box are set to an unselected state; 重新查找与更新后的字符串匹配的字符串,并将所述匹配的字符串设置为选中状态。Re-find the string that matches the updated string and set the matching string to the selected state. 根据权利要求4所述的方法,其特征在于,所述键盘类型包括左方向键;The method of claim 4 wherein said keyboard type comprises a left direction key; 所述根据所述预设标志位分别对处于选中状态的字符串进行处理,包括:And processing, according to the preset flag bit, the character string in the selected state, including: 当所述预设标志位为第一标志时,获取所述输入框的光标位置;Obtaining a cursor position of the input box when the preset flag is the first flag; 当所述光标位置的前一个字符为选中状态时,将所述前一个字符设置为未选中状态;When the previous character of the cursor position is selected, the previous character is set to an unselected state; 当所述光标位置的前一个字符为未选中状态时,将所述前一个字符设置为选中状态。When the previous character of the cursor position is unselected, the previous character is set to the selected state. 根据权利要求4所述的方法,其特征在于,所述键盘类型包括右方向键;The method of claim 4 wherein said keyboard type comprises a right direction key; 所述根据所述预设标志位分别对处于选中状态的字符串进行处理,包括:And processing, according to the preset flag bit, the character string in the selected state, including: 当所述预设标志位为第一标志时,获取所述输入框的光标位置; Obtaining a cursor position of the input box when the preset flag is the first flag; 当所述光标位置的后一个字符为选中状态时,将所述后一个字符设置为未选中状态;When the next character of the cursor position is selected, the latter character is set to an unselected state; 当所述光标位置的后一个字符为未选中状态时,将所述后一个字符设置为选中状态。When the latter character of the cursor position is unselected, the latter character is set to the selected state. 根据权利要求4所述的方法,其特征在于,所述键盘类型包括上方向键;The method of claim 4 wherein said keyboard type comprises an up arrow key; 所述根据所述预设标志位分别对处于选中状态的字符串进行处理,包括:And processing, according to the preset flag bit, the character string in the selected state, including: 当所述预设标志位为第一标志时,获取所述输入框的光标位置;Obtaining a cursor position of the input box when the preset flag is the first flag; 判断所述光标位置的前一个字符是否为选中状态;Determining whether the previous character of the cursor position is selected; 若是,则从所述光标位置向前的首个处于未选中状态的字符开始,向前查找与所述查找字符串匹配的字符串;If yes, starting from the first character in the unselected state forward of the cursor position, looking forward to the character string matching the search string; 若否,则从所述光标位置向前查找与所述查找字符串匹配的字符串;If not, searching for a character string matching the search string from the cursor position; 若向前没有查找到与所述查找字符串匹配的字符串,则从所述输入框的最后一个字符向前查找与所述查找字符串匹配的字符串;If the character string matching the search string is not found forward, the character string matching the search string is searched forward from the last character of the input box; 当查找到与所述查找字符串匹配的字符串时,将所述输入框中的所有字符设置为未选中状态,并将首次查找到的匹配的字符串设置为选中状态。When a string matching the search string is found, all the characters in the input box are set to an unselected state, and the matching string found for the first time is set to the selected state. 根据权利要求4所述的方法,其特征在于,所述键盘类型包括下方向键;The method of claim 4 wherein said keyboard type comprises a down arrow key; 所述根据所述预设标志位分别对处于选中状态的字符串进行处理,包括:And processing, according to the preset flag bit, the character string in the selected state, including: 当所述预设标志位为第一标志时,获取所述输入框的光标位置;Obtaining a cursor position of the input box when the preset flag is the first flag; 判断所述光标位置的后一个字符是否为选中状态;Determining whether the next character of the cursor position is selected; 若是,则从所述光标位置向后的首个处于未选中状态的字符开始,向后查找与所述查找字符串匹配的字符串;If yes, starting from the first position of the cursor position that is not in the selected state, searching backward for the character string matching the search string; 若否,则从所述光标位置向后查找与所述查找字符串匹配的字符串;If not, searching for a character string matching the search string backward from the cursor position; 若向后没有查找到与所述查找字符串匹配的字符串,则从所述输入框的第一个字符向后查找与所述查找字符串匹配的字符串;If the character string matching the search string is not found backward, the character string matching the search string is searched backward from the first character of the input box; 当查找到与所述查找字符串匹配的字符串时,将所述输入框中的所有字 符设置为未选中状态,并将首次查找到的匹配的字符串设置为选中状态。When the string matching the lookup string is found, all the words in the input box are The flag is set to unchecked and the matching string found for the first time is set to selected. 根据权利要求2、3、10或11任一所述的方法,其特征在于,在所述将首次查找到的匹配的字符串设置为选中状态之后,还包括:The method according to any one of claims 2, 3, 10 or 11, wherein after the matching the first searched string is set to the selected state, the method further comprises: 将所述光标位置设置在处于选中状态的字符串的最后一个字符之后。The cursor position is set after the last character of the selected character string. 一种信息处理装置,包括:An information processing apparatus comprising: 字符串获取模块,用于获取输入的查找字符串;a string obtaining module, configured to obtain an input search string; 查找模块,用于在输入框中查找与所述查找字符串匹配的字符串,并将所述匹配的字符串设置为选中状态;a searching module, configured to search for a string matching the search string in the input box, and set the matched string to a selected state; 事件接收模块,用于当接收到键盘按下事件时,获取按下的键盘所属的键盘类型;An event receiving module, configured to acquire a keyboard type to which the pressed keyboard belongs when receiving a keyboard pressing event; 处理模块,用于根据所述键盘类型对处于选中状态的字符串进行处理。And a processing module, configured to process the character string in the selected state according to the keyboard type. 一种移动终端,包括存储器及处理器,所述存储器中储存有计算机可执行指令,所述计算机可执行指令被所述处理器执行时,使得所述处理器执行时实现如权利要求1至12任一所述的方法。A mobile terminal comprising a memory and a processor, wherein the memory stores computer executable instructions, the computer executable instructions being executed by the processor, such that when executed by the processor, implementing claims 1 to 12 Any of the methods described. 一个或多个存储有计算机可执行指令的非易失性可读存储介质,所述计算机可执行指令被一个或多个处理器执行时,使得所述一个或多个处理器执行时实现如权利要求1至12任一所述的方法。 One or more non-volatile readable storage media storing computer-executable instructions that, when executed by one or more processors, cause the one or more processors to perform as claimed The method of any of 1 to 12 is claimed.
PCT/CN2017/106766 2017-10-18 2017-10-18 Information processing method and device, mobile terminal and non-volatile readable storage medium Ceased WO2019075678A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/106766 WO2019075678A1 (en) 2017-10-18 2017-10-18 Information processing method and device, mobile terminal and non-volatile readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2017/106766 WO2019075678A1 (en) 2017-10-18 2017-10-18 Information processing method and device, mobile terminal and non-volatile readable storage medium

Publications (1)

Publication Number Publication Date
WO2019075678A1 true WO2019075678A1 (en) 2019-04-25

Family

ID=66173041

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2017/106766 Ceased WO2019075678A1 (en) 2017-10-18 2017-10-18 Information processing method and device, mobile terminal and non-volatile readable storage medium

Country Status (1)

Country Link
WO (1) WO2019075678A1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945113A (en) * 2012-10-12 2013-02-27 上海量明科技发展有限公司 Method for replacing character by input method and client
CN103678554A (en) * 2013-12-06 2014-03-26 金蝶软件(中国)有限公司 Character substituting method and device
CN103793129A (en) * 2012-11-02 2014-05-14 展讯通信(上海)有限公司 Mobile terminal launcher and display method thereof
WO2015188331A1 (en) * 2014-06-11 2015-12-17 华为技术有限公司 转发控制方法、驱动器及sdn网络 forwarding control method, driver and sdn network
CN106354570A (en) * 2016-08-26 2017-01-25 广东欧珀移动通信有限公司 Method and device for copying and pasting account information

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102945113A (en) * 2012-10-12 2013-02-27 上海量明科技发展有限公司 Method for replacing character by input method and client
CN103793129A (en) * 2012-11-02 2014-05-14 展讯通信(上海)有限公司 Mobile terminal launcher and display method thereof
CN103678554A (en) * 2013-12-06 2014-03-26 金蝶软件(中国)有限公司 Character substituting method and device
WO2015188331A1 (en) * 2014-06-11 2015-12-17 华为技术有限公司 转发控制方法、驱动器及sdn网络 forwarding control method, driver and sdn network
CN106354570A (en) * 2016-08-26 2017-01-25 广东欧珀移动通信有限公司 Method and device for copying and pasting account information

Similar Documents

Publication Publication Date Title
CN107562835B (en) File searching method and device, mobile terminal and computer readable storage medium
WO2019015404A1 (en) Method and apparatus for switching applications in split screen mode, and related device thereof
US20160110332A1 (en) Character string input control method and apparatus
US20200310771A1 (en) Application Processing Method for Terminal Device, and Terminal Device
WO2018049885A1 (en) Data migration method and device
WO2018049935A1 (en) Data migration method and terminals
CN108737618B (en) Information processing method and device, electronic equipment and computer readable storage medium
CN108449481A (en) A kind of associated person information recommends method and terminal
WO2017161994A1 (en) Method and device for displaying page, and computer storage medium
CN110532231B (en) File query method, file query device and terminal equipment
CN106951492B (en) File search method, device and electronic device
CN106777383B (en) File sorting method and intelligent terminal
CN110753914B (en) Information processing method, storage medium and mobile terminal
WO2018209802A1 (en) Method for displaying device identifier, mobile terminal, and terminal device
CN108513005B (en) Contact person information processing method and device, electronic equipment and storage medium
CN106330684B (en) Method and terminal for information synchronization
CN106934003A (en) A kind of document handling method and mobile terminal
CN108446345B (en) Data searching method and mobile terminal
CN108616637B (en) Information processing method and device, electronic equipment and computer readable storage medium
CN106201536A (en) The replacing options of a kind of application icon and terminal unit
CN109246698B (en) A wireless network connection method and terminal device
CN106294528B (en) Method and device for realizing information transmission
US10110720B2 (en) Dialing method for user terminal and user terminal
WO2019075678A1 (en) Information processing method and device, mobile terminal and non-volatile readable storage medium
CN106201011B (en) Communication information retrieval method and device, and terminal equipment

Legal Events

Date Code Title Description
NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 08.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 17928919

Country of ref document: EP

Kind code of ref document: A1