CN106713587B - A kind of contact person's searching method - Google Patents

A kind of contact person's searching method Download PDF

Info

Publication number
CN106713587B
CN106713587B CN201611186474.5A CN201611186474A CN106713587B CN 106713587 B CN106713587 B CN 106713587B CN 201611186474 A CN201611186474 A CN 201611186474A CN 106713587 B CN106713587 B CN 106713587B
Authority
CN
China
Prior art keywords
space
contact person
name
information
contact
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.)
Active
Application number
CN201611186474.5A
Other languages
Chinese (zh)
Other versions
CN106713587A (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.)
Huizhou Foryou General Electronics Co Ltd
Original Assignee
Huizhou Foryou General Electronics 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 Huizhou Foryou General Electronics Co Ltd filed Critical Huizhou Foryou General Electronics Co Ltd
Priority to CN201611186474.5A priority Critical patent/CN106713587B/en
Publication of CN106713587A publication Critical patent/CN106713587A/en
Application granted granted Critical
Publication of CN106713587B publication Critical patent/CN106713587B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27467Methods of retrieving data
    • H04M1/2748Methods of retrieving data by matching character strings
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/26Devices for calling a subscriber
    • H04M1/27Devices whereby a plurality of signals may be stored simultaneously
    • H04M1/274Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc
    • H04M1/2745Devices whereby a plurality of signals may be stored simultaneously with provision for storing more than one subscriber number at a time, e.g. using toothed disc using static electronic memories, e.g. chips
    • H04M1/27485Appending a prefix to or inserting a pause into a dialling sequence

Landscapes

  • Engineering & Computer Science (AREA)
  • Signal Processing (AREA)
  • Mobile Radio Communication Systems (AREA)
  • Telephone Function (AREA)

Abstract

The present invention provides a kind of contact person's searching method, comprising: S1, name of contact person acquisition of information and preservation step: S11, the space information obtained in name of contact person are simultaneously saved into contact information;S12, when the space number in name of contact person is zero, the grade for obtaining current traversal character is simultaneously saved into contact information;S13, when the space number in name of contact person is greater than zero, obtain and each traversed the grade of initial character behind space and be saved into contact information;S2, matching associated person step: S21, the grade for obtaining current queries character is searched;S22, matching associated person is searched;S23, if it exists matching associated person save search result;S24, if it does not exist matching associated person, it obtains the grade of initial character after having inquired a space of last character or obtains the grade of initial character behind a space after having inquired last space, return step S22 circulation carries out, until operating procedure S23, the present invention, which realizes, quickly navigates to the contact person to be searched, search efficiency is improved, operating procedure is reduced and improves safety.

Description

A kind of contact person's searching method
Technical field
The present invention relates to phone directory search technique field more particularly to a kind of contact person's searching methods.
Background technique
The function of inter-vehicle information system is more and more at present, brings great convenience for the trip of people.As vehicle-mounted One of most common function of information system --- bluetooth telephone improves the safety of driving due to its hand-free call function.It is blue Tooth phone also has the function on synchronous phone directory to inter-vehicle information system while having hand-free call function.However, mesh The bluetooth telephone of preceding inter-vehicle information system can only be divided in the contact person searched on phone directory according to surname initial Class, such as click Z, then show the contact person started with Z, and with contact person's often more than one, such as Zhang of Z beginning San, Zuck Clinton, etc., then user needs to search the contact person to be searched in these contact persons, it is clear that this needs By the operation compared with multi-step, for vehicle environment, the security risk of driving is increased.
Therefore, existing phone directory searching method is further improved.
Summary of the invention
To overcome the shortcomings of existing phone directory initial querying method, the present invention provides a kind of contact person's searching method, Solves the technical issues of quickly navigating to the contact person to be searched.
In order to achieve the above objectives, the technical solution used in the present invention are as follows:
The present invention provides a kind of contact person's searching method, comprising:
S1, name of contact person acquisition of information and preservation step:
S11, it obtains the space information in name of contact person and is saved into contact information, the name of contact person In space information include space number and each space in name position;
S12, when the space number in name of contact person is zero, the grade for obtaining current traversal character is simultaneously saved into connection It is in people's information;
S13, when the space number in name of contact person is greater than zero, obtain and each traversed the grade of initial character behind space simultaneously It is saved into contact information;
S2, matching associated person step is searched:
S21, the grade for obtaining current queries character;
S22, matching associated person is searched;
S23, if it exists matching associated person save search result;
S24, if it does not exist matching associated person obtain the grade of initial character after having inquired a space of last character or obtain The grade of initial character behind a space after having inquired last space is taken, return step S22 circulation carries out, until final operation step Rapid S23.
Further, in step s 11, after obtaining contact person space information, further includes:
S111, to judge whether there is multiple spaces adjacent;
S112, if so, obtain adjacent space number, it is a space that multiple adjacent spaces, which are calculated, updates current contacts Space information, by updated contact person space information preservation into contact information;
S113, if it is not, by contact person space information preservation into contact information.
Further, step S13 includes:
S131, number of characters has been searched after obtaining input space;
S132, judgement have traversed the space number whether space number is equal in name of contact person;
S133, it currently traverses the grade of space the latter character if it is not, obtaining and is saved into contact information;
S134, if so, obtain the grade of last space the latter character in name of contact person, and be saved into contact person In information.
Further, step S24 includes:
S241, by the latter space for having inquired last character or inquired last space the latter space setting
For designated spaces;
S242, the grade for obtaining initial character after the designated spaces;
S243, S22 circulation progress is returned to, until matching associated person is found, preservation search result.
Further, step S1 further include:
S14, contact person ID to be traversed is saved in contact information.
Further, step S22 further include: judge contact person ID to be traversed and active user input inquiry ID whether It is identical, if so, tag query success.
Specifically, contact person ID to be checked is ASC code.
The beneficial effects of the present invention are: by obtaining contact person space information, continuously input nonspace character in user and When can not correctly find contact person, according to the last character that user inputs, the head in the subsequent space of Auto-matching last character Character is looked into come the initial character for carrying out matched and searched or Auto-matching has been inquired behind the subsequent space in last space to carry out matching It looks for, realizes and quickly navigate to the contact person to be searched, improve search efficiency, reduce operating procedure to improve using safe Property.
Detailed description of the invention
Fig. 1 is the flow diagram of step S1 in the present invention:
Fig. 2 is the flow diagram of step S2 in the present invention.
Specific embodiment
Specifically illustrate embodiments of the present invention with reference to the accompanying drawing, attached drawing is only for reference and illustrates use, does not constitute pair The limitation of the invention patent protection scope.
Embodiment 1:
The phone directory multiword symbol searching method of the present embodiment is different from existing phone directory initial querying method, the present invention Method is when handling the symbol inquiry of phone directory multiword, it is assumed that it is continuously to input that condition users, which input character, occurs space in name When, if user needs to navigate to designated contact, it can be handled by two ways and occur space feelings in name to be checked Condition:
1. user needs to input corresponding space, identical with character in bluetooth telephone sheet, then success is searched;
2. when user inputs nonspace character and correctly can not find contact person, according to the last word of user's input Symbol, the initial character in the subsequent space of Auto-matching last character have inquired last sky to carry out matched and searched or Auto-matching Initial character behind the subsequent space of lattice carries out matched and searched.
It needs to obtain in advance each in bluetooth telephone sheet before realizing inquiry phone directory based on above-mentioned logical thinking Be the information of people: including where space number, each space in name of contact person position and each contact person ID to be traversed;? When it is implemented, using the ASC code with polling character as the ID to be traversed of each contact person, to facilitate traversal contact person.
ID is position of the contact person in the original sequence of phone directory, and the connection in phone directory can be found by ID correspondence People;A character, such as L are inputted, the contact person of all L beginnings can be searched at this time, is actually exactly to generate to search inside program Suo Liebiao, if choosing one of contact person, at this time can according to the ID of contact person in practical phone directory in find matching People dials.
As shown in Figure 1, 2, the present invention provides a kind of contact person's searching method, comprising:
S1, name of contact person acquisition of information and preservation step:
S10, judge whether to obtain name of contact person information for the first time, if it is not, step S12 or S13 are carried out, if so, being walked Rapid S11;
S11, it obtains the space information in name of contact person and is saved into contact information, the name of contact person In space information include space number and each space in name position;
In step s 11, after obtaining the space information in the name of contact person, further includes:
S111, to judge whether there is multiple spaces adjacent;
S112, if so, obtain adjacent space number, multiple adjacent spaces are denoted as a space, update current contacts Space information in name is simultaneously saved in contact information;
S113, if it is not, by the space information preservation in name of contact person into contact information;
S12, when the space number i in name of contact person is zero, the grade for obtaining current traversal character is simultaneously saved into In contact information;Specifically: number of characters n has been searched in acquisition, obtains n+1 character grade;The step is cyclic process, until obtaining Until taking all traversal character grades;
S13, when number i in space is greater than zero in name of contact person, obtain and each traversed the grade of initial character behind space simultaneously It is saved into contact information;
Step S13 includes:
S131, number of characters has been traversed after obtaining input space;
S132, judgement have traversed whether space number m is equal to number i in space in name of contact person;
S133, it traverses the grade of space the latter character if it is not, obtaining current m-th and is saved into contact information In;
S134, if so, obtain the grade of last i-th of the space the latter character in space in name of contact person, and protected It is stored in contact information;
S14, contact person ID to be traversed is saved in contact information;
S2, matching associated person step is searched:
S21, the grade for obtaining current queries character;
S22, matching associated person is searched;The step further include: judge that contact person ID to be traversed is looked into what active user inputted Whether identical ID is ask, if so, tag query success;
S23, if it exists matching associated person save search result;
S24, if it does not exist matching associated person obtain the grade of initial character after having inquired a space of last character or obtain The grade of initial character behind a space after having inquired last space is taken, return step S22 circulation carries out, until final operation step Rapid S23.
Step S24 includes:
S241, it by the latter space for having inquired last character or has inquired last space the latter space and is set as specified Space;Character space number, which has been searched, including acquisition adds 1;
S242, the grade for obtaining initial character after the designated spaces;
S243, S22 circulation progress is returned to, until matching associated person is found, preservation search result.
In the present embodiment, after getting lookup character grade, ratings match can be carried out to phone directory and searches satisfaction Conditioned connection people.In search procedure the process of normal character input and merely enter bluetooth initial character query logic be it is the same, It is exactly to be matched by ID, whether matching associated person ID is identical as the inquiry ID of active user's input, is if the same labeled as one Secondary successful query.
It should be noted that occurring the judgement and processing of space situation in name, and when user inputs lookup, Current continuation character can not be searched correctly, and how subsequent this is searched for:
Space situation is inputted for user, has and counts m individually to show this search how many of input inquiry Space, after user inputs character does not find character, program can skip the continuation character currently inquired, and search m+1 Character grade behind space, and currently inquired space count can add 1;
After each search inquiry, the contact person space information of preservation can not have to update, but contact person ID need and Shi Gengxin can show that user has currently inquired how many a continuation characters by the way that individually counting is arranged, if space count value Variation, then continuous-query character count needs to count again, can guarantee correctly to update contact person ID in this way.
The present embodiment is illustrated contact person's searching method by following examples:
Such as: the name of contact person to be searched for are as follows: Lee Kenvin Sa
L is inputted first, can first be listed the L contact person started, then inputs e first and second characters will be distinguished Contact person for L and e lists, if being e without second character, after searching beginning as first space behind L and L Character is the contact person of e, such as Lou eric;
K is inputted again, if the contact person for not having Lek to start in contact person, that will be searched first behind Le beginning and e It is the contact person of K, such as Lee Kenvin Sa behind a space, and so on;
With the searching method of the present embodiment, for name of contact person Lee Kenvin Sa, inputting LeKeS can be found Name of contact person;But if input LeKnS be to look for less than the name of contact person, this requires character or continuous Match or for first character behind space.
Above disclosed is only presently preferred embodiments of the present invention, cannot limit rights protection model of the invention with this It encloses, therefore according to equivalent variations made by scope of the present invention patent, is still within the scope of the present invention.

Claims (7)

1. a kind of contact person's searching method characterized by comprising
S1, name of contact person acquisition of information and preservation step:
S11, it obtains the space information in name of contact person and is saved into contact information, in the name of contact person Space information includes the position of space number and each space in name;
S12, when the space number in name of contact person is zero, the grade for obtaining current traversal character is simultaneously saved into contact person In information;
S13, when the space number in name of contact person is greater than zero, obtain each traversed behind space the grade of initial character and by its It is saved in contact information;
S2, matching associated person step is searched:
S21, the grade for obtaining current queries character;
S22, matching associated person is searched;
S23, if it exists matching associated person save search result;
S24, if it does not exist matching associated person obtain the grade of initial character after having inquired a space of last character or obtain The grade of initial character behind a space after inquiring last space, return step S22 circulation carries out, until final operating procedure S23。
2. contact person's searching method according to claim 1, it is characterised in that:
In step s 11, after obtaining the space information in the name of contact person, further includes:
S111, to judge whether there is multiple spaces adjacent;
S112, if so, obtain adjacent space number, multiple adjacent spaces are denoted as a space, update current contacts name In space information, by the space information preservation in updated name of contact person into contact information;
S113, if it is not, by the space information preservation in name of contact person into contact information.
3. contact person's searching method according to claim 1, it is characterised in that:
Step S13 includes:
S131, number of characters has been searched after obtaining input space;
S132, judgement have traversed the space number whether space number is equal in name of contact person;
S133, it currently traverses the grade of space the latter character if it is not, obtaining and is saved into contact information;
S134, if so, obtain the grade of last space the latter character in name of contact person, and be saved into contact information In.
4. contact person's searching method according to claim 1, it is characterised in that:
Step S24 includes:
S241, it by the latter space for having inquired last character or has inquired last space the latter space and is set as specified sky Lattice;
S242, the grade for obtaining initial character after the designated spaces;
S243, S22 circulation progress is returned to, until matching associated person is found, preservation search result.
5. contact person's searching method according to claim 1, it is characterised in that:
Step S1 further include:
S14, contact person ID to be traversed is saved in contact information.
6. contact person's searching method according to claim 5, it is characterised in that:
Step S22 further include: whether the inquiry ID for judging that contact person ID to be checked and active user input is identical, if so, mark Remember successful inquiring.
7. contact person's searching method according to claim 5 or 6, it is characterised in that:
The contact person ID to be traversed is ASC code.
CN201611186474.5A 2016-12-21 2016-12-21 A kind of contact person's searching method Active CN106713587B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201611186474.5A CN106713587B (en) 2016-12-21 2016-12-21 A kind of contact person's searching method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201611186474.5A CN106713587B (en) 2016-12-21 2016-12-21 A kind of contact person's searching method

Publications (2)

Publication Number Publication Date
CN106713587A CN106713587A (en) 2017-05-24
CN106713587B true CN106713587B (en) 2019-06-14

Family

ID=58938149

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201611186474.5A Active CN106713587B (en) 2016-12-21 2016-12-21 A kind of contact person's searching method

Country Status (1)

Country Link
CN (1) CN106713587B (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815125A (en) * 2010-03-16 2010-08-25 东莞宇龙通信科技有限公司 Method, device and mobile terminal for searching contact person
EP2523123A1 (en) * 2011-05-11 2012-11-14 Mitel Networks Corporation Contact list search method for mobile phone
CN103870501A (en) * 2012-12-14 2014-06-18 联想(北京)有限公司 Automatic matching method and device

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9167073B2 (en) * 1999-08-12 2015-10-20 Hewlett-Packard Development Company, L.P. Method and apparatus for accessing a contacts database and telephone services
US20080242343A1 (en) * 2007-03-26 2008-10-02 Helio, Llc Modeless electronic systems, methods, and devices

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101815125A (en) * 2010-03-16 2010-08-25 东莞宇龙通信科技有限公司 Method, device and mobile terminal for searching contact person
EP2523123A1 (en) * 2011-05-11 2012-11-14 Mitel Networks Corporation Contact list search method for mobile phone
CN103870501A (en) * 2012-12-14 2014-06-18 联想(北京)有限公司 Automatic matching method and device

Also Published As

Publication number Publication date
CN106713587A (en) 2017-05-24

Similar Documents

Publication Publication Date Title
CN104111935B (en) Server and microblog pushing method and system
US9411492B1 (en) Adding information to a contact record
CN105917327A (en) System and method for inputting text into electronic devices
KR102073928B1 (en) Manual retrieval service providing server and method using chatbot
CN103984764B (en) Perceive the personalized method for secret protection of query semantics based on road network
CN104462542B (en) The sorting technique and system of application software icon based on Android
CN101000608A (en) Key word dynamic matching generating based on search engine technology
CN105404625A (en) Application program searching method and system
US20100030761A1 (en) Method of retrieving and refining information based on tri-gram
CN101986672B (en) Message processing method and device
CN103744857A (en) Method for searching instant messaging chatting records for keywords
US20130262434A1 (en) Querying spatial events in a vehicle network, and optimized querier
CN102821182B (en) Automatic phone directory contact matching method for handheld device
CN108038165A (en) A kind of information search method, searcher, terminal device and server apparatus
CN105302827B (en) A kind of searching method and equipment of event
CN106713587B (en) A kind of contact person's searching method
CN103076894A (en) Method and equipment for building input entries for object identity information according to object identity information
CN105808688A (en) Complementation retrieval method and device based on artificial intelligence
CN103500222A (en) Method and device for searching for chat object through communication software
US9026547B2 (en) Fault-tolerant search
CN109948070B (en) Method for analyzing and determining positions of home and company, storage medium and terminal
CN110737677B (en) Data searching system and method
CN101119339A (en) Method and device for establishing multi-user discuss group in instant communication system
CN104602206A (en) Spam message identification method and system
CN102999275B (en) Obtain method and the device of word conversion result

Legal Events

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