IP Library Granted Patent US 9,513,784
Granted Patent B2
US 9,513,784 · App. 14/226,754 · Granted Dec 6, 2016

Method and device of controlling input for input boxes

Inventor: Yuqiang Shu (Shenzhen, CN)
Assignee: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
G06F3/0484G06F3/04886G06F17/30876
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,513,784
App. No.
14/226,754
Granted
Dec 6, 2016
Kind
B2
Abstract

A method and device for controlling information input for text boxes are disclosed. The method includes: at a device having one or more processors, memory, and a display: detecting selection of a text input box in a user interface; in response to detecting the selection of the text input box and prior to receiving input text for the text input box, obtaining a regular expression for acceptable input corresponding to text input box; for each character in the regular expression, determining whether the character belongs to a respective validation filter character set for a predetermined data type; and in response to a determination that all characters in the regular expression belongs to the respective validation filter character set for the predetermined data type, selectively presenting a respective character keyboard corresponding to the predetermined data type to a user for text entry.

Claims (66)

1. A method of input control for text input boxes, comprising:

at a device having one or more processors, memory, and a display:

detecting selection of a text input box in a user interface;

in response to detecting the selection of the text input box and prior to receiving input text for the text input box, obtaining a regular expression for acceptable input corresponding to text input box;

for each character in the regular expression, determining whether the character belongs to a respective validation filter character set for a predetermined data type;

in response to a determination that all characters in the regular expression belongs to the respective validation filter character set for the predetermined data type, selectively presenting a respective character keyboard corresponding to the predetermined data type to a user for text entry, wherein:

the respective validation filter character set includes a subset of regular validation filter characters and a subset of special validation filter characters; and

for each character in the regular expression, determining whether the character belongs to the respective validation filter character set for the predetermined data type further comprises:

determining whether the character belongs to the subset of regular validation filter characters or the subset of special validation filter characters;

in accordance with a determination that the character belongs to the subset of regular validation filter characters, proceeding to process a next character in the regular expression; and

in accordance with a determination that the character belongs to the subset of special validation filter characters, processing all characters that fall between the character and a counterpart character of the character in the regular expression as a respective character subset; and

in response to a determination that a current character in the regular expression does not belong to the respective validation filter character set for the predetermined data type, determining whether each character in the regular expression belongs to a respective validation filter character set for another predetermined data type.

2. The method of claim 1 , further comprising:

for each character in the regular expression:

when determining whether the character belongs to the subset of regular validation filter characters or the subset of special validation filter characters, first determining whether the character belongs to a stop character set for the predetermined data type; and

in accordance with a determination that the character does not belong to the stop character set for the predetermined data type, proceeding to determine whether the character belongs to the subset of regular validation filter characters or the subset of special validation filter characters.

3. The method of claim 2 , wherein:

the stop character set includes a subset of stop characters having a backslash condition, and a subset of stop characters without any backslash condition; and

determining whether the character belongs to a stop character set for the predetermined data type further comprises:

determining whether the character has an associated backslash;

in accordance with a determination that the character has an associated backslash, determining whether the character belongs to the subset of stop characters having a backslash condition; and

in accordance with a determination that the character does not have any associated backslash, determining whether the character belongs to the subset of stop characters without any backslash condition.

4. A system for input control for text input boxes, comprising:

one or more processors; and

memory having instructions stored thereon, the instructions, when executed by the one or more processors, cause the processors to perform operations comprising:

detecting selection of a text input box in a user interface;

in response to detecting the selection of the text input box and prior to receiving input text for the text input box, obtaining a regular expression for acceptable input corresponding to text input box;

for each character in the regular expression, determining whether the character belongs to a respective validation filter character set for a predetermined data type;

in response to a determination that all characters in the regular expression belongs to the respective validation filter character set for the predetermined data type, selectively presenting a respective character keyboard corresponding to the predetermined data type to a user for text entry, wherein:

the respective validation filter character set includes a subset of regular validation filter characters and a subset of special validation filter characters; and

for each character in the regular expression, determining whether the character belongs to the respective validation filter character set for the predetermined data type further comprises:

determining whether the character belongs to the subset of regular validation filter characters or the subset of special validation filter characters;

in accordance with a determination that the character belongs to the subset of regular validation filter characters, proceeding to process a next character in the regular expression; and

in accordance with a determination that the character belongs to the subset of special validation filter characters, processing all characters that fall between the character and a counterpart character of the character in the regular expression as a respective character subset; and

in response to a determination that a current character in the regular expression does not belong to the respective validation filter character set for the predetermined data type, determining whether each character in the regular expression belongs to a respective validation filter character set for another predetermined data type.

5. The system of claim 4 , wherein the operations further comprise:

for each character in the regular expression:

when determining whether the character belongs to the subset of regular validation filter characters or the subset of special validation filter characters, first determining whether the character belongs to a stop character set for the predetermined data type; and

in accordance with a determination that the character does not belong to the stop character set for the predetermined data type, proceeding to determine whether the character belongs to the subset of regular validation filter characters or the subset of special validation filter characters.

6. The system of claim 5 , wherein:

the stop character set includes a subset of stop characters having a backslash condition, and a subset of stop characters without any backslash condition; and

determining whether the character belongs to a stop character set for the predetermined data type further comprises:

determining whether the character has an associated backslash;

in accordance with a determination that the character has an associated backslash, determining whether the character belongs to the subset of stop characters having a backslash condition; and

in accordance with a determination that the character does not have any associated backslash, determining whether the character belongs to the subset of stop characters without any backslash condition.

7. A non-transitory computer-readable medium having instructions stored thereon, the instructions, when executed by one or more processors, cause the processors to perform operations comprising:

detecting selection of a text input box in a user interface;

in response to detecting the selection of the text input box and prior to receiving input text for the text input box, obtaining a regular expression for acceptable input corresponding to text input box;

for each character in the regular expression, determining whether the character belongs to a respective validation filter character set for a predetermined data type; and

in response to a determination that all characters in the regular expression belongs to the respective validation filter character set for the predetermined data type, selectively presenting a respective character keyboard corresponding to the predetermined data type to a user for text entry, wherein:

the respective validation filter character set includes a subset of regular validation filter characters and a subset of special validation filter characters; and

for each character in the regular expression, determining whether the character belongs to the respective validation filter character set for the predetermined data type further comprises:

determining whether the character belongs to the subset of regular validation filter characters or the subset of special validation filter characters;

in accordance with a determination that the character belongs to the subset of regular validation filter characters, proceeding to process a next character in the regular expression; and

in accordance with a determination that the character belongs to the subset of special validation filter characters, processing all characters that fall between the character and a counterpart character of the character in the regular expression as a respective character subset; and

in response to a determination that a current character in the regular expression does not belong to the respective validation filter character set for the predetermined data type, determining whether each character in the regular expression belongs to a respective validation filter character set for another predetermined data type.

8. The computer-readable medium of claim 7 , wherein the operations further comprise:

for each character in the regular expression:

when determining whether the character belongs to the subset of regular validation filter characters or the subset of special validation filter characters, first determining whether the character belongs to a stop character set for the predetermined data type; and

in accordance with a determination that the character does not belong to the stop character set for the predetermined data type, proceeding to determine whether the character belongs to the subset of regular validation filter characters or the subset of special validation filter characters.

9. The computer-readable medium of claim 8 , wherein:

the stop character set includes a subset of stop characters having a backslash condition, and a subset of stop characters without any backslash condition; and

determining whether the character belongs to a stop character set for the predetermined data type further comprises:

determining whether the character has an associated backslash;

in accordance with a determination that the character has an associated backslash, determining whether the character belongs to the subset of stop characters having a backslash condition; and

in accordance with a determination that the character does not have any associated backslash, determining whether the character belongs to the subset of stop characters without any backslash condition.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 15, 2015
From: SHU, YUQIANG
To: TENCENT TECHNOLOGY (SHENZHEN) COMPANY LIMITED
Reel/Frame 036334/0184 →
Priority Claims (1)
CN 2013 1 0247260 · Jun 20, 2013 · national
Continuity (2)
Continuation PCTCN2014070098 · Jan 3, 2014
Related Publication 20140380228A1 · Dec 25, 2014