Summary of the invention
For this reason, the object of the present invention is to provide the method for fast finding same file content in a kind of mobile phone, under a plurality of catalogues of present mobile phone or same catalogue, the same file content need to be by manually distinguishing one by one to solve, and backup and arrangement be the problem of trouble very.
The objective of the invention is to be achieved through the following technical solutions.
A kind of method of fast finding same file content in mobile phone comprises step:
A, obtain the summary info of All Files in mobile phone;
B, summary info is carried out analyzing and processing, obtain the All Files of identical or similar summary info;
C, above-mentioned file content is analyzed comparison, judge whether its content is identical.
Preferably, comprise before steps A:
Summary info according to content of text correspondence establishment and text content Corresponding matching.
Preferably, according to message digest algorithm, content of text is carried out analytical calculation, obtain the informative abstract with this document content Corresponding matching, and correspondence is carried out record.
Preferably, according to the cyclic redundancy check (CRC) algorithm, content of text is carried out analytical calculation, obtain the informative abstract with this document content Corresponding matching, and correspondence is carried out record.
Preferably, step B specifically comprises:
Summary info to all texts in mobile phone carries out analyzing and processing, obtains the All Files of identical or similar summary info, and corresponding to its classification, forms a file path set.
Preferably, step C specifically comprises:
To being under the identical file set of paths, and the same or similar file content of summary info analyzes comparison, and determines that according to analyzing judged result file content is identical.
The present invention compared with prior art, beneficial effect is: the method for fast finding same file content in mobile phone provided by the invention, by extracting the summary info of mobile phone All Files, the file of identical or similar summary info is sorted out, form the file path set, and in this document set of paths, file content is analyzed comparison, reach and determine the identical purpose of file content.The present invention efficiently solves under a plurality of catalogues of present mobile phone or same catalogue the same file content need to be by manually distinguishing one by one, and backup and arrange the very problem of trouble has improved the search efficiency of identical content file in the mobile phone greatly.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer, below in conjunction with drawings and Examples, the present invention is further elaborated.Should be appreciated that specific embodiment described herein only in order to explain the present invention, is not intended to limit the present invention.
Shown in Figure 1, Fig. 1 is operation principle flow chart of the present invention.The invention provides the method for fast finding same file content in a kind of mobile phone, it is mainly used in solving, and under a plurality of catalogues of present mobile phone or same catalogue, the same file content need to be by manually distinguishing one by one, and existing backup and arrangement be the problem of trouble very.
The method of fast finding same file content in this mobile phone wherein comprises that specifically step is as follows:
At first will be according to the summary info of content of text correspondence establishment and text content Corresponding matching, the mode of specifically setting up summary info here has following two kinds;
One, according to message digest algorithm, content of text is carried out analytical calculation, obtain the informative abstract with this document content Corresponding matching, and correspondence is carried out record.
Message digest algorithm (MD5, Message-digest Algorithm 5) develops through MD2, MD3 and MD4.Its effect is to allow large capacity information be ' compressed ' into a kind of secret form before with digital signature software signature private key, exactly the byte serial of a random length is transformed into the large integer of a fixed length.No matter be MD2, MD4 or MD5, they all need the informative abstract that obtains the information of a random-length and produce one 128.
Increased " safety-belt " concept (safety-belts) due to MD5, although therefore MD5 is slower, safer a little than MD4 on the basis of MD4.In the MD5 algorithm, the size of information-summary and the necessary condition of filling and MD5 are identical.
Two, according to the cyclic redundancy check (CRC) algorithm, content of text is carried out analytical calculation, obtain the informative abstract with this document content Corresponding matching, and correspondence is carried out record.
Cyclic redundancy check (CRC) algorithm (CRC, Cyclic Redundancy Check/Code) is that a transmission block is carried out verification, is a kind of efficient error control method.
CRC check adopts the multinomial coding method, and multinomial multiplication and division calculating process is identical with the polynomial multiplication and division of common algebra, and polynomial signed magnitude arithmetic(al) is not advanced during plus-minus take 2 as mould, and dislocation is as the logic XOR.
A, obtain the summary info of All Files in mobile phone;
Obtain the summary info of All Files in mobile phone according to above-mentioned algorithm correspondence, and correspondence carries out record, in order to follow-up searching.
B, summary info is carried out analyzing and processing, obtain the All Files of identical or similar summary info;
Summary info to all texts in mobile phone carries out analyzing and processing, obtains the All Files of identical or similar summary info, and corresponding to its classification, forms a file path set.
C, above-mentioned file content is analyzed comparison, judge whether its content is identical.
To being under the identical file set of paths, and the same or similar file content of summary info analyzes comparison, and determines that according to analyzing judged result file content is identical.
The present invention is by extracting the summary info of mobile phone All Files, the file of identical or similar summary info is sorted out, form the file path set, and in this document set of paths, file content is analyzed comparison, reach and determine the identical purpose of file content.The present invention efficiently solves under a plurality of catalogues of present mobile phone or same catalogue the same file content need to be by manually distinguishing one by one, and backup and arrange the very problem of trouble has improved the search efficiency of identical content file in the mobile phone greatly.
The method of same file content under a plurality of catalogues of fast detecting of the present invention or catalogue: at first according to " summary info ", file is sorted out, the file in each class compares in twos so again, determines whether identical.
The above is only preferred embodiment of the present invention, not in order to limiting the present invention, all any modifications of doing within the spirit and principles in the present invention, is equal to and replaces and improvement etc., within all should being included in protection scope of the present invention.