CN105187633A - Mobile phone number display method and device - Google Patents

Mobile phone number display method and device Download PDF

Info

Publication number
CN105187633A
CN105187633A CN201510478485.XA CN201510478485A CN105187633A CN 105187633 A CN105187633 A CN 105187633A CN 201510478485 A CN201510478485 A CN 201510478485A CN 105187633 A CN105187633 A CN 105187633A
Authority
CN
China
Prior art keywords
area code
local number
international area
international
user
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.)
Granted
Application number
CN201510478485.XA
Other languages
Chinese (zh)
Other versions
CN105187633B (en
Inventor
赵娅丽
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Kingsoft Internet Security Software Co Ltd
Original Assignee
Beijing Kingsoft Internet Security Software Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Kingsoft Internet Security Software Co Ltd filed Critical Beijing Kingsoft Internet Security Software Co Ltd
Priority to CN201510478485.XA priority Critical patent/CN105187633B/en
Publication of CN105187633A publication Critical patent/CN105187633A/en
Application granted granted Critical
Publication of CN105187633B publication Critical patent/CN105187633B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The embodiment of the invention discloses a method and a device for displaying a mobile phone number, wherein a terminal determines an international area code and a target local number corresponding to the local number, determines a regular expression corresponding to the international area code according to the stored corresponding relation between each international area code and the regular expression, generates a separation format of the local number by adopting the regular expression, and displays the international area code and the target local number separated by adopting the separation format. Correspondingly, the embodiment of the invention provides a mobile phone number display device. In the embodiment of the invention, the separation format of the local number is generated, and the separation format is adopted to guide the user to input, so that the accuracy of the mobile phone number provided by the user can be improved, the failed operation of the user when the user uses the mobile phone number to register is avoided, and the user experience is improved.

Description

A kind of phone number display packing and device
Technical field
The present invention relates to wireless communication system, particularly a kind of phone number display packing and device.
Background technology
Along with the fast development of Internet technology, types of applications increases gradually, for the work of people and life bring a lot of facility.And in the mobile Internet epoch of today, mobile terminal becomes the important tool of people's work and life gradually.User, in order to use the application of various function, often needs input handset number to carry out registering or logging in.
Phone number comprises in the world: international area code and local number, and user, when using phone number to carry out account registration, needs to input this phone number.But because the human-subject test of user is different, some user possible does not also know or do not know the international area code of oneself the country one belongs to, and the phone number of input therefore will be caused invalid, thus affect user and use related application; In addition; the local number length of country variant is not identical; user is when carrying out local number input; usually can input according to former custom; there will not be the situation of few input one or multi input one unavoidably; also the phone number that inputs will be caused invalid, thus affect user and use related application.
Summary of the invention
The embodiment of the invention discloses a kind of phone number display packing and device, the problem of the input accuracy how improving phone number can be solved.
First aspect, the embodiment of the invention discloses a kind of phone number display packing, described method is applied to terminal, and described method comprises:
Determine the international area code that local number is corresponding;
Determine that the number that user inputs in precalculated position is target local number;
According to each international area code of preservation and the corresponding relation of regular expression, determine the regular expression that described international area code is corresponding;
Adopt the described regular expression determined, generate the separation form of local number, show the described international area code determined and the described target local number adopting described separation form to separate.
As another embodiment of the present invention, the described regular expression that described employing is determined, after generating the separation form of local number, described method also comprises:
Generate described international area code and the number example by described separation form separation local number;
Described number example is shown.
As another embodiment of the present invention, the described international area code determining that local number is corresponding comprises following at least one:
Read the Mobile Country Code MCC in client identification module SIM card, the international area code corresponding according to described Mobile Country Code MCC determination local number;
Obtain the positional information of described terminal, the international area code corresponding according to described positional information determination local number;
Read the IP address of described terminal, determine according to described IP address the international area code that local number is corresponding; With
Receive the international area code of user's input, using the described international area code that receives as international area code corresponding to the local number determined.
As another embodiment of the present invention, described method also comprises:
Judge whether comprise default at least one forbidden character in the local number that user inputs;
If so, the one in following operation is carried out:
Forbidden character in described local number is deleted, generates the information that comprises forbidden character in described local number and show; With, whether generation is deleted the information of forbidden character and is shown.
As another embodiment of the present invention, described method also comprises:
Determine the figure place N that described international area code comprises, described N be greater than 0 natural number;
Judge that whether the top N of the local number that user inputs is identical with described international number;
If so, generate the information repeating to input and show.
As another embodiment of the present invention, described method also comprises:
Judge that whether corresponding with this international area code of preserving the length of the local number that user inputs number length identical;
When difference, generate number error information and show.
Second aspect, embodiments provide a kind of phone number display unit, be applied to terminal, described device comprises:
First determination module, for determining the international area code that local number is corresponding; Determine that the number that user inputs in precalculated position is target local number;
Second determination module, for the corresponding relation according to each international area code of preserving and regular expression, determines the regular expression that described international area code is corresponding;
Display module, for adopting the described regular expression determined, generates the separation form of local number, shows the described international area code determined and the described target local number adopting described separation form to separate.
As another embodiment of the present invention, described display module, also for generating described international area code and the number example by described separation form separation local number; Described number example is shown.
As another embodiment of the present invention, described first determination module, specifically for adopting the international area code that following at least one method determination local number is corresponding: read the Mobile Country Code MCC in client identification module SIM card, determine according to described Mobile Country Code MCC the international area code that described local number is corresponding; Obtain the positional information of described terminal, determine according to described positional information the international area code that described local number is corresponding; Read the IP address of described terminal, determine according to described IP address the international area code that described local number is corresponding; With the international area code receiving user's input, using the described international area code received as international area code corresponding to the described local number determined.
As another embodiment of the present invention, described device also comprises:
Judge module, for judging whether comprise default at least one forbidden character in the local number that user inputs;
Executive Module, for when the judged result of judge module is for being, carrying out the one in following operation: the forbidden character in described local number deleted, generating the information that comprises forbidden character in described local number and showing; With, whether generation is deleted the information of forbidden character and is shown.
As another embodiment of the present invention, described device also comprises:
Judge module, for determining the figure place N that described international area code comprises, described N be greater than 0 natural number; Judge that whether the top N of the local number that user inputs is identical with described international number;
Executive Module, for when the judged result of judge module is for being, generation repeats the information of input and shows.
As another embodiment of the present invention, described device also comprises:
Whether corresponding with this international area code of preserving judge module identical for judging the length of the local number that user inputs number length;
Executive Module, for when the judged result of judge module be not used time, generation number error information also shows.
The third aspect, embodiments provides a kind of storage medium, and wherein, this storage medium is for storing application program, and described application program is used for a kind of phone number display packing operationally performed described in the embodiment of the present invention.
Fourth aspect, embodiments provides a kind of application program, and wherein, this application program is used for a kind of phone number display packing operationally performed described in the embodiment of the present invention.
5th aspect, embodiments provides a kind of terminal, is applicable to phone number display, comprises:
Processor, memory, communication interface and bus;
Described processor, described memory and described communication interface are connected by described bus and complete mutual communication;
Described memory stores executable programs code;
Described processor runs the program corresponding with described executable program code by reading the executable program code stored in described memory, for:
Determine the international area code that local number is corresponding;
Determine that the number that user inputs in precalculated position is target local number;
According to each international area code of preservation and the corresponding relation of regular expression, determine the regular expression that described international area code is corresponding;
Adopt the described regular expression determined, generate the separation form of local number, show the described international area code determined and the described target local number adopting described separation form to separate.
Embodiments provide a kind of phone number display packing and device, the international area code that in the method, terminal determination local number is corresponding also determines the target local number that user inputs, according to each international area code of preservation and the corresponding relation of regular expression, determine the regular expression that this international area code is corresponding, this regular expression is adopted to generate the separation form of phone number, the target local number showing described international area code and adopt this separation form to separate.Owing to generating the separation form of local number in embodiments of the present invention, this separation form is adopted to guide user's input, therefore can improve the accuracy of the phone number that user provides, failure operation when avoiding user to use phone number to register, improves the experience of user.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
A kind of phone number procedure for displaying that Fig. 1 provides for the embodiment of the present invention;
The process of the another kind of phone number display that Fig. 2 provides for the embodiment of the present invention;
The detailed implementation process of a kind of phone number display that Fig. 3 provides for the embodiment of the present invention;
The structural representation of a kind of phone number display unit that Fig. 4 provides for the embodiment of the present invention.
Embodiment
In order to effectively guide user to input correct phone number, avoiding using phone number to carry out applying the failure of registration, providing a kind of phone number display packing and device.
Below in conjunction with the accompanying drawing in the embodiment of the present invention, be clearly and completely described the technical scheme in the embodiment of the present invention, obviously, described embodiment is only the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
In actual applications, user need registration, log in certain application, or receive certain application identifying code scene under, all may use the phone number of oneself.This phone number comprises: international area code and local number, generally when inputting, only can input local number.
A kind of phone number procedure for displaying that Fig. 1 provides for the embodiment of the present invention, the method is applied to terminal, and this process comprises the following steps:
S101: determine the international area code that local number is corresponding.
The phone number in the whole world comprises: international area code+local number.Local number is herein we said phone number, such as 138****3800 etc. in the narrow sense.User is when using phone number to register, and the whole phone number of general needs, namely needs international area code+local number.The international area code of country variant is different, therefore needs the international area code determining that local number is corresponding.
The combination of a kind of method or several method can be adopted when determining international area code corresponding to local number, such as can provide directly to user the window carrying out international area code input, international area code user inputted is as international area code corresponding to local number, or also can be the geographical position according to terminal, determine the country at this terminal place, thus determine country that this phone number belongs to etc.
S102: determine that the number that user inputs in precalculated position is target local number.
In order to realize the input of user's local number, show corresponding input frame in the precalculated position of terminal, the number that terminal inputs in this precalculated position according to user, using this number as target local number.
It should be noted that, step S101 and step S102 does not have the restriction of strict execution sequence, and step S102 can perform before step S101 or afterwards, and step S101 can also perform with step S102 simultaneously.The embodiment of the present invention does not limit this.
S103: according to each international area code of preservation and the corresponding relation of regular expression, determine the regular expression that this international area code is corresponding.
As previously mentioned, the international area code of country variant is different, and the length of the local number of each country is also different, in order to the input of pointing out user to carry out local number, in embodiments of the present invention for the local number of different length, adopt different separation forms to show, separate form for often kind and adopt regular expression to express.Such as the local number length of China is 11, then separating form can be international area code-3-4-4, or international area code-4-3-3, separates form for often kind and expresses with corresponding regular expression respectively.
Therefore preserve the corresponding relation of each international area code and regular expression in the terminal, each international area code can a corresponding regular expression, also can corresponding plural regular expression.When the corresponding plural regular expression of international area code, when pointing out user to input local number, can select arbitrarily a regular expression, the separation form adopting this regular expression corresponding is to show local number.
Wherein belong to prior art according to the process separating form generation regular expression, in embodiments of the present invention this process is not repeated.
S104: adopt this regular expression determined, generates the separation form of local number, shows the described international area code determined and the described target local number adopting described separation form to separate.
Owing to preserving the corresponding relation of each international area code and regular expression in terminal, after determining international area code corresponding to local number, the regular expression that this international area code is corresponding can be determined, the separation form of phone number is generated according to this regular expression, this separation form may be used for the target local number separating user's input, when showing, show the international area code determined and the target local number adopting this separation form to separate.Such as this separation form is: 3-4-4, the local number of user's input is 13112345678, international area code is 86, then according to the form display local number of+86-131-1234-5678, or can show according to the form of+86131-1234-5678.
Generate according to regular expression the process separating form and belong to prior art, in embodiments of the present invention this process is not repeated.
Owing to generating the separation form of local number in embodiments of the present invention, adopt this separation form to guide user's input, therefore can improve the accuracy of the local number that user provides, avoid user to the failure of application registration process, improve the experience of user.
The application in the terminal of above-mentioned implementation process is opened when registering and performs, and generates the separation form of local number, and the target local number showing international area code and input according to the user that this separation form is separated in input frame.
When being provided with client identification module (SIM card) in this terminal, can by the information in reading SIM card, obtain the local number of this user, the local number of this acquisition is shown to user, after user confirms, using the local number that the local number after this confirmation inputs as user.But; along with the upgrading of SIM card; the secret protection of operator to user is strengthened gradually; terminal possibly cannot obtain the local number of user from SIM card; in this case; can to user be provided for local number input input frame, and show international area code corresponding to local number and in input frame according to this separation form separate user input local number.The process that wherein terminal obtains the local number of user from SIM card belongs to prior art, and the embodiment of the present invention does not repeat this process.
This terminal comprises in embodiments of the present invention: the terminals such as mobile terminal, PC, panel computer, intelligent television.
In order to improve the accuracy of the phone number of user's input further, effectively point out user, in one embodiment of the invention, described method also comprises:
Generate described international area code and the number example by described separation form separation local number;
The described number example generated is shown to user.
After determining the separation form of regular expression generation local number, number example can be generated according to international area code and this separation form, this number example is shown to user.Concrete can the below of local number input frame or above show this number example.
The process of the another kind of phone number display that Fig. 2 provides for the embodiment of the present invention, this process comprises:
S201: determine the international area code that local number is corresponding, determines that the number that user inputs in precalculated position is target local number.
S202: according to each international area code of preservation and the corresponding relation of regular expression, determine the regular expression that this international area code is corresponding.
S203: adopt this regular expression determined, generates the separation form of local number, shows the described international area code determined and the target local number adopting described separation form to separate.
S204: the number example generating described international area code and the local number by the separation of this separation form, shows the described number example generated.
In a kind of embodiment of the present invention, when being provided with client identification module SIM card in described terminal, such as, when this terminal is mobile terminal, can Mobile Country Code MCC in reading SIM card, determine according to described Mobile Country Code MCC the international area code that described local number is corresponding.
Be understandable that, each country has unique Mobile Country Code MCC (MobileCountryCode, MCC), and unique international area code.In SIM card, include the information of Mobile Country Code MCC MCC, after reading Mobile Country Code MCC MCC, according to this Mobile Country Code MCC MCC, the international area code of its correspondence can be determined, this national area code is defined as the international area code that local number is corresponding.Such as, the Mobile Country Code MCC MCC read from SIM card is 460, according to this Mobile Country Code MCC MCC, can determine that the international area code of its correspondence is 86, this international area code is defined as international area code corresponding to local number.
In another kind of embodiment of the present invention, when described terminal does not install SIM card, such as this terminal is computer, intelligent television or panel computer etc., can obtain the positional information of described terminal, determine according to described positional information the international area code that described local number is corresponding.
When not installing SIM card in the terminal that user uses, international area code cannot be obtained by the Mobile Country Code MCC MCC in reading SIM card, now can obtain the positional information of terminal, according to the country corresponding to this positional information, determine the international area code that local number is corresponding.Concrete, according to global positioning system (GlobalPositioningSystem, the GPS) module in terminal, the positional information of this terminal can be determined.According to positional information, determine that the country corresponding to this positional information belongs to prior art, in embodiments of the present invention this process is not repeated.
In another kind of embodiment of the present invention, when described terminal does not install SIM card, such as this terminal is computer, intelligent television or panel computer etc., according to the IP address of the terminal read, can also determine according to described IP address the international area code that local number is corresponding.This is because some terminal may not have GPS module, in order to determine the international area code that local number is corresponding, by the IP address of reading terminals, the country at terminal place can be determined, according to the country at terminal place, determines the international area code that local number is corresponding.Wherein by IP address, determine that the country at terminal place belongs to prior art, in embodiments of the present invention this process is not repeated.
Perhaps the international area code of user the country one belongs to can't be obtained by the way, the input window of international area code now can be provided to user, for receiving the international area code of user's input, international area code user inputted is as international area code corresponding to described local number obtained.In addition, after obtaining international area code corresponding to described local number by the way, the international area code obtained can be shown, show user, and point out user whether to revise, if this is because when non-its of the country at the current place of user belongs to state, namely when user adopts cell-phone number to register abroad, the international area code that the international area code of current terminal the country one belongs to determined is corresponding from this local number is different, therefore in embodiments of the present invention in order to improve the accuracy of cell-phone number input, after obtaining international area code corresponding to local number, whether prompting user modifies, preserve and show the amended international area code of user.
When determining international area code corresponding to local number, above-mentioned any one embodiment can be adopted, also can adopt the combination of above-mentioned several execution mode, specifically can carry out combination in any according to demand when using.
In another specific embodiment of the present invention, in order to further improve the correctness of the phone number of user's input, described method also comprises:
Judge that whether corresponding with this international area code of preserving the length of the local number that user inputs number length identical;
When difference, generate number error information and show.
Be understandable that, the length of the local number of country variant is different, such as China its local number be 11, the local number of the U.S. is 10.Therefore according to the number length of the local number of each country, the number length of the local number of its correspondence can be preserved for each international area code.After user have input local number, number length that can be corresponding according to this international area code of this preservation, judge that whether corresponding with this international area code of preserving the length of the local number that user inputs number length identical, if different, generate number error information, problem is had to point out the length of user's phone number that it inputs, may be user's multi input or have input a few bit digital less, the length of user opponent's plane No. code then can be made to change, so that user inputs correct phone number.
The detailed implementation process of a kind of phone number display that Fig. 3 provides for the embodiment of the present invention, this process comprises the following steps:
S301: determine the international area code that local number is corresponding, determines that the number that user inputs in precalculated position is target local number.
S302: according to each international area code of preservation and the corresponding relation of regular expression, determine the regular expression that this international area code is corresponding.
S303: adopt this regular expression determined, generate the separation form of local number, described separation form is for showing local number.
S304: generate described international area code and the number example by described separation form separation local number, described number example is shown.
S305: judge that whether corresponding with this international area code of preserving the length of the local number that user inputs number length identical, if not, carry out S306, if so, carries out carrying out according to phone number the process registered.
S306: generate number error information and show.
In another specific embodiment of the present invention, in order to further improve the correctness of the phone number of user's input, described method also comprises:
Judge whether comprise default at least one forbidden character in the local number that user inputs;
If so, the one in following operation is carried out:
Forbidden character in described local number is deleted, generates the information that comprises forbidden character in described local number and show; With, whether generation is deleted the information of forbidden character and is shown.
Local number generally is numeral, user is in the process of carrying out local number input, the character that some are illegal may be inputted, such as alphabetical O mistake is thought numeral 0 input, or have input other letters, punctuation mark etc., or for the local number of some countries, some numerals can not appear at first, such as China its local number first place can not be outside 1 other numeral.
Therefore in order to improve the accuracy of user's input, the forbidden character of its correspondence can be preserved for each international area code, this forbidden character can for whole local number, the forbidden character preset such as whole local number is letter, punctuation mark etc., and any one that namely can be understood as this local number can not be all letter or punctuation mark.Certainly this forbidden character also can be a certain position setting for local number, and such as, for the first place of local number, arranging its forbidden character is 0,2 ~ 9, and namely the first place of this local number can not be the arbitrary numeral in 0 or 2 ~ 9.Forbidden character corresponding to each international area code can be identical, also can be different, need to set according to the local number rule of each country, certainly along with the continuous increase of local number quantity, the forbidden character of its correspondence possible also can change, and therefore can adjust corresponding forbidden character flexibly as required.
When judging to comprise default at least one forbidden character in the local number that user inputs, carrying out following wherein a kind of operation: the forbidden character in described local number deleted, generating the information that comprises forbidden character in described local number and showing; With, whether generation is deleted the information of forbidden character and is shown.Comprising forbidden character to point out in user's phone number that it inputs, may be comprise punctuation mark or letter, or a certain position apparent error, then the carrying out of user opponent's plane No. code can be made to change, so that user inputs correct phone number.
In another specific embodiment of the present invention, in order to further improve the correctness of the phone number of user's input, described method also comprises:
Determine the figure place N that described international area code comprises, described N be greater than 0 natural number;
Judge that whether the top N of the local number that user inputs is identical with described international number;
If so, generate the information repeating to input and show.
The input habit of different user is different, some users get used to inputting international area code when inputting local number simultaneously, the international area code containing repetition in the phone number (international area code+local number) finally obtained can be caused like this, and because international area code occupies the input space of local number, cause getting correct local number.Therefore, in embodiments of the present invention in order to ensure the accuracy of the phone number inputted, according to this figure place N, the figure place N that can comprise according to this international area code, judges that whether the top N of the local number that user inputs is identical with this international number.When judging to comprise international area code in the local number that user inputs, generation repeats the information of input and shows, and prompting user repeats to have input international area code, to make user opponent's plane No. code change, so that user inputs correct phone number.
The structural representation of a kind of phone number display unit that Fig. 4 provides for the embodiment of the present invention, this application of installation, in terminal, comprising:
First determination module 41, for determining the international area code that local number is corresponding; Determine that the number that user inputs in precalculated position is target local number;
Second determination module 42, for the corresponding relation according to each international area code of preserving and regular expression, determines the regular expression that described international area code is corresponding;
Display module 43, for adopting the described regular expression determined, generates the separation form of local number, shows the described international area code determined and the described target local number adopting described separation form to separate.
Described display module 43, also for generating the number example of described international area code and the local number by described separation form separation; The described number example generated is shown.
Described first determination module 41, specifically for adopting the international area code that following at least one method determination local number is corresponding, read the Mobile Country Code MCC in client identification module SIM card, determine according to described Mobile Country Code MCC the international area code that described local number is corresponding; Obtain the positional information of described terminal, determine according to described positional information the international area code that described local number is corresponding; Read the IP address of described terminal, determine according to described IP address the international area code that described local number is corresponding; With the international area code receiving user's input, using the described international area code received as international area code corresponding to the described local number determined.
Described device also comprises:
Judge module 44, for judging whether comprise default at least one forbidden character in the local number that user inputs;
Executive Module 45, for when the judged result of judge module is for being, carrying out the one in following operation: the forbidden character in described local number deleted, generating the information that comprises forbidden character in described local number and showing; With, whether generation is deleted the information of forbidden character and is shown.
Described device also comprises:
Judge module 44, for determining the figure place N that described international area code comprises, described N be greater than 0 natural number; Judge that whether the top N of the local number that user inputs is identical with described international number;
Executive Module 45, for when the judged result of judge module is for being, generation repeats the information of input and shows.
Described device also comprises:
Whether corresponding with this international area code of preserving judge module 44 identical for judging the length of the local number that user inputs number length;
Executive Module 45, for when the judged result of judge module be not used time, generation number error information also shows.
To achieve these goals, the embodiment of the present invention additionally provides a kind of storage medium, and wherein, this storage medium is for storing application program, and described application program is used for a kind of phone number display packing operationally performed described in the embodiment of the present invention.Wherein, a kind of phone number display packing described in the embodiment of the present invention comprises:
Determine the international area code that local number is corresponding;
Determine that the number that user inputs in precalculated position is target local number;
According to each international area code of preservation and the corresponding relation of regular expression, determine the regular expression that described international area code is corresponding;
Adopt the described regular expression determined, generate the separation form of local number, show the described international area code determined and the described target local number adopting described separation form to separate.
To achieve these goals, the embodiment of the present invention additionally provides a kind of application program, and wherein, this application program is used for a kind of phone number display packing operationally performed described in the embodiment of the present invention.Wherein, a kind of phone number display packing described in the embodiment of the present invention, comprising:
Determine the international area code that local number is corresponding;
Determine that the number that user inputs in precalculated position is target local number;
According to each international area code of preservation and the corresponding relation of regular expression, determine the regular expression that described international area code is corresponding;
Adopt the described regular expression determined, generate the separation form of local number, show the described international area code determined and the described target local number adopting described separation form to separate.
The embodiment of the present invention additionally provides a kind of terminal, is applicable to phone number display, comprises:
Processor, memory, communication interface and bus;
Described processor, described memory and described communication interface are connected by described bus and complete mutual communication;
Described memory stores executable programs code;
Described processor runs the program corresponding with described executable program code by reading the executable program code stored in described memory, for:
Determine the international area code that local number is corresponding;
Determine that the number that user inputs in precalculated position is target local number;
According to each international area code of preservation and the corresponding relation of regular expression, determine the regular expression that described international area code is corresponding;
Adopt the described regular expression determined, generate the separation form of local number, show the described international area code determined and the described target local number adopting described separation form to separate.
Embodiments provide a kind of phone number display packing and device, the international area code that in the method, terminal determination local number is corresponding also determines the target local number that user inputs, according to each international area code of preservation and the corresponding relation of regular expression, determine the regular expression that this international area code is corresponding, this regular expression is adopted to generate the separation form of phone number, the target local number showing described international area code and adopt this separation form to separate.Owing to generating the separation form of local number in embodiments of the present invention, this separation form is adopted to guide user's input, therefore can improve the accuracy of the phone number that user provides, failure operation when avoiding user to use phone number to register, improves the experience of user.
For systems/devices embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
It should be noted that, in this article, the such as relational terms of first and second grades and so on is only used for an entity or operation to separate with another entity or operating space, and not necessarily requires or imply the relation that there is any this reality between these entities or operation or sequentially.And, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, article or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, article or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, article or the equipment comprising described key element and also there is other identical element.
Each embodiment in this specification all adopts relevant mode to describe, between each embodiment identical similar part mutually see, what each embodiment stressed is the difference with other embodiments.Especially, for device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, relevant part illustrates see the part of embodiment of the method.
In flow charts represent or in this logic otherwise described and/or step, such as, the sequencing list of the executable instruction for realizing logic function can be considered to, may be embodied in any computer-readable medium, for instruction execution system, device or equipment (as computer based system, comprise the system of processor or other can from instruction execution system, device or equipment instruction fetch and perform the system of instruction) use, or to use in conjunction with these instruction execution systems, device or equipment.With regard to this specification, " computer-readable medium " can be anyly can to comprise, store, communicate, propagate or transmission procedure for instruction execution system, device or equipment or the device that uses in conjunction with these instruction execution systems, device or equipment.The example more specifically (non-exhaustive list) of computer-readable medium comprises following: the electrical connection section (electronic installation) with one or more wiring, portable computer diskette box (magnetic device), random access memory (RAM), read-only memory (ROM), erasablely edit read-only memory (EPROM or flash memory), fiber device, and portable optic disk read-only memory (CDROM).In addition, computer-readable medium can be even paper or other suitable media that can print described program thereon, because can such as by carrying out optical scanner to paper or other media, then carry out editing, decipher or carry out process with other suitable methods if desired and electronically obtain described program, be then stored in computer storage.
Should be appreciated that each several part of the present invention can realize with hardware, software, firmware or their combination.In the above-described embodiment, multiple step or method can with to store in memory and the software performed by suitable instruction execution system or firmware realize.Such as, if realized with hardware, the same in another embodiment, can realize by any one in following technology well known in the art or their combination: the discrete logic with the logic gates for realizing logic function to data-signal, there is the application-specific integrated circuit (ASIC) of suitable combinational logic gate circuit, programmable gate array (PGA), field programmable gate array (FPGA) etc.
The foregoing is only preferred embodiment of the present invention, be not intended to limit protection scope of the present invention.All any amendments done within the spirit and principles in the present invention, equivalent replacement, improvement etc., be all included in protection scope of the present invention.

Claims (10)

1. a phone number display packing, is characterized in that, described method is applied to terminal, and described method comprises:
Determine the international area code that local number is corresponding;
Determine that the number that user inputs in precalculated position is target local number;
According to each international area code of preservation and the corresponding relation of regular expression, determine the regular expression that described international area code is corresponding;
Adopt the described regular expression determined, generate the separation form of local number, show the described international area code determined and the described target local number adopting described separation form to separate.
2. the method for claim 1, is characterized in that, the described regular expression that described employing is determined, after generating the separation form of local number, described method also comprises:
Generate described international area code and the number example by described separation form separation local number;
Described number example is shown.
3. the method for claim 1, is characterized in that, the described international area code determining that local number is corresponding comprises following at least one:
Read the Mobile Country Code MCC in client identification module SIM card, the international area code corresponding according to described Mobile Country Code MCC determination local number;
Obtain the positional information of described terminal, the international area code corresponding according to described positional information determination local number;
Read the IP address of described terminal, determine according to described IP address the international area code that local number is corresponding; With
Receive the international area code of user's input, using the described international area code that receives as international area code corresponding to the local number determined.
4. the method as described in any one of claim 1-3, is characterized in that, described method also comprises:
Judge whether comprise default at least one forbidden character in the local number that user inputs;
If so, the one in following operation is carried out:
Forbidden character in described local number is deleted, generates the information that comprises forbidden character in described local number and show; With, whether generation is deleted the information of forbidden character and is shown.
5. the method as described in any one of claim 1-3, is characterized in that, described method also comprises:
Determine the figure place N that described international area code comprises, described N be greater than 0 natural number;
Judge that whether the top N of the local number that user inputs is identical with described international number;
If so, generate the information repeating to input and show.
6. the method as described in any one of claim 1-3, is characterized in that, described method also comprises:
Judge that whether corresponding with this international area code of preserving the length of the local number that user inputs number length identical;
When difference, generate number error information and show.
7. a phone number display unit, is characterized in that, is applied to terminal, and described device comprises:
First determination module, for determining the international area code that local number is corresponding; Determine that the number that user inputs in precalculated position is target local number;
Second determination module, for the corresponding relation according to each international area code of preserving and regular expression, determines the regular expression that described international area code is corresponding;
Display module, for adopting the described regular expression determined, generates the separation form of local number, shows the described international area code determined and the described target local number adopting described separation form to separate.
8. device as claimed in claim 7, is characterized in that, described display module, also for generating described international area code and the number example by described separation form separation local number; Described number example is shown.
9. device as claimed in claim 7, it is characterized in that, described first determination module, specifically for adopting the international area code that following at least one method determination local number is corresponding: read the Mobile Country Code MCC in client identification module SIM card, determine according to described Mobile Country Code MCC the international area code that described local number is corresponding; Obtain the positional information of described terminal, determine according to described positional information the international area code that described local number is corresponding; Read the IP address of described terminal, determine according to described IP address the international area code that described local number is corresponding; With the international area code receiving user's input, using the described international area code received as international area code corresponding to the described local number determined.
10. the device as described in any one of claim 7-9, is characterized in that, described device also comprises:
Judge module, for judging whether comprise default at least one forbidden character in the local number that user inputs;
Executive Module, for when the judged result of judge module is for being, carrying out the one in following operation: the forbidden character in described local number deleted, generating the information that comprises forbidden character in described local number and showing; With, whether generation is deleted the information of forbidden character and is shown.
CN201510478485.XA 2015-08-06 2015-08-06 Mobile phone number display method and device Active CN105187633B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510478485.XA CN105187633B (en) 2015-08-06 2015-08-06 Mobile phone number display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510478485.XA CN105187633B (en) 2015-08-06 2015-08-06 Mobile phone number display method and device

Publications (2)

Publication Number Publication Date
CN105187633A true CN105187633A (en) 2015-12-23
CN105187633B CN105187633B (en) 2018-09-11

Family

ID=54909470

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510478485.XA Active CN105187633B (en) 2015-08-06 2015-08-06 Mobile phone number display method and device

Country Status (1)

Country Link
CN (1) CN105187633B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107623945A (en) * 2017-10-09 2018-01-23 上海连尚网络科技有限公司 Position method, system and the computer-readable storage medium of mobile device region
CN108810893A (en) * 2018-05-30 2018-11-13 厦门盈趣科技股份有限公司 A kind of internationalization version software user logs in exchange method and system

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5991383A (en) * 1998-05-26 1999-11-23 Siemens Information And Communication Networks, Inc. Partitioning of display for calling party numbers
CN101753673A (en) * 2009-12-25 2010-06-23 深圳市杰普林数码科技有限公司 Telephone number segment display system and method
CN102843468A (en) * 2012-08-14 2012-12-26 广东欧珀移动通信有限公司 Digital character string display method and mobile intelligent terminal
CN103051784A (en) * 2012-12-10 2013-04-17 广东欧珀移动通信有限公司 Smart dialing method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5991383A (en) * 1998-05-26 1999-11-23 Siemens Information And Communication Networks, Inc. Partitioning of display for calling party numbers
CN101753673A (en) * 2009-12-25 2010-06-23 深圳市杰普林数码科技有限公司 Telephone number segment display system and method
CN102843468A (en) * 2012-08-14 2012-12-26 广东欧珀移动通信有限公司 Digital character string display method and mobile intelligent terminal
CN103051784A (en) * 2012-12-10 2013-04-17 广东欧珀移动通信有限公司 Smart dialing method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107623945A (en) * 2017-10-09 2018-01-23 上海连尚网络科技有限公司 Position method, system and the computer-readable storage medium of mobile device region
CN107623945B (en) * 2017-10-09 2020-06-05 上海连尚网络科技有限公司 Method, system and computer storage medium for locating area of mobile device
CN108810893A (en) * 2018-05-30 2018-11-13 厦门盈趣科技股份有限公司 A kind of internationalization version software user logs in exchange method and system

Also Published As

Publication number Publication date
CN105187633B (en) 2018-09-11

Similar Documents

Publication Publication Date Title
CN101299857B (en) Method and apparatus for outputting communication information
CN104866542A (en) POI data verification method and device
CN105187632A (en) Method and device for determining mobile phone number
CN111708557B (en) Method, device and storage medium for updating configuration file
CN110351715A (en) AT command processing method, terminal adapter and computer readable storage medium
CN104636142A (en) Information processing method and electronic equipment
CN110096413A (en) A kind of disk localization method, system and electronic equipment and storage medium
CN115857905A (en) Code conversion method and device for graphical programming, electronic equipment and storage medium
CN103647775A (en) Method and apparatus for registration in webpage
CN108093057A (en) Method and device for guiding permission to be opened
CN114780519A (en) DBC file generation method, device, equipment and medium based on CAN communication
CN105187633A (en) Mobile phone number display method and device
CN104281561A (en) Data recovery method and electronic equipment
CN111124541B (en) Configuration file generation method, device, equipment and medium
CN104598782A (en) Data packaging and analysis method and device
CN105739717A (en) Information input method and device
CN110941744A (en) Data list adder and adding method
CN106034119A (en) Encryption mixing method and device for application installation package
CN104536887A (en) Communication data detection method and device
CN111181836B (en) Message pushing method and device
CN110795388B (en) Binary file processing method, system, equipment and readable storage medium
CN108776569B (en) Method and device for modifying compiling option control file
CN110780898A (en) Page data upgrading method and device and electronic equipment
CN111753238A (en) Data mapping method and device and electronic equipment
CN104270678A (en) Thumbnail display method, device and system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant