CN103024122B - A kind of storage means by mobile terminal memory mobile phone number and mobile terminal - Google Patents

A kind of storage means by mobile terminal memory mobile phone number and mobile terminal Download PDF

Info

Publication number
CN103024122B
CN103024122B CN201210569143.5A CN201210569143A CN103024122B CN 103024122 B CN103024122 B CN 103024122B CN 201210569143 A CN201210569143 A CN 201210569143A CN 103024122 B CN103024122 B CN 103024122B
Authority
CN
China
Prior art keywords
phone number
mobile terminal
conditioned
module
numeral
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.)
Expired - Fee Related
Application number
CN201210569143.5A
Other languages
Chinese (zh)
Other versions
CN103024122A (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.)
TCL Mobile Communication Technology Ningbo Ltd
Original Assignee
TCL Communication Ningbo 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 TCL Communication Ningbo Ltd filed Critical TCL Communication Ningbo Ltd
Priority to CN201210569143.5A priority Critical patent/CN103024122B/en
Publication of CN103024122A publication Critical patent/CN103024122A/en
Application granted granted Critical
Publication of CN103024122B publication Critical patent/CN103024122B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of storage means by mobile terminal memory mobile phone number and mobile terminal.Described storage means comprises; The phone number of S1, acquisition for mobile terminal user input, and it is pre-conditioned to judge whether phone number meets, and controls to enter step S2 when being; The coding module of S2, mobile terminal receives and meets pre-conditioned phone number, and carries out code conversion for numeral by meeting pre-conditioned phone number; The memory module of S3, mobile terminal receives and is converted to digital phone number and stores.Adopt the present invention greatly can reduce phone number memory space shared in the terminal, improve the utilance of memory module.

Description

A kind of storage means by mobile terminal memory mobile phone number and mobile terminal
Technical field
The telephone number that the present invention relates to mobile terminal stores, in particular a kind of storage means by mobile terminal memory mobile phone number and mobile terminal.
Background technology
Existing phone number stores in a memory in the mobile terminal by character, such as phone number 13515886290 is stored in memory by character ' 1 ', ' 3 ', ' 5 ', ' 1 ', ' 5 ', ' 8 ', ' 8 ', ' 6 ', ' 2 ', ' 9 ', ' 0 ', without any relation between each numeral of phone number, a character needs 8 to store, and therefore phone number 13515886290 needs the memory space of 88 i.e. 11 bytes.Adopt this kind of storage means to be unfavorable for the utilance of memory, cause the waste of certain memory space.
Therefore, prior art has yet to be improved and developed.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, provides a kind of storage means by mobile terminal memory mobile phone number and mobile terminal.Storage means of the present invention is stored in the memory module of mobile terminal by phone number in the mode of numeral, by greatly reducing phone number memory space shared in the terminal, improves the utilance of memory module.
The technical scheme that technical solution problem of the present invention adopts is as follows:
By a storage means for mobile terminal memory mobile phone number, wherein, comprise step:
The phone number of S1, acquisition for mobile terminal user input, and it is pre-conditioned to judge whether phone number meets, and controls to enter step S2 when being;
The coding module of S2, mobile terminal receives and meets pre-conditioned phone number, and carries out code conversion for numeral by meeting pre-conditioned phone number;
The memory module of S3, mobile terminal receives and is converted to digital phone number and stores.
Pre-conditioned in described step S1 specifically comprises;
Each character of described phone number is any one numeral in 0 to 90 numeral;
And the first character non-zero of described phone number.
Described step S1 also comprises;
The memory module of mobile terminal stores not meeting the mode that pre-conditioned phone number gives tacit consent to memory module.
Described step S2 also comprises; The coding module of described mobile terminal according to the first formula by phone number C1C2C3 ... C11 is converted to numeral;
Described first formula is:
; Wherein, C1 represents the first figure place of described phone number, and C2 represents the second figure place of described phone number ... C11 represents the 11st figure place of described phone number.
Also comprise after described step S3;
S31, when showing the phone number of described storage, the memory module of mobile terminal obtains the target number D needing to read, and this target number D is passed to the decoder module of mobile terminal;
S32, described decoder module convert described target number D to character;
The display screen display of S33, mobile terminal is converted to the phone number of character.
Described step S32 also comprises; Described mobile terminal decoder module converts target number D to character C1C2C3 according to the second formula ... C11;
Wherein, described second formula is:
Adopt a mobile terminal for the above-mentioned storage means by mobile terminal memory mobile phone number, wherein, described mobile terminal comprises;
Memory module, for obtaining the phone number of user's input, and sends to filtration judge module by this phone number, and it is also for storing not meeting pre-conditioned phone number and being converted to digital phone number;
Filter judge module, pre-conditioned for judging whether described phone number meets, if do not meet pre-conditioned, then pass to memory module by not meeting pre-conditioned phone number; If meet pre-conditioned, then send to coding module by meeting pre-conditioned phone number;
Coding module, for by described meet pre-conditioned phone number carry out code conversion for numeral, and by be converted to numeral phone number send to described memory module.
Described coding module according to the first formula by phone number C1C2C3 ... C11 is converted to numeral;
Described first formula is:
; Wherein, C1 represents the first figure place of described phone number, and C2 represents the second figure place of described phone number ... C11 represents the 11st figure place of described phone number.
Described mobile terminal also comprises;
Decoder module, for obtaining the target number D needing to read from the memory module of mobile terminal, and converts described target number D to character.
Described decoder module converts target number D to character C1C2C3 according to the second formula ... C11;
Wherein, described second formula is;
A kind of storage means by mobile terminal memory mobile phone number provided by the present invention and mobile terminal, coding module is passed to by meeting pre-conditioned phone number owing to have employed memory module, phone number is converted to numeral by described coding module, the phone number being converted to numeral stores by memory module, use storage means of the present invention, to greatly reduce phone number memory space in the terminal, improve the utilance of memory, make the present invention in some low costs, in the mobile terminal that memory span is less, there is larger value.
Accompanying drawing explanation
Fig. 1 is the preferred embodiment flow chart of steps of a kind of storage means by mobile terminal memory mobile phone number provided by the present invention.
Fig. 2 is the preferred embodiment flow chart of steps being read phone number by storage means provided by the present invention.
Fig. 3 is the preferred embodiment functional schematic block diagram of a kind of mobile terminal provided by the present invention.
Embodiment
For making object of the present invention, technical scheme and advantage clearly, clearly, developing simultaneously referring to accompanying drawing, the present invention is described in more detail for embodiment.Should be appreciated that specific embodiment described herein only in order to explain the present invention, be not intended to limit the present invention.
Refer to Fig. 1, Fig. 1 is the preferred embodiment flow chart of steps of a kind of storage means by mobile terminal memory mobile phone number provided by the present invention.
First the phone number of step 101, acquisition for mobile terminal user input is entered;
It is pre-conditioned that step 102, mobile terminal judge whether described phone number meets;
Wherein, meet simultaneously the phone number of two conditions just can be judged as meet pre-conditioned, as long as there is a condition not meet, then phone number will be judged as do not meet pre-conditioned;
These two conditions are respectively;
1, each character of described phone number is any one numeral in 0 to 90 numeral;
2, the first character non-zero of described phone number.
When not meeting pre-conditioned, then enter step 103, the memory module of mobile terminal stores not meeting the mode that pre-conditioned phone number gives tacit consent to memory module;
When meeting pre-conditioned, then enter step 104, mobile terminal coding module receive meet pre-conditioned phone number;
After coding module receives and meets pre-conditioned phone number, enter step 105, phone number carries out code conversion for numeral by the coding module of mobile terminal;
The phone number that such as described coding module receives is C1C2C3 ... C11, wherein, C1 represents the first figure place of described phone number, and C2 represents the second figure place of described phone number ... C11 represents the 11st figure place of described phone number;
Described coding module according to the first formula by phone number C1C2C3 ... C11 is converted to numeral;
Wherein, described first formula is;
namely according to described first formula, make described coding module that phone number is converted to numeral;
Be converted to the phone number of numeral described in the memory module reception of step 106, mobile terminal and store;
Further, in a step 102, judge whether phone number meets pre-conditioned false code as follows:
StringMobileNum; //MobileNum is the phone number that user needs to preserve, and it is character string
Char*p=MobileNum;
For (i=0; I<11; I++) // judge whether filter condition (1) each character is the numeral of 0 to 9
{
if(‘0’≤*(p+i)≤‘9’)
continue;
else
Return; If // do not meet filter condition (1), exit
}
Whether if (* p==0) // judge filter condition (2) first character is the numeral of non-zero
Return; If // do not meet filter condition (2), exit
else
Gotoencoder; // meet filter condition (1) and (2) then import coding module into
Storage means described in this preferred embodiment, the feature of combination of numbers mostly is in conjunction with phone number, store meeting pre-conditioned phone number by its numerical value, such as, such as phone number 13515886290 is converted to digital 0x3259C0ED2 according to described first formula, and digital 0x3259C0ED2 stores by described memory module; By this storage means, make phone number 13515886290 needs 34 the i.e. memory space of 8 bytes.
And in actual applications, the memory space that the storage means provided by this preferred embodiment stores an existing phone number to be needed at most is the phone number 18999999999 storing China Telecom, this phone number is stored as 0x46C7CFDFF, only need 35 the i.e. memory space of 8 bytes.Therefore, use storage means of the present invention greatly can reduce phone number memory space in the terminal, improve the utilance of memory.
Below in conjunction with Fig. 2, how to read the phone number stored in digital form elaborate to user, wherein, Fig. 2 is the preferred embodiment flow chart of steps being read phone number by storage means provided by the present invention.
When user needs reading to be stored in the phone number in mobile terminal memory module in the mode of numeral, first step 201 is entered, when the phone number of described storage need be shown, the memory module of mobile terminal obtains the target number D needing to read, and this target number D is passed to the decoder module of mobile terminal;
Step 202, described decoder module convert described target number D to character;
Wherein, described decoder module converts target number D to character C1C2C3 according to the second formula ... C11;
Wherein, described second formula is;
that is, make the digital D stored in memory module be converted to phone number C1C2C3 by described decoder module ... after C11, enter step 203;
The display screen display of step 203, mobile terminal is converted to the phone number of character;
Namely by the method described in this preferred embodiment, make user can read the phone number stored in mobile terminal memory module, and be character by the digital translation in memory module, and by the display screen of mobile terminal, the phone number being converted to character is shown, user can be read easily and carry out in the mode of numeral the phone number that stores.
According to described storage means, the present invention also provides a kind of mobile terminal, and wherein, described mobile terminal can comprise mobile phone, panel computer etc.;
Elaborate to mobile terminal provided by the present invention below in conjunction with Fig. 3, wherein, Fig. 3 is the preferred embodiment functional schematic block diagram of a kind of mobile terminal provided by the present invention.
Described mobile terminal 300 comprises;
Memory module 301, for obtaining the phone number of user's input, and sends to filtration judge module 302 by this phone number, it is also for storing not meeting pre-conditioned phone number and being converted to digital phone number;
Wherein, if phone number does not meet pre-conditioned, then the mode that described memory module 301 is given tacit consent to it stores;
Filter judge module 302, pre-conditioned for judging whether described phone number meets, if do not meet pre-conditioned, then pass to memory module 301 by not meeting pre-conditioned phone number; If meet pre-conditioned, then send to coding module 303 by meeting pre-conditioned phone number;
Wherein, be describedly pre-conditionedly;
Each character of described phone number is any one numeral in 0 to 90 numeral;
And the first character non-zero of described phone number.
Namely must meet the phone number of above-mentioned condition simultaneously, just can be judged as meet pre-conditioned;
Coding module 303, for by described meet pre-conditioned phone number carry out code conversion for numeral, and by be converted to numeral phone number send to described memory module 301;
Wherein, described coding module 303 according to the first formula by phone number C1C2C3 ... C11 is converted to numeral;
Described first formula is;
wherein, C1 represents the first figure place of described phone number, and C2 represents the second figure place of described phone number ... C11 represents the 11st figure place of described phone number.
By described first formula, be numeral by phone number by character conversion, will the memory space of memory module be greatly reduced, and improve the utilance of memory module.
Further, described mobile terminal 300 also comprises decoder module 304, for obtaining the target number D needing to read from the memory module 301 of mobile terminal, and converts described target number D to character.
Namely described decoder module 304 converts target number D to character C1C2C3 according to the second formula ... C11;
Wherein, described second formula is;
namely by described decoder module 304, phone number is converted to character C1C2C3 from digital D ... C11, thus make the display screen of mobile terminal by described character C1C2C3 ... C11 shows, and user just can obtain phone number.
In sum, the invention provides a kind of storage means by mobile terminal memory mobile phone number and mobile terminal, by described storage means and mobile terminal, make the coding module of mobile terminal that phone number is converted to numeral, the phone number being converted to numeral stores by the memory module of mobile terminal.Adopt this kind of storage means, by greatly reducing phone number memory space shared in the terminal, improving the utilance of memory module, making the present invention in some low costs, in the mobile terminal that memory span is less, there is larger value.
Should be understood that, application of the present invention is not limited to above-mentioned citing, for those of ordinary skills, can be improved according to the above description or convert, and all these improve and convert the protection range that all should belong to claims of the present invention.

Claims (7)

1., by a storage means for mobile terminal memory mobile phone number, it is characterized in that, comprise step:
The phone number of S1, acquisition for mobile terminal user input, and it is pre-conditioned to judge whether phone number meets, and controls to enter step S2 when being;
The coding module of S2, mobile terminal receives and meets pre-conditioned phone number, and carries out code conversion for numeral by meeting pre-conditioned phone number;
The memory module of S3, mobile terminal receives and is converted to digital phone number and stores;
Pre-conditioned in described step S1 specifically comprises;
Each character of described phone number is any one numeral in 0 to 90 numeral;
And the first character non-zero of described phone number;
Judge whether described phone number meets pre-conditioned step:
Any one phone number, phone number is string format;
Judge filter condition (1): namely whether each character is the numeral of 0 to 9;
If do not meet filter condition (1), exit;
Judge filter condition (2): namely whether first character is the numeral of non-zero;
If do not meet filter condition (2), exit;
If meet filter condition (1) and (2) simultaneously, import phone number into coding module;
Described step S2 also comprises: the coding module of described mobile terminal according to the first formula by phone number C1C2C3 ... C11 is converted to numeral;
Described first formula is:
: wherein, C1 represents the first figure place of described phone number, and C2 represents the second figure place of described phone number ... C11 represents the 11st figure place of described phone number.
2. the storage means by mobile terminal memory mobile phone number according to claim 1, it is characterized in that, described step S1 also comprises;
The memory module of mobile terminal stores not meeting the mode that pre-conditioned phone number gives tacit consent to memory module.
3. the storage means by mobile terminal memory mobile phone number according to claim 1, is characterized in that, also comprise after described step S3;
S31, when showing the phone number of described storage, the memory module of mobile terminal obtains the target number D needing to read, and this target number D is passed to the decoder module of mobile terminal;
S32, described decoder module convert described target number D to character;
The display screen display of S33, mobile terminal is converted to the phone number of character.
4. the storage means by mobile terminal memory mobile phone number according to claim 3, it is characterized in that, described step S32 also comprises; Described mobile terminal decoder module converts target number D to character C1C2C3 according to the second formula ... C11;
Wherein, described second formula is;
5. adopt a mobile terminal for the storage means by mobile terminal memory mobile phone number described in Claims 1-4 any one, it is characterized in that, described mobile terminal comprises;
Memory module, for obtaining the phone number of user's input, and sends to filtration judge module by this phone number, and it is also for storing not meeting pre-conditioned phone number and being converted to digital phone number;
Filter judge module, pre-conditioned for judging whether described phone number meets, if do not meet pre-conditioned, then pass to memory module by not meeting pre-conditioned phone number; If meet pre-conditioned, then send to coding module by meeting pre-conditioned phone number;
Coding module, for by described meet pre-conditioned phone number carry out code conversion for numeral, and by be converted to numeral phone number send to described memory module;
Judge whether described phone number meets pre-conditioned step:
Any one phone number, phone number is string format;
Judge filter condition (1), namely whether each character is the numeral of 0 to 9;
If do not meet filter condition (1), exit;
Judge filter condition (2), namely whether first character is the numeral of non-zero;
If do not meet filter condition (2), exit;
If meet filter condition (1) and (2) simultaneously, import coding module into;
Described coding module according to the first formula by phone number C1C2C3 ... C11 is converted to numeral;
Described first formula is:
: wherein, C1 represents the first figure place of described phone number, and C2 represents the second figure place of described phone number ... C11 represents the 11st figure place of described phone number.
6. mobile terminal according to claim 5, is characterized in that, described mobile terminal also comprises;
Decoder module, for obtaining the target number D needing to read from the memory module of mobile terminal, and converts described target number D to character.
7. mobile terminal according to claim 6, is characterized in that, described decoder module converts target number D to character C1C2C3 according to the second formula ... C11;
Wherein, described second formula is:
CN201210569143.5A 2012-12-25 2012-12-25 A kind of storage means by mobile terminal memory mobile phone number and mobile terminal Expired - Fee Related CN103024122B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210569143.5A CN103024122B (en) 2012-12-25 2012-12-25 A kind of storage means by mobile terminal memory mobile phone number and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210569143.5A CN103024122B (en) 2012-12-25 2012-12-25 A kind of storage means by mobile terminal memory mobile phone number and mobile terminal

Publications (2)

Publication Number Publication Date
CN103024122A CN103024122A (en) 2013-04-03
CN103024122B true CN103024122B (en) 2016-02-10

Family

ID=47972241

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210569143.5A Expired - Fee Related CN103024122B (en) 2012-12-25 2012-12-25 A kind of storage means by mobile terminal memory mobile phone number and mobile terminal

Country Status (1)

Country Link
CN (1) CN103024122B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105791527A (en) * 2014-12-26 2016-07-20 北京奇虎科技有限公司 Method and device for transmitting contacts of mobile terminal
CN105141734B (en) * 2015-08-14 2017-07-28 广东欧珀移动通信有限公司 A kind of method, device and the intelligent terminal of intelligent storage telephone number extension number
CN110856151A (en) * 2019-09-29 2020-02-28 惠州Tcl移动通信有限公司 Storage method and reading method of Bluetooth pairing name, storage medium and terminal

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1418034A (en) * 2002-11-13 2003-05-14 大唐微电子技术有限公司 Expanding method of telephone directory in subscriber identifying module
EP2472996A1 (en) * 2009-09-18 2012-07-04 ZTE Corporation Method and device for operating telephone directory

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101483844B (en) * 2009-02-12 2011-12-07 北京阳光加信科技有限公司 Method and system for indexing mobile telephone number

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1418034A (en) * 2002-11-13 2003-05-14 大唐微电子技术有限公司 Expanding method of telephone directory in subscriber identifying module
EP2472996A1 (en) * 2009-09-18 2012-07-04 ZTE Corporation Method and device for operating telephone directory

Also Published As

Publication number Publication date
CN103024122A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN105261366B (en) Audio recognition method, speech engine and terminal
CN102984151B (en) Method and the server of image data are provided to computing terminal
CN103024122B (en) A kind of storage means by mobile terminal memory mobile phone number and mobile terminal
CN101951424A (en) Contact information prompt method, system and mobile terminal
CN102857636A (en) Operation method and operation system for address book at mobile terminal
CN104980811A (en) Remote controller device, call device, call system and call method
CN102801866B (en) Group-texting method of mobile terminal
US11582173B2 (en) Message processing method and electronic device supporting the same
CN101980514A (en) System for extracting short message contents of code division multiple access (CDMA) mobile phone and operating method thereof
CN201114264Y (en) Micro-amplification camera shooting module group for mobile telephone
CN111447360A (en) Application program control method and device, storage medium and electronic equipment
CN103051518B (en) The method that information forwards and communication terminal thereof
CN102014191A (en) System and method for acquiring contact names
US10972698B2 (en) Method and device for selecting a process to be applied on video data from a set of candidate processes driven by a common set of information data
CN104618875A (en) Message sending method and electronic device
CN205092870U (en) Automatic check detecting system of refrigerator wiFi domain name
CN101076050A (en) Access terminal and method for inquiring telephone-number atribute in access terminal
CN101827156B (en) Call management system and method
CN103124309B (en) Method and terminal for read-write control of mobile phone files
CN101207872A (en) Method and system for storing mobile telephone book
CN104933646A (en) Laboratory self-service visit system based on raspberry pi
CN103631716B (en) The conversion method and equipment of a kind of debug command
CN101729666A (en) Method for mobile communication terminal to search short message
CN105554820A (en) WIFI hotspot traffic controlling method and system, and intelligent terminal
CN102014188A (en) Mobile phone and method for limiting dialing regions of same

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20161111

Address after: 315100 Zhejiang city of Ningbo province high tech Zone to 999 Lane Road No. 5 10 floor

Patentee after: TCL mobile communication technology (Ningbo) Co.,Ltd.

Address before: 315100 6th Floor, No. 5, Lane 999, Yangfan Road, High-tech Zone, Ningbo City, Zhejiang Province

Patentee before: TCL COMMUNICATION (NINGBO) Co.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20160210

CF01 Termination of patent right due to non-payment of annual fee