CN106569986A - Character string replacement method and device - Google Patents
Character string replacement method and device Download PDFInfo
- Publication number
- CN106569986A CN106569986A CN201510661371.9A CN201510661371A CN106569986A CN 106569986 A CN106569986 A CN 106569986A CN 201510661371 A CN201510661371 A CN 201510661371A CN 106569986 A CN106569986 A CN 106569986A
- Authority
- CN
- China
- Prior art keywords
- character
- target
- string
- character string
- reading
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F40/00—Handling natural language data
- G06F40/10—Text processing
- G06F40/12—Use of codes for handling textual entities
- G06F40/151—Transformation
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
- G06F16/90—Details of database functions independent of the retrieved data types
- G06F16/903—Querying
- G06F16/90335—Query processing
- G06F16/90344—Query processing by using string matching techniques
Abstract
The application discloses a character string replacement method and device. The method comprises the following steps: sequentially reading first target characters to be replaced in a first character string, and ensuring that the number of the first target characters is multiple; sequentially reading second target characters in a second character string, wherein the second target characters are used for replacing the first target characters, the number of the second target characters is multiple, and the second character string is formed by the second target characters; and replacing the first target characters by sequentially using the second target characters according to the sequences of reading the first target characters and the second target characters. According to the character string replacement method and device disclosed by the invention, the technical problem that targeted replacement of the character strings cannot be achieved in the prior art can be solved.
Description
Technical field
The application is related to data processing field, in particular to a kind of character string replacement method and device.
Background technology
In terms of string processing, if involving the replacement of character string, typically can be by way of searching and replacing
Carry out, the former character for needing to be replaced is replaced using new target character.But this kind of mode can only be by former character
Replace unification and replace with identical target character, such as, "@" character in character string " a@b@c@d@" is replaced with
" e " character, the character string " aebecede " after being replaced.
And in practical application, there is a kind of process demand of character string, need certain the character difference in original character string
Replace with different target characters.At present, for the situation that character string quantity is few, still by artificial manual change
To realize, but in character string actual process, targeted character string quantity is very huge, artificial handss
Work changing mode is clearly unpractical.
For above-mentioned problem, effective solution is not yet proposed at present.
The content of the invention
The embodiment of the present application provides a kind of character string replacement method and device, so that at least solve cannot pin in prior art
The technical problem of character string replacement is carried out to property.
According to the one side of the embodiment of the present application, there is provided a kind of character string replacement method, including:It is successively read out
First object character to be replaced in first character string, wherein, the quantity of the first object character is multiple;Successively
The second target character in the second character string is read out, wherein, second target character is for replacing described first
The character of target character, and the quantity of the second target character is multiple, and second character string is second target
The character string of character composition;And according to the order for reading the first object character with read second target character,
Replace the first object character using second target character successively.
Further, first object character to be replaced in the first character string is successively read out, the second word is successively read out
The second target character in symbol string, according to the order for reading the first object character and reading second target character,
Replacing the first object character using second target character successively includes:Travel through first character string;Per time
Go through to a first object character, second target character is read from second character string, wherein,
Position of second target character for currently reading in second character string and described for currently having traversed
The first quantity correspondence of one target character;And replace current traversal using second target character for currently reading
The first object character for arriving.
Further, in first mesh currently traversed using second target character replacement for currently reading
After marking-up symbol, methods described also includes:Determine that target string is first character string being traversed next time,
Wherein, the first object character currently traversed in first character string of current traversal is replaced with into current reading
After second target character got, the target string is obtained.
Further, a first object character is often being traversed, an institute is being read from second character string
Before stating the second target character, methods described also includes:Comparison first quantity with described in second character string
The size of the second quantity of the second target character, wherein, second quantity is second described in second character string
The total quantity of target character, wherein, in the case where first quantity is compared less than or equal to second quantity,
A first object character is often traversed, second target character is read from second character string,
Or in the case where first quantity is compared more than second quantity, stop traversal first character string, and
Determine that the target string is final first character string.
Further, after the second target character being successively read out in the second character string, methods described also includes:
Compare the size of the second quantity and the 3rd quantity, wherein, second quantity is second described in second character string
The total quantity of target character, the 3rd quantity is the total quantity of first object character described in first character string,
According to reading the first object character and reading the order of second target character, successively using second target
Character replaces the first object character to be included:Second quantity is being compared more than or equal to the 3rd quantity
In the case of, according to reading the first object character and reading the order of second target character, successively using described
Second target character replaces the first object character, until the first object character is replaced by second mesh
Marking-up is accorded with;Or in the case where second quantity is compared less than or equal to the 3rd quantity, it is described according to reading
The order of first object character and reading second target character, replaces described using second target character successively
First object character, until the front second quantity first object character is replaced in first character string
For second target character.
According to the another aspect of the embodiment of the present application, there is provided a kind of character string alternative, including:First reads list
Unit, for being successively read out the first character string in first object character to be replaced, wherein, the first object character
Quantity for multiple;Second reading unit, for being successively read out the second character string in the second target character, wherein,
Second target character is the character for replacing the first object character, and the quantity of the second target character is
Multiple, second character string is the character string of the second target character composition;And replacement unit, for according to
Read the first object character and read the order of second target character, successively using second target character
Replace the first object character.
Further, first reading unit includes:Traversal subelement, for traveling through first character string, institute
Stating the second reading unit includes:Subelement is read, for often traversing first mesh in the traversal subelement
In the case that marking-up is accorded with, second target character is read from second character string, wherein, it is current to read
To position and the first object word that currently traversed of second target character in second character string
The first quantity correspondence of symbol, the replacement unit includes:First replaces subelement, for being read using current time
Second target character replace the first object character that currently traverses.
Further, the replacement unit also includes:Determination subelement, for using the institute for currently reading
State the second target character to replace after the first object character for currently traversing, determine target string for next time
First character string being traversed, wherein, described in currently traversing in first character string of current traversal
First object character is replaced with after second target character for currently reading, and obtains the target string.
Further, second reading unit also includes:Comparing subunit, for often traversing one described
One target character, reads before second target character from second character string, comparison first number
The size with the second quantity of the second target character described in second character string is measured, wherein, second quantity is
The total quantity of the second target character described in second character string, wherein, compare first quantity be less than or
In the case of equal to second quantity, a first object character is often traversed, from second character string
Second target character is read, or in the case where first quantity is compared more than second quantity,
Stop traversal first character string, and determine that the target string is final first character string.
Further, described device also includes:Comparing unit, for second in the second character string is successively read out
After target character, compare the size of the second quantity and the 3rd quantity, wherein, second quantity is second word
The total quantity of the second target character described in symbol string, the 3rd quantity is first object described in first character string
The total quantity of character, the replacement unit includes:Second replaces subelement, for compare second quantity big
In or equal to the 3rd quantity in the case of, according to reading the first object character and read second target word
The order of symbol, replaces the first object character, until the first object word using second target character successively
Fu Jun is replaced by second target character;Or the 3rd replace subelement, for compare second quantity little
In or equal to the 3rd quantity in the case of, according to reading the first object character and read second target word
The order of symbol, replaces the first object character, until first character string using second target character successively
In the front second quantity first object character be replaced by second target character.
In the embodiment of the present application, adopt and be successively read out first object character to be replaced in the first character string, wherein,
The quantity of first object character is multiple, the second target character being successively read out in the second character string, wherein, second
Target character is the character for replacing first object character, and the quantity of the second target character is multiple, the second word
The character string that symbol string is constituted for the second target character, and according to reading first object character and read the second target character
Sequentially, successively using the second target character replacement first object character.By successively needing in character string to be replaced
The character of replacement reads out, and the character in the character string for being used for replacing is read out according to sequencing, according to suitable
Sequence replaces character to be replaced in character string to be replaced using the character in the character string for being used for replacing, and realizes to word
The technique effect that symbol string automatic sequence is replaced, so solve in prior art cannot specific aim carry out character string replacement
Technical problem.
Description of the drawings
Accompanying drawing described herein is used for providing further understanding of the present application, constitutes the part of the application, this Shen
Schematic description and description please does not constitute the improper restriction to the application for explaining the application.In accompanying drawing
In:
Fig. 1 is the flow chart of the character string replacement method according to the embodiment of the present application;
Fig. 2 is the schematic diagram that character string replacement is carried out according to the character string replacement method of the embodiment of the present application;And
Fig. 3 is the schematic diagram of the character string alternative according to the embodiment of the present application.
Specific embodiment
In order that those skilled in the art more fully understand application scheme, below in conjunction with the embodiment of the present application
Accompanying drawing, is clearly and completely described to the technical scheme in the embodiment of the present application, it is clear that described embodiment
The only embodiment of the application part, rather than the embodiment of whole.Based on the embodiment in the application, ability
The every other embodiment that domain those of ordinary skill is obtained under the premise of creative work is not made, all should belong to
The scope of the application protection.
It should be noted that the description and claims of this application and the term " first " in above-mentioned accompanying drawing, "
Two " it is etc. the object for distinguishing similar, without for describing specific order or precedence.It should be appreciated that this
The data that sample is used can be exchanged in the appropriate case, so as to embodiments herein described herein can with except
Here the order beyond those for illustrating or describing is implemented.Additionally, term " comprising " and " having " and they
Any deformation, it is intended that covering is non-exclusive to be included, and for example, contains process, the side of series of steps or unit
Method, system, product or equipment are not necessarily limited to those steps clearly listed or unit, but may include unclear
List or other steps intrinsic for these processes, method, product or equipment or unit.
First description below is made to the technical term involved by the embodiment of the present application:
Character string:A string of characters that character string or string (String) are made up of numeral, letter, underscore, it is to compile
Journey language calls the turn the data type for representing text.
String processing:In daily development process, because many character strings are not to develop needs, institute in business
To need the character string required for these string processings into exploitation.It is overall as dealing with objects generally using what is gone here and there, often
The processing method seen is such as:Search in string certain substring, ask for a substring, string certain position on insert one
One substring of substring and deletion etc..
Traversal:Refer to along certain search pattern, successively each node in tree is done once and only done once accessing.
The operation that access node is done depends on specific application problem.
According to the embodiment of the present application, there is provided a kind of embodiment of character string replacement method, it should be noted that attached
The step of flow process of figure is illustrated can perform in the such as computer system of one group of computer executable instructions, also,
Although showing logical order in flow charts, in some cases, can be with different from order execution herein
Shown or described step.
Fig. 1 is a kind of character string replacement method according to the embodiment of the present application, as shown in figure 1, the method is including as follows
Step:
Step S102, is successively read out first object character to be replaced in the first character string, wherein, first object word
The quantity of symbol is multiple.That is, there are several to need the character replaced in character string to be replaced, these are needed to replace
Sequencing of the character according to them in character string read out.
Multiple first object characters in first character string can also may be used each other with identical (can think same character)
With different.
Step S104, the second target character being successively read out in the second character string, wherein, the second target character is use
In the character for replacing first object character, and the quantity of the second target character is multiple, and the second character string is the second mesh
The character string of marking-up symbol composition.That is, the character in the character string for being used for replacing is read out according to sequencing.
Step S106, according to reading first object character and reading the order of the second target character, successively using the second mesh
Marking-up symbol replaces first object character.I.e., in order, replaced using the character in the character string for being used for replacing and wait to replace
Character in the character string changed.
For example, there are two string character strings, be respectively character string " A@B_C&D# " and character string " abcd ", word to be replaced
Symbol is character "@", character " _ ", character " & ", character " # ", wants, with character " a " substitute character "@", to use word
Symbol " b " substitute character " _ ", with character " c " substitute character " & ", with character " d " substitute character " # ".So,
Character string " A@B_C&D# " is the first character string, and character "@", character " _ ", character " & ", character " # " are
For first object character, the quantity of first object character is 4.Character string " abcd " be the second character string, character
" a ", character " b ", character " c ", character " d " are the second target character, and the quantity of the second target character is 4
It is individual.The order for reading first object character is followed successively by character "@", character " _ ", character " & ", character " # ", reads
The order for taking the second target character is followed successively by character " a ", character " b ", character " c ", character " d ".According to reading
The order of the second target character of first object character and reading, replaces first object character using the second target character successively,
Obtain new character string " AaBbCcDd ".
Again for example, a kind of sentence is similar to when sql parsings are done:Insert into
table_name(col1,col1,col2,col3)values(,,).This be one insertion sentence, "" representing will
The value of insertion, this question mark represents and carry out here erect-position operation, such as really want simply " a ", " b " that insert and
" c ", then be exactly with " abc " replace above "", so final sentence is just changed into:
table_name(col1,col1,col2,col3)values(a,b,c).Such sentence can be carried out data base's
Operation.By above-described embodiment, the character for needing to replace in character string to be replaced is read out successively, being used for
Character in the character string of replacement reads out according to sequencing, in order using in the character string for being used for replacing
Character replaces character to be replaced in character string to be replaced, solve in prior art cannot specific aim carry out character string
The technical problem of replacement, having reached specific aim carries out the technique effect of character string replacement.
Alternatively, in the embodiment of the present application, can be according to a first object character be read out, using one second
The mode that target character is replaced carries out character string replacement, i.e. be successively read out to be replaced in the first character string
One target character, the second target character being successively read out in the second character string, according to reading first object character and reading
The order of the second target character is taken, replacing first object character using the second target character successively includes:Travel through the first word
Symbol string;A first object character is often traversed, second target character is read from the second character string, wherein,
Position of the second target character for currently reading in the second character string and the first object character for currently having traversed
First quantity correspondence, in the embodiment of the present application, the first quantity of the first object character for currently having traversed be it is several,
The second read target character of correspondence is located on which position of the second character string;And using for currently reading
Two target characters replace the first object character for currently traversing.That is, read in order in character string to be replaced
Character to be replaced, for each character to be replaced, reads a character from the character string for being used for replacing, and uses
This character goes to replace the character to be replaced in character string to be replaced, wherein, for the character replaced for replacing
Position in the character string changed should be corresponding with the quantity of the character to be replaced for traversing.Wherein, character is in word
Position in symbol string is referred to according to order from front to back, and the character is which word of the character string that the character is located
Symbol.
For example, the first character string is character string " A@B_C&D# ", and the second character string is character string " abcd ".Traversal the
One character string " A@B_C&D# ", reads character " A ", and character " A " is not first object character, continues to travel through, and reads
Character "@" is taken, character "@" is first object character, second target is read from the second character string " abcd "
Character, because the quantity for ending the first object character traversed to current time is 1, therefore the second target for reading
Position of the character in the second character string is the 1st, due to position of the character " a " in the second character string " abcd "
For the 1st, therefore the second target character for reading is " a ".Current time traversal is replaced using the second target character " a "
The first object character "@" for arriving, obtains character string " AaB_C&D# ".
Alternatively, after the first object character for currently traversing is replaced using the second target character for currently reading,
The character string replacement method that the embodiment of the present application is provided also includes:Determine that target string is for being traversed next time
One character string, wherein, the first object character currently traversed in the first character string of current traversal is replaced with currently
After the second target character for reading, target string is obtained.That is, when certain character of character string to be replaced is replaced
Afterwards, a new character string is obtained.When continuing to travel through character string to be replaced, it will travel through this new character string.
For example, the first character string is character string " A@B_C&D# ", and the second character string is character string " abcd ".Using
Two target characters " a " replace the first object character "@" for traversing at current time, obtain character string " AaB_C&D# ".
Character string " AaB_C&D# " is target string.That is, character string " AaB_C&D# " is traversed for subsequent time
First character string.
Alternatively, a first object character is often being traversed, second target character is being read from the second character string
Before, method also includes:The size of the second quantity of the second target character in relatively the first quantity and the second character string,
Wherein, the second quantity is the total quantity of the second target character in the second character string, wherein, comparing, the first quantity is little
In or equal to the second quantity in the case of, often traverse a first object character, from the second character string read one
Second target character, or in the case where the first quantity is compared more than the second quantity, stop the first character string of traversal,
And determine that target string is the first final character string.That is, the word in a character string to be replaced is traversed every time
Fu Shi, will compare the quantity of traversed character to be replaced with the quantity of character in the character string for being used for replacing
Compared with, if the quantity of traversed character to be replaced is less than or equal to the quantity of character in the character string for being used for replacing,
Then current character is read from the character string for being used for replacing, gone to replace working as in character string to be replaced with the character for reading
Front character to be replaced, if the quantity of traversed character to be replaced is more than the number of character in the character string for being used for replacing
Amount, then stop the character string that traversal is used for replacing, and current character string to be replaced is the character string for finally giving.
For example, the first character string is character string " A@B_C& ", and the second character string is character string " abc ".To the first character
String is traveled through, and when character "@" is traversed, the first quantity is the quantity of traversed first object character, is 1.
Second quantity be the second character string " abc " in the second target character quantity, due to the second target character be character " a ",
Character " b ", character " c ", therefore the second quantity is 3.Because the first quantity 1 is less than the second quantity 3, therefore in the second word
Symbol string reads second target character, that is, read character " a ".Using character " a " substitute character "@", obtain
Character string " AaB_C& ".Character string " AaB_C& " is traveled through, character " _ " is read, now, the first quantity
For 2, the second quantity is 3, and the first quantity is less than the second quantity, therefore reads second target character in the second character string,
Read character " b ".Using character " b " substitute character " _ ", character string " AaBbC& " is obtained.To character string
" AaBbC& " is traveled through, and reads character " & ", and now, the first quantity is 3, and the second quantity is 3, the first number
Amount is equal to the second quantity, therefore reads second target character in the second character string, that is, read character " c ".Use
Character " c " substitute character " & ", obtains character string " AaBbCc ".
Again for example, the first character string is character string " A@B_C&D#E% ", and the second character string is character string " abc ".To
One character string is traveled through, and when character "@" is traversed, the first quantity is the quantity of traversed first object character,
For 1.Second quantity is the quantity of the second target character in the second character string " abc ", because the second target character is word
Symbol " a ", character " b ", character " c ", therefore the second quantity is 3.Because the first quantity 1 is less than the second quantity 3, therefore
Second target character is read in the second character string, that is, reads character " a ".Using character " a " substitute character "@",
Obtain character string " AaB_C&D#E% ".Character string " AaB_C&D#E% " is traveled through, character " _ " is read,
Now, the first quantity is 2, and the first quantity 2 is less than the second quantity 3, therefore reads second target in the second character string
Character, that is, read character " b ".Using character " b " substitute character " _ ", character string " AaBbC&D#E% " is obtained.
Character string " AaBbC&D#E% " is traveled through, character " & " is read, now, the first quantity is 3, the first number
Amount is equal to the second quantity, therefore reads second target character in the second character string, that is, read character " c ".Use
Character " c " substitute character " & ", obtains character string " AaBbCcD#E% ".Character string is traveled through, word is read
Symbol " # ", now, the first quantity is 4, and the first quantity is more than the second quantity, stops the first character string of traversal, and really
It is the first final character string to determine character string " AaBbCcD#E% ", i.e. character string " AaBbCcD#E% " is all replacing
Character string after the completion of changing.
Alternatively, after the second target character being successively read out in the second character string, the embodiment of the present application is provided
Character string replacement method also include:Compare the size of the second quantity and the 3rd quantity, wherein, the second quantity is second
The total quantity of the second target character in character string, the 3rd quantity is the total quantity of first object character in the first character string.
In the embodiment of the present application, first the first object character in the first character string all can also be read out, then,
The mode being replaced successively using the second target character carries out character string replacement, i.e. according to reading first object character
With the order for reading the second target character, replacing first object character using the second target character successively includes:Comparing
Go out the second quantity more than or equal in the case of the 3rd quantity, according to the second target word of reading first object character and reading
The order of symbol, replaces first object character, until first object character is replaced by using the second target character successively
Second target character;Or comparing the second quantity less than or equal in the case of the 3rd quantity, according to reading the first mesh
Marking-up is accorded with and reads the order of the second target character, replaces first object character using the second target character successively, until
Front second quantity first object character is replaced by the second target character in first character string.That is, according to successively suitable
Sequence is successively read out after the character in the character string for replacing, the number of all characters in the character string for being used for replacing
Amount is compared with the quantity of character to be replaced in character string to be replaced.If for all characters in the character string replaced
Quantity more than character to be replaced in character string to be replaced quantity, then according to the order for reading, successively using for replacing
Character in the character string changed replaces character to be replaced in character string to be replaced, until to be replaced in character string to be replaced
Character be replaced by character in the character string for replacing.If for all characters in the character string replaced
Quantity, then according to the order for reading, uses use successively less than or equal to the quantity of character to be replaced in character string to be replaced
Character to be replaced in character string to be replaced is replaced come the character in the character string replaced, until in character string to be replaced
Front second quantity character to be replaced is replaced by the character in the character string for replacing.
For example, the first character string is character string " A@B_C& ", and the second character string is character string " abcde ".First character
In string, first object character is character "@", character " _ ", character " & ", and the quantity of first object character is 3,
Therefore the 3rd quantity is 3.In second character string, the second target character be character " a ", character " b ", character " c ",
Character " d ", character " e ", the quantity of the second target character is 5, therefore the second quantity is 5.Now, the second quantity is big
In the 3rd quantity, with character " a " replacement "@", character string " AaB_C& " is obtained after the completion of replacement, with character " b "
Substitute character " _ ", obtains character string " AaBbC& " after the completion of replacement, with character " c " substitute character " & ", replace
After the completion of obtain character string " AaBbCc ", now, first object character is replaced by the second target character, character string
" AaBbCc " is and performs the result finally given after all replacing it.
Again for example, the first character string is character string " A@B_C&D*E $ ", and the second character string is character string " abc ".First
In character string, first object character be character "@", character " _ ", character " & ", character " * ", character " $ ",
The quantity of first object character is 5, therefore the 3rd quantity is 5.In second character string, the second target character be character " a ",
Character " b ", character " c ", the quantity of the second target character is 3, therefore the second quantity is 3.Now, the second quantity is little
In the 3rd quantity, with character " a " replacement "@", character string " AaB_C&D*E $ " is obtained after the completion of replacement, use character
" b " substitute character " _ ", obtains character string " AaBbC&D*E $ " after the completion of replacement, with character " c " substitute character " & ",
Character string " AaBbCcD*E $ " is obtained after the completion of replacement, now, the second target character is used to replace first object character,
Character string " AaBbCcD*E $ " is and performs the result finally given after all replacing it.
Fig. 2 is the schematic diagram that character string replacement is carried out according to the character string replacement method of the embodiment of the present application, and the figure includes
Following steps:
Step S202, a character to be replaced being successively read in character string s1, that is, in being successively read out the first character string
First object character to be replaced is identical with above-mentioned steps S102.Wherein, character string s1 is altered for character to be replaced,
Namely the first character string, the character to be replaced in character string s1 is first object character.
Step S204, be successively read in character string s2 is successively read out the second character for the character replaced
The second target character in string is identical with above-mentioned steps S104.Wherein, character string s2 is the character string for replacing,
Namely the second character string, the character in character string s2 is the second target character.
Step S206, with the character current to be replaced in the current character substitute character string s1 in character string s2, that is, presses
According to reading first object character and reading the order of the second target character, the first mesh is replaced using the second target character successively
Marking-up is accorded with, identical with above-mentioned steps S106.
Step S208, the character string after replacement character string s1 is assigned to, will in first character string at current time when
The first object character that the front moment traverses is replaced with after the second target character for reading at current time, obtains target word
Symbol string, the first character string for determining target string and being traversed for subsequent time.
Step S210, judges whether character to be replaced or character string s2 in character string s1 have traveled through, if word
Character to be replaced in symbol string s1 has been traveled through or character string s2 has been traveled through, and replacement terminates, if character string s1
In character to be replaced do not traveled through and character string s2 has not also been traveled through, execution step S202.Compare second
The size of quantity and the 3rd quantity, in the case where the second quantity is compared more than or equal to the 3rd quantity, according to reading
The order of the second target character of first object character and reading, replaces first object character using the second target character successively,
Until first object character is replaced by the second target character;Or the second quantity is being compared less than or equal to the 3rd number
In the case of amount, according to reading first object character and reading the order of the second target character, successively using the second target
Character replaces first object character, until the second target character is used to replace with first object character.
By above-described embodiment, the character for needing to replace in character string to be replaced is read out successively, being used for replacing
Character in the character string changed reads out according to sequencing, in order using the word in the character string for being used for replacing
Symbol replaces character to be replaced in character string to be replaced, solve in prior art cannot specific aim carry out character string and replace
The technical problem changed, having reached specific aim carries out the technique effect of character string replacement.
According to embodiments of the present invention, a kind of character string alternative is additionally provided.The character string alternative can be performed
Above-mentioned character string replacement method, above-mentioned character string replacement method can also be implemented by the character string alternative.
Fig. 3 is the schematic diagram of the character string alternative according to the embodiment of the present application.As shown in figure 3, the character string is replaced
Changing device includes:First reading unit 30, the second reading unit 32, replacement unit 34.
First reading unit 30, for being successively read out the first character string in first object character to be replaced, wherein,
The quantity of first object character is multiple.That is, several need the character replaced in character string to be replaced, this
Sequencing of a little characters for needing to replace according to them in character string reads out.In the embodiment of the present application,
Multiple first object characters in one character string each other can be with identical (can think same character), it is also possible to mutually not
It is identical.
Second reading unit 32, for being successively read out the second character string in the second target character, wherein, the second mesh
Marking-up symbol is the character for replacing first object character, and the quantity of the second target character is multiple, the second character
Go here and there as the character string of the second target character composition.That is, the character in the character string for being used for replacing is read according to sequencing
Take out.
Replacement unit 34, for according to reading first object character and reading the order of the second target character, utilizing successively
Second target character replaces first object character.I.e., in order, replaced using the character in the character string for being used for replacing
The character changed in character string to be replaced.
For example, there are two string character strings, be respectively character string " A@B_C&D# " and character string " abcd ", word to be replaced
Symbol is character "@", character " _ ", character " & ", character " # ", wants, with character " a " substitute character "@", to use word
Symbol " b " substitute character " _ ", with character " c " substitute character " & ", with character " d " substitute character " # ".So,
Character string " A@B_C&D# " is the first character string, and character "@", character " _ ", character " & ", character " # " are
For first object character, the quantity of first object character is 4.Character string " abcd " be the second character string, character
" a ", character " b ", character " c ", character " d " are the second target character, and the quantity of the second target character is 4
It is individual.The order for reading first object character is followed successively by character "@", character " _ ", character " & ", character " # ", reads
The order for taking the second target character is followed successively by character " a ", character " b ", character " c ", character " d ".According to reading
The order of the second target character of first object character and reading, replaces first object character using the second target character successively,
Obtain new character string " AaBbCcDd ".
Again for example, a kind of sentence is similar to when sql parsings are done:Insert into
table_name(col1,col1,col2,col3)values(,,).This be one insertion sentence, "" representing will
The value of insertion, this question mark represents and carry out here erect-position operation, such as really want simply " a ", " b " that insert and
" c ", then be exactly with " abc " replace above "", so final sentence is just changed into:
table_name(col1,col1,col2,col3)values(a,b,c).Such sentence can be carried out data base's
Operation.
By above-described embodiment, the first reading unit successively reads out the character for needing to replace in character string to be replaced
Come, the second reading unit reads out the character in the character string for being used for replacing according to sequencing, and replacement unit is pressed
Character to be replaced in character string to be replaced is replaced using the character in the character string for being used for replacing according to order, is solved
In prior art cannot specific aim carry out the technical problem of character string replacement, having reached specific aim carries out character string replacement
Technique effect.
Alternatively, the first reading unit includes:Traversal subelement, for traveling through the first character string, the second reading unit
Including:Subelement is read, in the case of often traversing a first object character in traversal subelement, from second
Second target character is read in character string, wherein, the second target character for currently reading is in the second character string
Position it is corresponding with the first quantity of the first object character for currently having traversed, in the embodiment of the present application, currently
First quantity of the first object character for traversing is several, and the second read target character of correspondence is located in the second character
On which position of string, replacement unit includes:First replaces subelement, for using the second target word for currently reading
Symbol replaces the first object character for currently traversing.That is, read in order to be replaced in character string to be replaced
Character, for each character to be replaced, reads a character from the character string for being used for replacing, and uses this character
Go to replace the character to be replaced in character string to be replaced, wherein, for the character replaced in the character for replacing
Position in string should be corresponding with the quantity of the character to be replaced for traversing.Wherein, character is in character string
Position is referred to according to order from front to back, and the character is which character of the character string that the character is located.
For example, the first character string is character string " A@B_C&D# ", and the second character string is character string " abcd ".Traversal the
One character string " A@B_C&D# ", reads character " A ", and character " A " is not first object character, continues to travel through, and reads
Character "@" is taken, character "@" is first object character, second target is read from the second character string " abcd "
Character, because the quantity for ending the first object character traversed to current time is 1, therefore the second target for reading
Position of the character in the second character string is the 1st, due to position of the character " a " in the second character string " abcd "
For the 1st, therefore the second target character for reading is " a ".Current time traversal is replaced using the second target character " a "
The first object character "@" for arriving, obtains character string " AaB_C&D# ".
Alternatively, replacement unit also includes:Determination subelement, for using the second target character for currently reading
After the first object character that replacement is currently traversed, determine that target string is the first character string being traversed next time,
Wherein, the first object character that will currently traverse in the first character string of current traversal replaces with for currently reading
After two target characters, target string is obtained.That is, after certain character of character string to be replaced is replaced, obtain
One new character string.When continuing to travel through character string to be replaced, it will travel through this new character string.
For example, the first character string is character string " A@B_C&D# ", and the second character string is character string " abcd ".Using
Two target characters " a " replace the first object character "@" for traversing at current time, obtain character string " AaB_C&D# ".
Character string " AaB_C&D# " is target string.That is, character string " AaB_C&D# " is traversed for subsequent time
First character string.
Alternatively, the second reading unit also includes:Comparing subunit, for often traversing a first object character,
Read before second target character from the second character string, compare the first quantity with the second target in the second character string
The size of the second quantity of character, wherein, the second quantity is the total quantity of the second target character in the second character string, its
In, in the case where the first quantity is compared less than or equal to the second quantity, a first object character is often traversed,
Second target character is read from the second character string, or in the case where the first quantity is compared more than the second quantity,
Stop the first character string of traversal, and determine that target string is the first final character string.That is, when traversing one every time
During character in individual character string to be replaced, will be the quantity of traversed character to be replaced and the character for being used for replacing
The quantity of character is compared in string, if the quantity of traversed character to be replaced is less than or equal to be used for replacing
Character string in character quantity, then from for reading current character in the character string replaced, gone with the character for reading
The character current to be replaced in character string to be replaced is replaced, if the quantity of traversed character to be replaced is more than be used for
The quantity of character in the character string of replacement, then stop the character string that traversal is used for replacing, and current character string to be replaced is
For the character string for finally giving.
For example, the first character string is character string " A@B_C& ", and the second character string is character string " abc ".To the first character
String is traveled through, and when character "@" is traversed, the first quantity is the quantity of traversed first object character, is 1.
Second quantity be the second character string " abc " in the second target character quantity, due to the second target character be character " a ",
Character " b ", character " c ", therefore the second quantity is 3.Because the first quantity 1 is less than the second quantity 3, therefore in the second word
Symbol string reads second target character, that is, read character " a ".Using character " a " substitute character "@", obtain
Character string " AaB_C& ".Character string " AaB_C& " is traveled through, character " _ " is read, now, the first quantity
For 2, the second quantity is 3, and the first quantity is less than the second quantity, therefore reads second target character in the second character string,
Read character " b ".Using character " b " substitute character " _ ", character string " AaBbC& " is obtained.To character string
" AaBbC& " is traveled through, and reads character " & ", and now, the first quantity is 3, and the second quantity is 3, the first number
Amount is equal to the second quantity, therefore reads second target character in the second character string, that is, read character " c ".Use
Character " c " substitute character " & ", obtains character string " AaBbCc ".
Again for example, the first character string is character string " A@B_C&D#E% ", and the second character string is character string " abc ".To
One character string is traveled through, and when character "@" is traversed, the first quantity is the quantity of traversed first object character,
For 1.Second quantity is the quantity of the second target character in the second character string " abc ", because the second target character is word
Symbol " a ", character " b ", character " c ", therefore the second quantity is 3.Because the first quantity 1 is less than the second quantity 3, therefore
Second target character is read in the second character string, that is, reads character " a ".Using character " a " substitute character "@",
Obtain character string " AaB_C&D#E% ".Character string " AaB_C&D#E% " is traveled through, character " _ " is read,
Now, the first quantity is 2, and the first quantity 2 is less than the second quantity 3, therefore reads second target in the second character string
Character, that is, read character " b ".Using character " b " substitute character " _ ", character string " AaBbC&D#E% " is obtained.
Character string " AaBbC&D#E% " is traveled through, character " & " is read, now, the first quantity is 3, the first number
Amount is equal to the second quantity, therefore reads second target character in the second character string, that is, read character " c ".Use
Character " c " substitute character " & ", obtains character string " AaBbCcD#E% ".Character string is traveled through, word is read
Symbol " # ", now, the first quantity is 4, and the first quantity is more than the second quantity, stops the first character string of traversal, and really
It is the first final character string to determine character string " AaBbCcD#E% ", i.e. character string " AaBbCcD#E% " is all replacing
Character string after the completion of changing.
Alternatively, the character string alternative that the embodiment of the present application is provided also includes:Comparing unit, for successively
After reading out the second target character in the second character string, compare the size of the second quantity and the 3rd quantity, wherein,
Second quantity is the total quantity of the second target character in the second character string, and the 3rd quantity is first object in the first character string
The total quantity of character, replacement unit includes:Second replaces subelement, for being more than or equal to comparing the second quantity
In the case of 3rd quantity, according to reading first object character and reading the order of the second target character, successively using the
Two target characters replace first object character, until first object character is replaced by the second target character;Or the 3rd
Subelement is replaced, for comparing the second quantity less than or equal in the case of the 3rd quantity, according to reading the first mesh
Marking-up is accorded with and reads the order of the second target character, replaces first object character using the second target character successively, until
Front second quantity first object character is replaced by the second target character in first character string.That is, according to successively suitable
Sequence is successively read out after the character in the character string for replacing, the number of all characters in the character string for being used for replacing
Amount is compared with the quantity of character to be replaced in character string to be replaced.If for all characters in the character string replaced
Quantity more than character to be replaced in character string to be replaced quantity, then according to the order for reading, successively using for replacing
Character in the character string changed replaces character to be replaced in character string to be replaced, until to be replaced in character string to be replaced
Character be replaced by character in the character string for replacing.If for all characters in the character string replaced
Quantity, then according to the order for reading, uses use successively less than or equal to the quantity of character to be replaced in character string to be replaced
Character to be replaced in character string to be replaced is replaced come the character in the character string replaced, until in character string to be replaced
Front second quantity character to be replaced is replaced by the character in the character string for replacing.
For example, the first character string is character string " A@B_C& ", and the second character string is character string " abcde ".First character
In string, first object character is character "@", character " _ ", character " & ", and the quantity of first object character is 3,
Therefore the 3rd quantity is 3.In second character string, the second target character be character " a ", character " b ", character " c ",
Character " d ", character " e ", the quantity of the second target character is 5, therefore the second quantity is 5.Now, the second quantity is big
In the 3rd quantity, with character " a " replacement "@", character string " AaB_C& " is obtained after the completion of replacement, with character " b "
Substitute character " _ ", obtains character string " AaBbC& " after the completion of replacement, with character " c " substitute character " & ", replace
After the completion of obtain character string " AaBbCc ", now, first object character is replaced by the second target character, character string
" AaBbCc " is and performs the result finally given after all replacing it.
Again for example, the first character string is character string " A@B_C&D*E $ ", and the second character string is character string " abc ".First
In character string, first object character be character "@", character " _ ", character " & ", character " * ", character " $ ",
The quantity of first object character is 5, therefore the 3rd quantity is 5.In second character string, the second target character be character " a ",
Character " b ", character " c ", the quantity of the second target character is 3, therefore the second quantity is 3.Now, the second quantity is little
In the 3rd quantity, with character " a " replacement "@", character string " AaB_C&D*E $ " is obtained after the completion of replacement, use character
" b " substitute character " _ ", obtains character string " AaBbC&D*E $ " after the completion of replacement, with character " c " substitute character " & ",
Character string " AaBbCcD*E $ " is obtained after the completion of replacement, now, the second target character is used to replace first object character,
Character string " AaBbCcD*E $ " is and performs the result finally given after all replacing it.
Above-mentioned the embodiment of the present application sequence number is for illustration only, does not represent the quality of embodiment.
In above-described embodiment of the application, the description to each embodiment all emphasizes particularly on different fields, and does not have in certain embodiment
The part of detailed description, may refer to the associated description of other embodiment.
In several embodiments provided herein, it should be understood that disclosed technology contents, other can be passed through
Mode realize.Wherein, device embodiment described above is only schematic, such as division of described unit,
Can be a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing
Can with reference to or be desirably integrated into another system, or some features can be ignored, or not perform.It is another, institute
The coupling each other for showing or discussing or direct-coupling or communication connection can be by some interfaces, unit or mould
The INDIRECT COUPLING of block or communication connection, can be electrical or other forms.
The unit as separating component explanation can be or may not be it is physically separate, it is aobvious as unit
The part for showing can be or may not be physical location, you can with positioned at a place, or can also be distributed to
On multiple units.Some or all of unit therein can be according to the actual needs selected to realize this embodiment scheme
Purpose.
In addition, each functional unit in the application each embodiment can be integrated in a processing unit, it is also possible to
It is that unit is individually physically present, it is also possible to which two or more units are integrated in a unit.It is above-mentioned integrated
Unit both can be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
If the integrated unit is realized and as independent production marketing or when using using in the form of SFU software functional unit,
During a computer read/write memory medium can be stored in.Based on such understanding, the technical scheme essence of the application
On all or part of prior art is contributed part in other words or the technical scheme can be with software product
Form is embodied, and the computer software product is stored in a storage medium, including some instructions are used so that one
Platform computer equipment (can be personal computer, server or network equipment etc.) performs each embodiment institute of the application
State all or part of step of method.And aforesaid storage medium includes:USB flash disk, read only memory (ROM, Read-Only
Memory), random access memory (RAM, Random Access Memory), portable hard drive, magnetic disc or CD
Etc. it is various can be with the medium of store program codes.
The above is only the preferred implementation of the application, it is noted that for the ordinary skill people of the art
For member, on the premise of without departing from the application principle, some improvements and modifications can also be made, these improve and moisten
Decorations also should be regarded as the protection domain of the application.
Claims (10)
1. a kind of character string replacement method, it is characterised in that include:
First object character to be replaced in the first character string is successively read out, wherein, the first object character
Quantity for multiple;
The second target character being successively read out in the second character string, wherein, second target character be for
The character of the first object character is replaced, and the quantity of the second target character is multiple, second character
Go here and there as the character string of second target character composition;And
According to reading the first object character and reading the order of second target character, successively using described
Second target character replaces the first object character.
2. method according to claim 1, it is characterised in that be successively read out to be replaced in the first character string
One target character, the second target character being successively read out in the second character string, according to the reading first object
The order of character and reading second target character, replaces described first using second target character successively
Target character includes:
Travel through first character string;
A first object character is often traversed, second mesh is read from second character string
Marking-up accord with, wherein, position of second target character for currently reading in second character string with work as
The first quantity correspondence of the front first object character for having traversed;And
The first object character for currently traversing is replaced using second target character for currently reading.
3. method according to claim 2, it is characterised in that using second target word for currently reading
Symbol is replaced after the first object character for currently traversing, and methods described also includes:
Determine that target string is first character string being traversed next time, wherein, by the institute of current traversal
State the first object character currently traversed in the first character string and replace with second mesh for currently reading
After marking-up symbol, the target string is obtained.
4. method according to claim 3, it is characterised in that often traversing a first object character,
Read before second target character from second character string, methods described also includes:
Compare the size of first quantity and the second quantity of the second target character described in second character string,
Wherein, second quantity is the total quantity of the second target character described in second character string,
Wherein, in the case where first quantity is compared less than or equal to second quantity, often traverse
One first object character, one second target character of reading from second character string, or
First quantity is compared more than in the case of second quantity, stopping travels through first character string, and
Determine that the target string is final first character string.
5. method according to claim 1, it is characterised in that the second mesh in the second character string is successively read out
After marking-up symbol, methods described also includes:
Compare the size of the second quantity and the 3rd quantity, wherein, second quantity is in second character string
The total quantity of second target character, the 3rd quantity is first object word described in first character string
The total quantity of symbol,
According to reading the first object character and reading the order of second target character, successively using described
Second target character replaces the first object character to be included:
Comparing second quantity more than or equal in the case of the 3rd quantity, according to reading described the
The order of one target character and reading second target character, replaces institute using second target character successively
First object character is stated, until the first object character is replaced by second target character;Or
Comparing second quantity less than or equal in the case of the 3rd quantity, according to reading described the
The order of one target character and reading second target character, replaces institute using second target character successively
First object character is stated, until the front second quantity first object character is equal in first character string
It is replaced by second target character.
6. a kind of character string alternative, it is characterised in that include:
First reading unit, for being successively read out the first character string in first object character to be replaced, wherein,
The quantity of the first object character is multiple;
Second reading unit, for being successively read out the second character string in the second target character, wherein, it is described
Second target character is the character for replacing the first object character, and the quantity of the second target character is
Multiple, second character string is the character string of the second target character composition;And
Replacement unit, for according to reading the first object character and read the order of second target character,
Replace the first object character using second target character successively.
7. device according to claim 6, it is characterised in that
First reading unit includes:
Traversal subelement, for traveling through first character string,
Second reading unit includes:
Subelement is read, for often traversing the situation of a first object character in the traversal subelement
Under, second target character is read from second character string, wherein, what is currently read is described
Position of second target character in second character string and the first object character for currently having traversed
First quantity correspondence,
The replacement unit includes:
First replaces subelement, and second target character for being read using current time replaces current time
The first object character gone through.
8. device according to claim 7, it is characterised in that the replacement unit also includes:
Determination subelement, for replacing current traversal using second target character for currently reading
After the first object character for arriving, determine that target string is first character string being traversed next time,
Wherein, the first object character currently traversed in first character string of current traversal is replaced with and is worked as
Before after second target character that reads, obtain the target string.
9. device according to claim 8, it is characterised in that second reading unit also includes:
Comparing subunit, for often traversing a first object character, from second character string
Before reading second target character, comparison first quantity and described in second character string the
The size of the second quantity of two target characters, wherein, second quantity is the described in second character string
The total quantity of two target characters,
Wherein, in the case where first quantity is compared less than or equal to second quantity, often traverse
One first object character, one second target character of reading from second character string, or
First quantity is compared more than in the case of second quantity, stopping travels through first character string, and
Determine that the target string is final first character string.
10. device according to claim 6, it is characterised in that described device also includes:
Comparing unit, for after the second target character being successively read out in the second character string, comparing second
The size of quantity and the 3rd quantity, wherein, second quantity is the second target described in second character string
The total quantity of character, the 3rd quantity is the total quantity of first object character described in first character string,
The replacement unit includes:
Second replaces subelement, for comparing feelings of second quantity more than or equal to the 3rd quantity
Under condition, according to reading the first object character and reading the order of second target character, successively using institute
State the second target character and replace the first object character, until the first object character be replaced by it is described
Second target character;Or
3rd replaces subelement, for comparing feelings of second quantity less than or equal to the 3rd quantity
Under condition, according to reading the first object character and reading the order of second target character, successively using institute
State the second target character and replace the first object character, until front second quantity in first character string
The individual first object character is replaced by second target character.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510661371.9A CN106569986B (en) | 2015-10-12 | 2015-10-12 | Character string replacing method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510661371.9A CN106569986B (en) | 2015-10-12 | 2015-10-12 | Character string replacing method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106569986A true CN106569986A (en) | 2017-04-19 |
CN106569986B CN106569986B (en) | 2020-05-22 |
Family
ID=58508852
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510661371.9A Active CN106569986B (en) | 2015-10-12 | 2015-10-12 | Character string replacing method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106569986B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108430045A (en) * | 2018-03-14 | 2018-08-21 | 北京思特奇信息技术股份有限公司 | A kind of character string pruning method and device |
CN109740142A (en) * | 2018-04-20 | 2019-05-10 | 北京字节跳动网络技术有限公司 | A kind of character string error correction method and device |
CN112202729A (en) * | 2020-09-11 | 2021-01-08 | 微梦创科网络科技(中国)有限公司 | Dynamic obfuscated encryption and decryption method and device |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1506875A (en) * | 2002-12-12 | 2004-06-23 | 华为技术有限公司 | Characteristic character string extracting and substituting method in language localization |
CN101140581A (en) * | 2007-05-24 | 2008-03-12 | 中兴通讯股份有限公司 | SQL statement construct method and apparatus of preprocess special-character |
CN103678554A (en) * | 2013-12-06 | 2014-03-26 | 金蝶软件(中国)有限公司 | Character substituting method and device |
-
2015
- 2015-10-12 CN CN201510661371.9A patent/CN106569986B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1506875A (en) * | 2002-12-12 | 2004-06-23 | 华为技术有限公司 | Characteristic character string extracting and substituting method in language localization |
CN101140581A (en) * | 2007-05-24 | 2008-03-12 | 中兴通讯股份有限公司 | SQL statement construct method and apparatus of preprocess special-character |
CN103678554A (en) * | 2013-12-06 | 2014-03-26 | 金蝶软件(中国)有限公司 | Character substituting method and device |
Non-Patent Citations (2)
Title |
---|
CANFEIT: "JSTL中用数组中的值依次替换字符串中的指定字符", 《HTTPS://Q.CNBLOGS.COM/Q/59521/》 * |
CANFEIT: "JSTL中用数组中的值依次替换字符串中的指定字符", 《HTTPS://WWW.ITEYE.COM/PROBLEMS/100090》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108430045A (en) * | 2018-03-14 | 2018-08-21 | 北京思特奇信息技术股份有限公司 | A kind of character string pruning method and device |
CN108430045B (en) * | 2018-03-14 | 2020-11-24 | 北京思特奇信息技术股份有限公司 | Character string trimming method and device |
CN109740142A (en) * | 2018-04-20 | 2019-05-10 | 北京字节跳动网络技术有限公司 | A kind of character string error correction method and device |
CN112202729A (en) * | 2020-09-11 | 2021-01-08 | 微梦创科网络科技(中国)有限公司 | Dynamic obfuscated encryption and decryption method and device |
Also Published As
Publication number | Publication date |
---|---|
CN106569986B (en) | 2020-05-22 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US9195738B2 (en) | Tokenization platform | |
CN106547644B (en) | Incremental backup method and equipment | |
EP2924594A1 (en) | Data encoding and corresponding data structure in a column-store database | |
CN103167172A (en) | Integration method and system for variety of chat records | |
CN105589894B (en) | Document index establishing method and device and document retrieval method and device | |
CN104866502A (en) | Data matching method and device | |
CN110275940B (en) | Chinese address identification method and equipment | |
CN111324577B (en) | Yml file reading and writing method and device | |
CN106649412B (en) | Data processing method and equipment | |
CN106569986A (en) | Character string replacement method and device | |
CN105488471B (en) | A kind of font recognition methods and device | |
CN106294886A (en) | A kind of method and system of full dose extracted data from HBase | |
CN108304377A (en) | A kind of extracting method and relevant apparatus of long-tail word | |
CN108241612B (en) | Punctuation processing method and device | |
CN106980679A (en) | A kind of information system Domestic Database migration remodeling method and device | |
CN106682021A (en) | Database migration method and device | |
CN109254962B (en) | Index optimization method and device based on T-tree and storage medium | |
CN105528404A (en) | Establishment method and apparatus of seed keyword dictionary, and extraction method and apparatus of keywords | |
CN102725754B (en) | Method and device for processing index data | |
CN105354149B (en) | A kind of internal storage data lookup method and device | |
CN104572904A (en) | Method and device for determining relevance level between tags | |
CN108846039B (en) | Data flow direction determining method and device | |
CN104572730A (en) | Method and device for importing and exporting digital resources | |
CN104991963B (en) | Document handling method and device | |
CN105117403A (en) | Log data fragmentation and query method and apparatus |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
CB02 | Change of applicant information | ||
CB02 | Change of applicant information |
Address after: 100083 No. 401, 4th Floor, Haitai Building, 229 North Fourth Ring Road, Haidian District, Beijing Applicant after: Beijing Guoshuang Technology Co.,Ltd. Address before: 100086 Cuigong Hotel, 76 Zhichun Road, Shuangyushu District, Haidian District, Beijing Applicant before: Beijing Guoshuang Technology Co.,Ltd. |
|
GR01 | Patent grant | ||
GR01 | Patent grant |