Nothing Special   »   [go: up one dir, main page]

CN112099969B - Text copying and pasting method, terminal equipment and edge server - Google Patents

Text copying and pasting method, terminal equipment and edge server Download PDF

Info

Publication number
CN112099969B
CN112099969B CN202010916124.XA CN202010916124A CN112099969B CN 112099969 B CN112099969 B CN 112099969B CN 202010916124 A CN202010916124 A CN 202010916124A CN 112099969 B CN112099969 B CN 112099969B
Authority
CN
China
Prior art keywords
text
text content
edge server
user
copied
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
CN202010916124.XA
Other languages
Chinese (zh)
Other versions
CN112099969A (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.)
China United Network Communications Group Co Ltd
Original Assignee
China United Network Communications Group 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 China United Network Communications Group Co Ltd filed Critical China United Network Communications Group Co Ltd
Priority to CN202010916124.XA priority Critical patent/CN112099969B/en
Publication of CN112099969A publication Critical patent/CN112099969A/en
Application granted granted Critical
Publication of CN112099969B publication Critical patent/CN112099969B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/54Interprogram communication
    • G06F9/543User-generated data transfer, e.g. clipboards, dynamic data exchange [DDE], object linking and embedding [OLE]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The embodiment of the disclosure provides a text copy and paste method, terminal equipment, an edge server, computer equipment and a storage medium, wherein the method comprises the following steps: after detecting an event of selecting and copying a text by a user, the terminal equipment sends a first storage request to the edge server so that the edge server stores the copied text content under a corresponding text name label in a database of the edge server; if the terminal equipment monitors that a user inputs a preset text name, a query request is sent to the edge server, so that the edge server queries text contents under the same text name label in a database of the edge server, and the query result is returned to the terminal equipment; and the terminal equipment receives the query result sent by the edge server and presents the query result to the user. In the embodiment of the disclosure, the user can automatically acquire the required text content from the edge server when inputting the text name again next time only by selecting and copying the text content once and storing the text content into the edge server, so that the user experience is better.

Description

Text copying and pasting method, terminal equipment and edge server
Technical Field
The present disclosure relates to the field of communications technologies, and in particular, to a text copy and paste method, a terminal device, an edge server, a computer device, and a computer-readable storage medium.
Background
The smart phone has the functions of copying and pasting texts, and when a user presses a section of text on a screen for a long time, a prompt box appears so as to provide the functions of selecting, copying, pasting and the like. In everyday use, much of the content is often duplicated, such as identification numbers (including self, family), home addresses, unit addresses, postal codes, telephone numbers, and common designations in some chat processes. The common texts are copied and pasted for use after being selected from the corresponding positions when being used each time. The existing scheme can be copied once for pasting at a plurality of places, but still needs to select and copy to the corresponding position, so that the user experience is poor.
Therefore, providing a solution that does not need to go to the corresponding position for selecting and copying when text is required to be pasted is a current urgent problem to be solved.
Disclosure of Invention
The present disclosure has been made in order to at least partially solve the technical problems occurring in the prior art.
According to an aspect of the embodiments of the present disclosure, there is provided a text copy-and-paste method, the method including:
after detecting an event of selecting and copying a text by a user, the terminal equipment sends a first storage request to an edge server, wherein the first storage request carries copied text content so that the edge server stores the copied text content under a corresponding text name label in a database of the edge server;
the terminal equipment monitors the input of a user, if the user inputs a preset text name, a query request is sent to the edge server, the query request carries the monitored text name, so that the edge server queries the text content under the same text name label in the database, and the query result is returned to the terminal equipment; the method comprises the steps of,
and the terminal equipment receives the query result sent by the edge server and presents the query result to the user.
According to another aspect of the embodiments of the present disclosure, there is provided a text copy-and-paste method, the method including:
the method comprises the steps that an edge server receives a first storage request sent by terminal equipment after detecting an event of selecting and copying a text by a user, wherein the first storage request carries copied text content;
the edge server stores the copied text content to the corresponding text name label in the database;
the method comprises the steps that an edge server receives a query request sent by a terminal device when monitoring that a user inputs a preset text name, wherein the query request carries the monitored text name; the method comprises the steps of,
and the edge server inquires the text content under the text name label which is the same as the monitored text name in the database, and returns the inquiry result to the terminal equipment, so that the terminal equipment receives the inquiry result and presents the inquiry result to the user.
According to still another aspect of the embodiments of the present disclosure, there is provided a terminal device including:
the detection module is used for sending a first storage request to the edge server after detecting an event of selecting and copying the text by a user, wherein the first storage request carries copied text content so that the edge server stores the copied text content under a corresponding text name label in a database of the edge server;
the monitoring module is used for monitoring user input, if the user input of a preset text name is monitored, a query request is sent to the edge server, the query request carries the monitored text name, so that the edge server queries text contents under the same text name label in a database of the edge server, and the query result is returned to the terminal equipment;
the first receiving module is used for receiving the query result sent by the edge server; the method comprises the steps of,
and a display module configured to present the query results to a user.
According to still another aspect of the embodiments of the present disclosure, there is provided an edge server including:
the second receiving module is used for receiving a first storage request sent by the terminal equipment after detecting an event of selecting and copying the text by the user, wherein the first storage request carries copied text content;
a storage module configured to store the copied text content under a corresponding text name tag in its database;
the second receiving module is further configured to receive a query request sent by the terminal device when the terminal device monitors that a user inputs a preset text name, wherein the query request carries the monitored text name; the method comprises the steps of,
and the query module is used for querying text contents under the text name label which is the same as the monitored text name in the database, and returning the query result to the terminal equipment so that the terminal equipment receives the query result and presents the query result to the user.
According to still another aspect of the embodiments of the present disclosure, there is provided a computer apparatus including a memory and a processor, the memory storing a computer program, and the processor executing the aforementioned text copy-and-paste method when the processor runs the computer program stored in the memory.
According to yet another aspect of the disclosed embodiments, there is provided a computer-readable storage medium having stored thereon a computer program which, when executed by a processor, performs the aforementioned text copy-and-paste method.
The technical scheme provided by the embodiment of the disclosure can comprise the following beneficial effects:
according to the text copy pasting method provided by the embodiment of the disclosure, a user only needs to select and copy text contents once and store the text contents in the edge server, the required text contents can be automatically obtained from the edge server when the text names are input next time, and the user does not need to go to the corresponding positions for selection and copy operation every time, so that the user experience is good.
Additional features and advantages of the disclosure will be set forth in the description which follows, and in part will be apparent from the description, or may be learned by practice of the disclosure. The objectives and other advantages of the disclosure will be realized and attained by the structure particularly pointed out in the written description and claims hereof as well as the appended drawings.
Drawings
The accompanying drawings are included to provide a further understanding of the disclosed embodiments and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain, without limitation, the disclosed embodiments.
Fig. 1 is a flow chart of a text copy-and-paste method according to an embodiment of the present disclosure;
fig. 2 is a flowchart of another text copy-and-paste method according to an embodiment of the present disclosure;
FIG. 3 is a flowchart illustrating a method for text copy-and-paste according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure;
fig. 5 is a schematic structural diagram of an edge server according to an embodiment of the disclosure;
FIG. 6 is a schematic diagram of a text copy-and-paste system according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of a computer device according to an embodiment of the present disclosure.
Detailed Description
For the purposes of making the objects, technical solutions and advantages of the embodiments of the present disclosure more apparent, the following detailed description of the specific embodiments of the present disclosure will be given with reference to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating and illustrating the disclosure, are not intended to limit the disclosure.
It should be noted that the terms "first," "second," and the like in the description and claims of the present disclosure and the above-described figures are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order; moreover, embodiments of the present disclosure and features of embodiments may be arbitrarily combined with each other without conflict.
Fig. 1 is a flow chart of a text copy-and-paste method according to an embodiment of the present disclosure. As shown in fig. 1, the method includes the following steps S101 to S103.
S101, after detecting an event of selecting and copying a text by a user, a terminal device sends a first storage request to an edge server, wherein the first storage request carries copied text content, so that the edge server stores the copied text content under a corresponding text name label in a database of the edge server;
s102, the terminal equipment monitors user input, if the user inputs a preset text name, a query request is sent to the edge server, the query request carries the monitored text name, so that the edge server queries text contents under the same text name label in a database, and the query result is returned to the terminal equipment;
s103, the terminal equipment receives the query result sent by the edge server and presents the query result to the user.
The terminal device can be a portable computer device such as a smart phone, a tablet computer, a notebook computer and the like.
In step S101, after detecting the event that the user selects and copies the text, the terminal device may also store the copied text content as required, for example, in a specially-established storage module.
In step S102, when the terminal device monitors the user input, it mainly monitors whether the user inputs a preset text name, and only when the user monitors the preset text name, it sends a query request to the edge server. The preset text names may be set by those skilled in the art according to actual needs, for example, an identification card number, a home address, a unit address, a zip code, a phone number, and common names in some chat processes, and the disclosure is not limited thereto, and other text names required by the user are also within the protection scope of the disclosure. Moreover, the text name corresponds to text content, such as the text name "identification card number" corresponds to an identification card number of eighteen digits, the text name "mobile phone number" corresponds to a mobile phone number of eleven digits, the text name "unit address" corresponds to a specific location where the work unit is located, and so on.
In the embodiment of the disclosure, the user can automatically acquire the required text content from the edge server when inputting the text name again next time only by selecting and copying the text content once and storing the text content in the edge server, and the user experience is good without selecting and copying the text content from the corresponding position every time.
In a specific embodiment, if the query result returned by the edge server includes more than one text content, the terminal device in step S103 presents the query result to the user specifically:
and the terminal equipment presents various text contents in the query result to the user in the form of options for the user to select.
In the embodiment of the disclosure, since a plurality of corresponding text contents may be stored under the same text name label, for example, 18-bit identification card numbers of a plurality of persons may be stored under the identification card number label, a plurality of text contents exist in the query result, and the terminal device presents each text content in the query result to the user in the form of options, so that the user can conveniently select.
In a specific embodiment, after step S103, the following steps S104 to S105 are further included.
S104, the terminal equipment judges whether a user has selected one text content in the query result, and if not, the step S105 is executed; if so, jumping out of the current step, returning to the step S102, and continuing to monitor the subsequent input content of the user by the terminal equipment;
s105, the terminal equipment receives text content which is input by a user subsequently and corresponds to the text name which is monitored before, and uploads the text content and the text content to the edge server together, so that the edge server stores the text content which is input by the user subsequently and corresponds to the text name which is monitored before to the text name label which is the same as the text name which is monitored before in a database of the edge server.
In the embodiment of the disclosure, each item of text content in the query result is presented to the user in the form of options at the terminal device, if the user does not select, and if the query result does not contain text content required by the user, the user can input or copy and paste the required text content from other places, the terminal device receives the required text content input by the user or copy and paste the required text content from other places, and uploads the required text content and the corresponding text name (i.e. the text name monitored before) to the edge server, and the required text content is stored by the edge server so as to be called again when the user needs next time.
Fig. 2 is a flowchart of another text copy-and-paste method according to an embodiment of the present disclosure. As shown in fig. 2, the method includes the following steps S201 to S204.
S201, the edge server receives a first storage request sent by the terminal equipment after detecting an event of selecting and copying a text by a user, wherein the first storage request carries copied text content;
s202, storing the copied text content to a corresponding text name label in a database by an edge server;
s203, the edge server receives a query request sent by the terminal equipment when the terminal equipment monitors that a user inputs a preset text name, wherein the query request carries the monitored text name;
s204, the edge server inquires text content under the text name label which is the same as the monitored text name in the database, and returns the inquired result to the terminal equipment, so that the terminal equipment receives the inquired result and presents the inquired result to the user.
In the embodiment of the disclosure, the user can automatically acquire the required text content from the edge server when inputting the text name again next time only by selecting and copying the text content once and storing the text content in the edge server, and the user experience is good without selecting and copying the text content from the corresponding position every time. Moreover, the edge server stores the copied text content (i.e., the text commonly used by the user), thereby reducing the burden on the terminal device.
In one embodiment, step S202 includes the following steps S2021 to S2024.
S2021, the edge server identifies the copied text content to identify a corresponding text name;
s2022, checking whether the corresponding text name label exists in the database by the edge server, and if so, executing step S2023; if the corresponding text name tag does not exist, step S2024 is performed;
s2023, the edge server continues to check whether the text content identical to the copied text content is stored under the corresponding text name label in the database, if the text content identical to the copied text content is stored, the count value of the identical text content is increased by 1, if the text content identical to the count value is not stored, the copied text content is stored under the corresponding text name label, and the copied text content is counted as a preset initial value;
s2024, adding the corresponding text name label in the database by the edge server, storing the copied text content under the added text name label, and counting the copied text content as a preset initial value.
Wherein the preset initial value may be set to 1. Each text name tag in the database may correspond to a data table in which text content corresponding to the text name and its count value may be stored.
In the embodiment of the disclosure, the edge server stores the copied text content under the corresponding text name label in the database, and simultaneously, performs accumulated counting on the text content which appears for multiple times, namely, the edge server adds 1 to the count of the same text content every time the edge server stores the same text content, and the larger the count value is, the higher the frequency of using the text content is, and the closer the result is to the user.
Since the text content stored in the database has been counted in advance, in a specific embodiment, the query result returned from the edge server to the terminal device in step S204 includes: and after receiving the query result, the terminal equipment sorts the text contents in the query result according to the sequence from the high count value to the low count value, and then presents the text contents to the user in the form of options for the user to select.
In the embodiment of the disclosure, since the query result returned by the edge server to the terminal device includes each item of text content under the text name label which is the same as the monitored text name and the count value of each item of text content, when the terminal device presents the query result to the user, each item of text content in the query result can be ordered according to the order of the count value from large to small (which is equivalent to the order according to the number of times of use), and then presented to the user in the form of options, so that the user can conveniently make corresponding selections according to the own needs, the user can conveniently edit, and the user experience is improved.
In a specific embodiment, after step S204, the following steps S205 and S206 are further included.
S205, the edge server receives a second storage request sent by the terminal equipment after judging that the user has selected one item of text content in the query result, wherein the second storage request carries the text content selected by the user and the corresponding text name;
s206, the edge server adds 1 to the count value of the text content which is the same as the text content selected by the user under the text name label which is the same as the text name carried in the second storage request in the database.
In the embodiment of the disclosure, after the terminal device presents the query result to the user, if the query result includes text content required by the user, the user makes a selection, and after receiving the selection made by the user, the terminal device sends the text content selected by the user and the corresponding text name thereof to the edge server, and then the edge server adds 1 to the count value of the text content identical to the text content selected by the user in the database thereof.
In a specific embodiment, after step S204, the following steps S207 and S208 are further included.
S207, after judging that a user does not select one text content in the query result and receiving text content which is input by the user and corresponds to the text name which is monitored before, the edge server receives the text name which is monitored before and the text content which is input by the user and corresponds to the text name which is monitored before;
s208, the edge server stores the text content which is input by the user later into a database of the edge server under a text name label which is the same as the text name which is monitored before, and counts the text content as a preset initial value.
In the embodiment of the disclosure, after the terminal device presents the query result to the user, if the query result does not include the text content required by the user, and therefore the user cannot make a selection, the user will input the text content required by the user or copy and paste the text content from other places, and after receiving the text content required by the user or copy and paste the text content from other places, the terminal device uploads the text content and the corresponding text name (i.e. the text name monitored before) to the edge server, and then the edge server counts the text content uploaded by the user as a preset initial value while storing the text content.
The detailed flow of the text copy-and-paste method of the present disclosure will be described in detail below with reference to fig. 3, by taking the text name "identification card number" and the identification card number with eighteen corresponding text contents as an example. Fig. 3 is a flowchart of still another text copy-and-paste method according to an embodiment of the present disclosure. As shown in fig. 3, the method includes the following steps S301 to S312.
S301, when a user selects to copy an eighteen-bit identification card number, after detecting the event, the terminal equipment sends a first storage request to the edge server, wherein the first storage request carries the copied eighteen-bit identification card number;
s302, the edge server identifies the duplicated eighteen-digit identity card number sent by the terminal equipment to identify that the corresponding text name is an identity card number, and then checks whether an identity card number label exists in a database, if so, the step S303 is executed; if the label of the 'identity card number' is not available, executing step S304;
s303, the edge server continues to check whether the label of the 'identity card number' in the database stores the number identical to the duplicated eighteen-digit identity card number, if yes, the count value of the identical number is increased by 1, if not, the duplicated eighteen-digit identity card number is stored under the label of the 'identity card number', and the count value is 1;
s304, adding an identification card number label into a database of the edge server, then storing the copied eighteen-digit identification card number under the added identification card number label, and counting the number as 1;
s305, when the terminal equipment monitors that a user inputs an identity card number word, a query request is sent to an edge server, wherein the query request carries a text name of the identity card number as content to be queried;
s306, after receiving the query request, the edge server queries each item of text content under the label of the identification card number in the database, namely the identification card number of eighteen bits and the count value of each identification card number of eighteen bits, and returns the two as a query result to the terminal equipment;
s307, after receiving the query result, the terminal equipment sorts the eighteen-digit identification card numbers in the query result according to the sequence from the big count value to the small count value and presents the identification card numbers to the user in the form of options for the user to select;
s308, the terminal equipment judges whether a user selects an eighteen-digit identification card number in the query result, if so, the step S309 is executed, and if not, the step S311 is executed;
s309, the terminal equipment sends a second storage request to the edge server, wherein the second storage request carries the eighteen-digit identification card number selected by the user and the corresponding text name of 'identification card number';
s310, the edge server adds 1 to the count value of the number which is the same as the eighteen-digit identification card number selected by the user under the identification card number label in the database;
s311, the terminal equipment receives the eighteen-digit identification card number input by the user subsequently, and uploads the eighteen-digit identification card number input by the user and the text name of the eighteen-digit identification card number to the edge server;
s312, the edge server stores the eighteen-digit identification card number input by the user under an identification card number label in a database of the edge server, and counts the eighteen-digit identification card number as 1.
When the edge server receives the data sent by the terminal equipment, the edge server needs to analyze the text content and then perform subsequent operations; when the terminal equipment receives the data sent by the edge server, the terminal equipment also needs to analyze the text content first and then carry out subsequent operation.
The text copy pasting method provided by the embodiment of the disclosure provides a scheme for automatically providing pasting contents according to user requirements and service conditions without selecting and copying corresponding positions each time, can count common texts of users, and improves user experience of terminal equipment; moreover, the edge server is used for storing the common text of the user, so that the burden of the terminal equipment is reduced.
Fig. 4 is a schematic structural diagram of a terminal device according to an embodiment of the present disclosure. As shown in fig. 4, the terminal device 4 includes: the device comprises a detection module 41, a monitoring module 42, a first receiving module 43 and a display module 44.
The detection module 41 is configured to send a first storage request to the edge server after detecting an event that a user selects and copies text, where the first storage request carries copied text content, so that the edge server stores the copied text content under a corresponding text name tag in a database of the edge server; the monitoring module 42 is configured to monitor user input, and if it is monitored that a user inputs a preset text name, send a query request to the edge server, where the query request carries the monitored text name, so that the edge server queries text content under the same text name label in its database, and returns a query result to the terminal device; the first receiving module 43 is configured to receive the query result sent by the edge server; the display module 44 is arranged to present the query results to a user.
In a specific embodiment, if the query result returned by the edge server to the terminal device includes more than one item of text content, the display module 44 is specifically configured to present each item of text content in the query result to the user in the form of an option for selection by the user.
In a specific embodiment, the terminal device 4 further comprises: and a judgment module 45.
The judging module 45 is configured to judge whether the user has selected one of the text contents in the query result. The first receiving module 43 is further configured to, when the determining module 45 determines that the user does not select one text content in the query result, receive text content corresponding to a text name that was monitored before and upload the text content to the edge server together, so that the edge server stores the text content corresponding to the text name that was monitored before and that was input after the user to the database under the same text name label as the text name that was monitored before.
According to the terminal equipment provided by the embodiment of the disclosure, the text content selected and copied by the user is stored in the edge server, the required text content is automatically acquired from the edge server when the user inputs the text name next time, the selection and copying operation is not required to be performed at the corresponding position every time, and the user experience is good.
Fig. 5 is a schematic structural diagram of an edge server according to an embodiment of the disclosure. As shown in fig. 5, the edge server 5 includes: a second receiving module 51, a storing module 52 and a querying module 53.
The second receiving module 51 is configured to receive a first storage request sent by the terminal device after detecting an event of selecting and copying text by the user, where the first storage request carries copied text content; the storage module 52 is configured to store the copied text content under a corresponding text name tag in its database; the second receiving module 51 is further configured to receive a query request sent by the terminal device when the terminal device monitors that the user inputs a preset text name, where the query request carries the monitored text name; the query module 53 is configured to query the text content under the text name label, which is the same as the monitored text name, in the database thereof, and return the query result to the terminal device, so that the terminal device receives the query result and presents the query result to the user.
In one embodiment, the storage module 52 is specifically configured to:
identifying the copied text content to identify a corresponding text name;
checking whether the corresponding text name label exists in a database;
if the corresponding text name label exists, continuously checking whether the text content identical to the copied text content is stored under the corresponding text name label in the database, if the text content identical to the copied text content exists, adding 1 to the count value of the identical text content, and if the text content identical to the count value does not exist, storing the copied text content under the corresponding text name label, and counting the copied text content as a preset initial value;
if the corresponding text name label does not exist, the corresponding text name label is added in a database of the text name label, the copied text content is stored under the added text name label, and the copied text content is counted as a preset initial value.
In a specific embodiment, the query results returned by the query module 53 to the terminal device include: and after receiving the query result, the terminal equipment sorts the text contents in the query result according to the sequence from the high count value to the low count value, and then presents the text contents to the user in the form of options for the user to select.
In a specific embodiment, the second receiving module 51 is further configured to receive a second storage request sent by the terminal device after determining that the user has selected one text content in the query result, where the second storage request carries the text content selected by the user and a corresponding text name; the storage module 52 is further configured to store the text content selected by the user under the corresponding text name label in its database and increment its count value by 1.
In a specific embodiment, the second receiving module 51 is further configured to receive, after determining that the user does not select one text content in the query result and receives the text content corresponding to the text name that is monitored before and that is input subsequently by the user, the receiving terminal device sends the text name that is monitored before and the text content that is input subsequently by the user and that is input subsequently to the corresponding user; the storage module 52 is further configured to store the text content subsequently input by the user under a text name tag in the database that is the same as the previously monitored text name, and count the text content as a preset initial value.
According to the edge server provided by the embodiment of the disclosure, a user can automatically acquire the required text content from the edge server when inputting the text name again next time only by selecting and copying the text content once, and the user experience is good without selecting and copying the text content from the corresponding position every time. Moreover, the edge server stores the copied text content (i.e., the text commonly used by the user), thereby reducing the burden on the terminal device.
Fig. 6 is a schematic structural diagram of a text copy-and-paste system according to an embodiment of the present disclosure. As shown in fig. 6, the system comprises a terminal device 4 and an edge server 5. Since the terminal device 4 and the edge server 5 have been described in detail in the foregoing, a detailed description thereof will be omitted.
Based on the same technical concept, the embodiment of the present disclosure correspondingly provides a computer device, as shown in fig. 7, where the computer device 7 includes a memory 71 and a processor 72, where the memory 71 stores a computer program, and when the processor 72 runs the computer program stored in the memory 71, the processor 72 performs the foregoing text copy and paste method.
Based on the same technical concept, the embodiments of the present disclosure correspondingly further provide a computer-readable storage medium having a computer program stored thereon, which when executed by a processor, performs the aforementioned text copy-and-paste method.
Those of ordinary skill in the art will appreciate that all or some of the steps, systems, functional modules/units in the apparatus, and methods disclosed above may be implemented as software, firmware, hardware, and suitable combinations thereof. In a hardware implementation, the division between the functional modules/units mentioned in the above description does not necessarily correspond to the division of physical components; for example, one physical component may have multiple functions, or one function or step may be performed cooperatively by several physical components. Some or all of the physical components may be implemented as software executed by a processor, such as a central processing unit, digital signal processor, or microprocessor, or as hardware, or as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on computer readable media, which may include computer storage media (or non-transitory media) and communication media (or transitory media). The term computer storage media includes both volatile and nonvolatile, removable and non-removable media implemented in any method or technology for storage of information such as computer readable instructions, data structures, program modules or other data, as known to those skilled in the art. Computer storage media includes, but is not limited to, RAM, ROM, EEPROM, flash memory or other memory technology, CD-ROM, digital Versatile Disks (DVD) or other optical disk storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium which can be used to store the desired information and which can be accessed by a computer. Furthermore, as is well known to those of ordinary skill in the art, communication media typically embodies computer readable instructions, data structures, program modules or other data in a modulated data signal such as a carrier wave or other transport mechanism and includes any information delivery media.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present disclosure, and not for limiting the same; although the present disclosure has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit of the corresponding technical solutions from the scope of the technical solutions of the embodiments of the present disclosure.

Claims (11)

1. A text copy-and-paste method, comprising:
after detecting an event of selecting and copying a text by a user, the terminal equipment sends a first storage request to an edge server, wherein the first storage request carries copied text content so that the edge server stores the copied text content under a corresponding text name label in a database of the edge server;
the terminal equipment monitors the input of a user, if the user inputs a preset text name, a query request is sent to the edge server, the query request carries the monitored text name, so that the edge server queries the text content under the same text name label in the database, and the query result is returned to the terminal equipment; the method comprises the steps of,
the terminal equipment receives the query result sent by the edge server and presents the query result to the user;
the edge server stores the copied text content to the corresponding text name label in the database, and the method comprises the following steps:
identifying the copied text content to identify a corresponding text name;
checking whether the corresponding text name label exists in a database;
if the corresponding text name label exists, continuously checking whether the text content identical to the copied text content is stored under the corresponding text name label in the database, if the text content identical to the copied text content exists, adding 1 to the count value of the identical text content, and if the text content identical to the count value does not exist, storing the copied text content under the corresponding text name label, and counting the copied text content as a preset initial value;
if the corresponding text name label does not exist, the corresponding text name label is added in a database of the text name label, the copied text content is stored under the added text name label, and the copied text content is counted as a preset initial value.
2. The method according to claim 1, wherein if the query result comprises more than one item of text content, the terminal device presents the query result to the user in particular:
and the terminal equipment presents various text contents in the query result to the user in the form of options for the user to select.
3. The method as recited in claim 2, further comprising:
the terminal equipment judges whether the user has selected one text content in the query result;
if not, the terminal equipment receives text content which is input by the user subsequently and corresponds to the text name which is monitored before, and uploads the text content and the text content to the edge server together, so that the edge server stores the text content which is input by the user subsequently and corresponds to the text name which is monitored before into a database of the edge server under a text name label which is the same as the text name which is monitored before.
4. A text copy-and-paste method, comprising:
the method comprises the steps that an edge server receives a first storage request sent by terminal equipment after detecting an event of selecting and copying a text by a user, wherein the first storage request carries copied text content;
the edge server stores the copied text content to the corresponding text name label in the database;
the method comprises the steps that an edge server receives a query request sent by a terminal device when monitoring that a user inputs a preset text name, wherein the query request carries the monitored text name; the method comprises the steps of,
the edge server inquires text contents under a text name label which is the same as the monitored text name in a database, and returns an inquiry result to the terminal equipment, so that the terminal equipment receives the inquiry result and presents the inquiry result to a user;
the edge server stores the copied text content to the corresponding text name label in the database, and the method comprises the following steps:
the edge server identifies the copied text content to identify a corresponding text name;
the edge server checks whether the corresponding text name label exists in the database;
if the corresponding text name label exists, the edge server continues to check whether the text content identical to the copied text content is stored under the corresponding text name label in the database, if the text content identical to the copied text content exists, the count value of the identical text content is increased by 1, if the text content identical to the count value does not exist, the copied text content is stored under the corresponding text name label, and the count value is counted as a preset initial value;
if the corresponding text name label does not exist, the edge server adds the corresponding text name label in a database of the edge server, then the copied text content is stored under the added text name label, and the copied text content is counted as a preset initial value.
5. The method of claim 4, wherein the query results returned by the edge server to the terminal device include: and after receiving the query result, the terminal equipment sorts the text contents in the query result according to the sequence from the high count value to the low count value, and then presents the text contents to the user in the form of options for the user to select.
6. The method as recited in claim 5, further comprising:
the edge server receives a second storage request sent by the terminal equipment after judging that the user has selected one item of text content in the query result, wherein the second storage request carries the text content selected by the user and the corresponding text name; the method comprises the steps of,
and the edge server adds 1 to the count value of the text content which is the same as the text content selected by the user under the text name label which is the same as the text name carried in the second storage request in the database.
7. The method as recited in claim 5, further comprising:
the edge server receives the text content which is input by the user and corresponds to the text name monitored before after judging that the user does not select one text content in the query result and receiving the text content which is input by the user and corresponds to the text name monitored before, and sends the text name monitored before and the text content which is input by the user and corresponds to the text name monitored before to the text content; the method comprises the steps of,
and the edge server stores the text content which is input by the user later into a database thereof under a text name label which is the same as the text name which is monitored before, and counts the text content as a preset initial value.
8. A terminal device, comprising:
the detection module is used for sending a first storage request to the edge server after detecting an event of selecting and copying the text by a user, wherein the first storage request carries copied text content so that the edge server stores the copied text content under a corresponding text name label in a database of the edge server;
the monitoring module is used for monitoring user input, if the user input of a preset text name is monitored, a query request is sent to the edge server, the query request carries the monitored text name, so that the edge server queries text contents under the same text name label in a database of the edge server, and the query result is returned to the terminal equipment;
the first receiving module is used for receiving the query result sent by the edge server; the method comprises the steps of,
a display module configured to present the query results to a user;
the method for storing the copied text content to the corresponding text name label in the database by the edge server comprises the following steps:
identifying the copied text content to identify a corresponding text name;
checking whether the corresponding text name label exists in a database;
if the corresponding text name label exists, continuously checking whether the text content identical to the copied text content is stored under the corresponding text name label in the database, if the text content identical to the copied text content exists, adding 1 to the count value of the identical text content, and if the text content identical to the count value does not exist, storing the copied text content under the corresponding text name label, and counting the copied text content as a preset initial value;
if the corresponding text name label does not exist, the corresponding text name label is added in a database of the text name label, the copied text content is stored under the added text name label, and the copied text content is counted as a preset initial value.
9. An edge server, comprising:
the second receiving module is used for receiving a first storage request sent by the terminal equipment after detecting an event of selecting and copying the text by the user, wherein the first storage request carries copied text content;
a storage module configured to store the copied text content under a corresponding text name tag in its database;
the second receiving module is further configured to receive a query request sent by the terminal device when the terminal device monitors that a user inputs a preset text name, wherein the query request carries the monitored text name; the method comprises the steps of,
the query module is used for querying text content under a text name label which is the same as the monitored text name in the database, and returning a query result to the terminal equipment so that the terminal equipment receives the query result and presents the query result to a user;
the storage module is specifically configured to:
identifying the copied text content to identify a corresponding text name;
checking whether the corresponding text name label exists in a database;
if the corresponding text name label exists, continuously checking whether the text content identical to the copied text content is stored under the corresponding text name label in the database, if the text content identical to the copied text content exists, adding 1 to the count value of the identical text content, and if the text content identical to the count value does not exist, storing the copied text content under the corresponding text name label, and counting the copied text content as a preset initial value;
if the corresponding text name label does not exist, the corresponding text name label is added in a database of the text name label, the copied text content is stored under the added text name label, and the copied text content is counted as a preset initial value.
10. A computer device comprising a memory and a processor, the memory having a computer program stored therein, the processor performing the text copy-paste method of any of claims 1 to 3 or the text copy-paste method of any of claims 4 to 7 when the processor runs the computer program stored in the memory.
11. A computer-readable storage medium, on which a computer program is stored, characterized in that the computer program, when being executed by a processor, performs the text copy-and-paste method according to any one of claims 1 to 3 or the text copy-and-paste method according to any one of claims 4 to 7.
CN202010916124.XA 2020-09-03 2020-09-03 Text copying and pasting method, terminal equipment and edge server Active CN112099969B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010916124.XA CN112099969B (en) 2020-09-03 2020-09-03 Text copying and pasting method, terminal equipment and edge server

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010916124.XA CN112099969B (en) 2020-09-03 2020-09-03 Text copying and pasting method, terminal equipment and edge server

Publications (2)

Publication Number Publication Date
CN112099969A CN112099969A (en) 2020-12-18
CN112099969B true CN112099969B (en) 2023-06-27

Family

ID=73757180

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010916124.XA Active CN112099969B (en) 2020-09-03 2020-09-03 Text copying and pasting method, terminal equipment and edge server

Country Status (1)

Country Link
CN (1) CN112099969B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008186217A (en) * 2007-01-30 2008-08-14 Kyocera Mita Corp Paste command system
CN103139244A (en) * 2011-11-24 2013-06-05 腾讯科技(深圳)有限公司 Cloud copying and pasting method and system
CN103425395A (en) * 2013-08-29 2013-12-04 宇龙计算机通信科技(深圳)有限公司 Text copying method and mobile terminal
CN105426094A (en) * 2015-10-28 2016-03-23 小米科技有限责任公司 Information pasting method and apparatus
CN106033407A (en) * 2015-03-19 2016-10-19 珠海金山办公软件有限公司 Data paste method and device
CN107643923A (en) * 2017-09-06 2018-01-30 维沃移动通信有限公司 The processing method and mobile terminal of Copy Info
CN107765958A (en) * 2017-10-30 2018-03-06 中国联合网络通信集团有限公司 One kind replicates method of attaching and system and user terminal
CN109343980A (en) * 2018-09-29 2019-02-15 广州视源电子科技股份有限公司 Cloud copying/pasting method, device, system, equipment and storage medium
CN110008043A (en) * 2019-04-09 2019-07-12 中国联合网络通信集团有限公司 Method of attaching and affixing system
CN110018762A (en) * 2019-03-15 2019-07-16 维沃移动通信有限公司 A kind of text clone method and mobile terminal

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20190213249A1 (en) * 2018-01-05 2019-07-11 International Business Machines Corporation Intelligent Copy and Paste

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008186217A (en) * 2007-01-30 2008-08-14 Kyocera Mita Corp Paste command system
CN103139244A (en) * 2011-11-24 2013-06-05 腾讯科技(深圳)有限公司 Cloud copying and pasting method and system
CN103425395A (en) * 2013-08-29 2013-12-04 宇龙计算机通信科技(深圳)有限公司 Text copying method and mobile terminal
CN106033407A (en) * 2015-03-19 2016-10-19 珠海金山办公软件有限公司 Data paste method and device
CN105426094A (en) * 2015-10-28 2016-03-23 小米科技有限责任公司 Information pasting method and apparatus
CN107643923A (en) * 2017-09-06 2018-01-30 维沃移动通信有限公司 The processing method and mobile terminal of Copy Info
CN107765958A (en) * 2017-10-30 2018-03-06 中国联合网络通信集团有限公司 One kind replicates method of attaching and system and user terminal
CN109343980A (en) * 2018-09-29 2019-02-15 广州视源电子科技股份有限公司 Cloud copying/pasting method, device, system, equipment and storage medium
CN110018762A (en) * 2019-03-15 2019-07-16 维沃移动通信有限公司 A kind of text clone method and mobile terminal
CN110008043A (en) * 2019-04-09 2019-07-12 中国联合网络通信集团有限公司 Method of attaching and affixing system

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
A Survey on Keypoint Based Copy-paste Forgery Detection Techniques;Anil Dada Warbhe 等;《Procedia Computer Science》;第61-67页 *
基于提取关键词的中文文档复制检测研究;麻会东 等;《计算机工程与科学》;第63-64、88页 *

Also Published As

Publication number Publication date
CN112099969A (en) 2020-12-18

Similar Documents

Publication Publication Date Title
CN113704243A (en) Data analysis method, data analysis device, computer device, and storage medium
CN101102565A (en) A processing method, device and equipment of user data in communication terminal
CN110135590B (en) Information processing method, information processing apparatus, information processing medium, and electronic device
CN112860416A (en) Annotating task assignment strategy method and device
CN110502513B (en) Data acquisition method, device, equipment and computer readable storage medium
CN110245059B (en) Data processing method, device and storage medium
CN108196902A (en) For showing the method and apparatus for advertisement of spreading its tail
CN112099969B (en) Text copying and pasting method, terminal equipment and edge server
CN106358220B (en) The detection method of abnormal contact information, apparatus and system
CN113221036B (en) Method and device for processing electronic bill mail
CN104182416A (en) File downloading system and method
CN111026613B (en) Log processing method and device
CN112818204A (en) Service processing method, device, equipment and storage medium
CN109600738B (en) User information updating method, device, equipment and storage medium
CN111553749A (en) Activity push strategy configuration method and device
CN110995570A (en) Pending approval message reminding method, system, storage medium and computer equipment
CN108268545B (en) Method and device for establishing hierarchical user label library
CN103472991A (en) Method, equipment and system for adding contacts
CN103778167A (en) Helpfile finding method and system
CN104424336A (en) Information processing method and electronic device
CN111221817B (en) Service information data storage method, device, computer equipment and storage medium
CN113468613A (en) Log file processing method and device
CN115080504A (en) File management method, terminal and storage medium
CN111881356A (en) Content recommendation method and device, electronic equipment and storage medium
CN112637432A (en) Extension identification method, system, equipment and storage medium under outbound scene

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
GR01 Patent grant
GR01 Patent grant