CN113810268B - Message formatting method, device, equipment and storage medium - Google Patents

Message formatting method, device, equipment and storage medium Download PDF

Info

Publication number
CN113810268B
CN113810268B CN202111083118.1A CN202111083118A CN113810268B CN 113810268 B CN113810268 B CN 113810268B CN 202111083118 A CN202111083118 A CN 202111083118A CN 113810268 B CN113810268 B CN 113810268B
Authority
CN
China
Prior art keywords
text
message
parameter
formatting
text message
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
CN202111083118.1A
Other languages
Chinese (zh)
Other versions
CN113810268A (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.)
GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Guangzhou Duoyi Network Co ltd
Duoyi Network Co ltd
Original Assignee
GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Guangzhou Duoyi Network Co ltd
Duoyi Network 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 GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD, Guangzhou Duoyi Network Co ltd, Duoyi Network Co ltd filed Critical GUANGDONG LIWEI NETWORK TECHNOLOGY CO LTD
Publication of CN113810268A publication Critical patent/CN113810268A/en
Application granted granted Critical
Publication of CN113810268B publication Critical patent/CN113810268B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/04Real-time or near real-time messaging, e.g. instant messaging [IM]
    • H04L51/046Interoperability with other network applications or services
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L51/00User-to-user messaging in packet-switching networks, transmitted according to store-and-forward or real-time protocols, e.g. e-mail
    • H04L51/06Message adaptation to terminal or network requirements
    • H04L51/066Format adaptation, e.g. format conversion or compression

Abstract

The application discloses a message formatting method, a device, equipment and a storage medium, wherein the method comprises the following steps: acquiring an unconventional text message in a text message to be sent; acquiring format parameters preset during formatting; formatting the irregular text message according to the format parameter to obtain a formatted message corresponding to the irregular text message; and replacing the unconventional text message with the formatted message in the text message to be sent so as to complete formatting of the text message to be sent. The method solves the technical problems that the codes are not easy to understand and maintain, the length and the format of the information after the information is stored are fixed, and the extension and the modification are not easy because different non-conventional text content formats are different and are mixed with conventional texts in the existing information formatting method.

Description

Message formatting method, device, equipment and storage medium
The present application claims priority from chinese patent application No. 202110604146.7, with application date 2021, month 05, and 31.
Technical Field
The present disclosure relates to the field of computer networks, and in particular, to a method, an apparatus, a device, and a storage medium for formatting a message.
Background
With the development of network technology, games are becoming more and more popular as a way of recreation.
During the course of a game, chat is often performed between players. Messages in game chat channels have a variety of non-conventional text content such as shared links to information such as red packs, equipment, etc. These non-regular text contents are embedded directly into the regular text of the message, forming a message text. However, different non-conventional text content formats are different and are mixed with conventional text, codes are not easy to understand and maintain, and the length and format of a message after the message is stored in a disc are fixed and are not easy to expand and modify.
Disclosure of Invention
The application provides a message formatting method, a device, equipment and a storage medium, which solve the technical problems that the existing message formatting method is difficult to understand and maintain due to different non-conventional text content formats and is mixed with conventional texts, the length and format of a message after the message is stored in a disc are fixed, and the extension and modification are difficult.
In view of this, a first aspect of the present application provides a message formatting method, including:
acquiring an unconventional text message in a text message to be sent;
acquiring format parameters preset during formatting;
formatting the irregular text message according to the format parameter to obtain a formatted message corresponding to the irregular text message;
and replacing the unconventional text message with the formatted message in the text message to be sent so as to complete formatting of the text message to be sent.
Optionally, the format parameters include: a start flag, an end flag, and a text parameter value of the non-regular text message;
the text parameter value is determined according to preset position information of the parameter element corresponding to the non-conventional text in the parameter list.
Optionally, the formatting the irregular text message according to the format parameter to obtain a formatted message corresponding to the irregular text message specifically includes:
and replacing the non-conventional text message with the text parameter value, adding the start mark at the head end of the text parameter value, and adding the end mark at the tail end of the text parameter value to obtain a formatted message corresponding to the non-conventional text message.
Optionally, the preset position information is an arrangement sequence;
the configuration process of the text parameter value comprises the following steps:
acquiring the arrangement sequence of the parameter elements corresponding to the non-conventional text in the parameter list;
and taking the arrangement sequence as the text parameter value.
Optionally, the method further comprises:
in the formatted text message to be sent, carrying out regular matching on the formatted message to obtain the text parameter value in the formatted message;
inquiring the text parameter value in the parameter list by taking the text parameter value as an index parameter, and determining a parameter element corresponding to the text parameter value;
and replacing the text parameter value with the parameter element in the formatted text message to be sent.
Optionally, the parameter elements include: a parameter type and parameter data, wherein the parameter type is the text type of the unconventional text, and the parameter data is the text data of the unconventional text.
A second aspect of the present application provides a message formatting device, including:
a first acquiring unit configured to acquire an irregular text message in text messages to be transmitted;
the second acquisition unit is used for acquiring format parameters preset during formatting;
the first formatting unit is used for formatting the non-conventional text message according to the format parameters to obtain a formatted message corresponding to the non-conventional text message;
and the second formatting unit is used for replacing the irregular text message with the formatted message in the text message to be sent so as to complete formatting of the text message to be sent.
Optionally, the format parameters include: a start flag, an end flag, and a text parameter value of the non-regular text message;
the text parameter value is determined according to preset position information of the parameter element corresponding to the non-conventional text in the parameter list.
A third aspect of the present application provides a message formatting device comprising a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform any one of the message formatting methods described in the first aspect above according to instructions in the program code.
A fourth aspect of the present application provides a storage medium for storing program code for performing the message formatting method of any one of the first aspects above.
From the above technical method, the application has the following advantages:
according to the message formatting method, firstly, the unconventional text message in the text message to be sent is obtained, then, the format parameters preset during formatting are obtained, at the moment, the unconventional text message can be formatted according to the format parameters to obtain the formatted message corresponding to the unconventional text message, and then, the unconventional text message is replaced by the formatted message in the text message to be sent, so that the formatting of the text message to be sent is completed. The format of the non-conventional text message is also unified, so that the format of the non-conventional text message is unified, and the corresponding format of the text message to be sent containing the conventional text message is also unified, thereby solving the technical problems that the code is not easy to understand and maintain, the length and format of the message after the message is stored are fixed, and the expansion and modification are not easy because different non-conventional text content formats are different and are mixed with the conventional text in the existing message formatting method.
Drawings
In order to more clearly illustrate the technical method in the embodiments of the present application, the drawings that are needed in the description of the embodiments will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort to a person of ordinary skill in the art.
Fig. 1 is a flowchart of an embodiment one of a message formatting method in the embodiments of the present application;
fig. 2 is a flow chart of a second embodiment of a message formatting method in the embodiments of the present application;
fig. 3 is a schematic structural diagram of an embodiment of a message formatting device in the embodiment of the present application.
Detailed Description
The embodiment of the application provides a message formatting method, a device, equipment and a storage medium, which solve the technical problems that the existing message formatting method is difficult to understand and maintain due to different non-conventional text content formats and the fact that the codes are mixed with conventional texts, the length and the format of a message after the message is stored are fixed, and the extension and the modification are difficult.
In order that those skilled in the art will better understand the methods of the present application, the technical methods of the embodiments of the present application will be clearly and fully described below with reference to the accompanying drawings in which it is evident that the described embodiments are only some, but not all, of the embodiments of the present application. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the present disclosure, are within the scope of the present disclosure.
For ease of understanding, referring to fig. 1, fig. 1 is a flowchart of an embodiment one of a message formatting method according to an embodiment of the present application.
A message formatting method in this embodiment includes:
step 101, obtaining an irregular text message in the text message to be sent.
The message formatting method in this embodiment may be implemented in various situations where a message needs to be sent, such as situations where a server directly sends a message to a player client, where a player client sends a message to another player's client via the server, and so on.
Step 102, obtaining a format parameter preset in formatting.
In formatting an irregular text message, the formatting reference is a formatting parameter. The format parameters at the time of formatting are thus acquired first in the present application.
And 103, formatting the non-conventional text message according to the format parameters to obtain a formatted message corresponding to the non-conventional text message.
After the format parameters are obtained during the formatting, the above-mentioned non-conventional text message can be formatted according to the format parameters, and after the formatting, the formatted message corresponding to the non-conventional text message can be obtained.
And 104, replacing the unconventional text message with a formatted message in the text message to be sent so as to complete formatting of the text message to be sent.
In this embodiment, firstly, an irregular text message in a text message to be sent is obtained, then, a format parameter preset during formatting is obtained, at this time, the irregular text message can be formatted according to the format parameter to obtain a formatted message corresponding to the irregular text message, and then, in the text message to be sent, the irregular text message is replaced by the formatted message to complete formatting of the text message to be sent. The format of the non-conventional text message is also unified, so that the format of the non-conventional text message is unified, and the corresponding format of the text message to be sent containing the conventional text message is also unified, thereby solving the technical problems that the code is not easy to understand and maintain, the length and format of the message after the message is stored are fixed, and the expansion and modification are not easy because different non-conventional text content formats are different and are mixed with the conventional text in the existing message formatting method.
The above is an embodiment one of a message formatting method provided in the embodiments of the present application, and the following is an embodiment two of a message formatting method provided in the embodiments of the present application.
Referring to fig. 2, fig. 2 is a flow chart of a second embodiment of a message formatting method according to the embodiments of the present application.
A message formatting method in this embodiment includes:
step 201, obtaining an unconventional text message in a text message to be sent.
It should be noted that, the description of step 201 is the same as that of step 101 in the first embodiment, and specific reference may be made to the above description, which is not repeated here.
Step 202, obtaining a format parameter preset in formatting.
The format parameters in this embodiment include: a start flag, an end flag, and a text parameter value for the non-conventional text message; the text parameter value is determined according to preset position information of a parameter element corresponding to the non-conventional text in the parameter list. For example, the format parameter is $1, where $is used as a flag, the first $representing the beginning of the irregular text message, the second $representing the end of the irregular text message, and the middle number 1 representing that the parameter element of the irregular text message is the 1 st parameter element of the parameter list.
In one embodiment, the preset position information is an arrangement order;
the configuration process of the text parameter value comprises the following steps:
acquiring the arrangement sequence of the parameter elements corresponding to the non-conventional text in the parameter list;
the arrangement order is taken as the text parameter value.
It is understood that the parameter elements include: the parameter type is the text type of the non-regular text, and the parameter data is the text data of the non-regular text. For example: the parameter element is (iType, dData), where iType is a parameter type, such as a red packet, equipment, etc., dData is parameter data, and text data of the non-conventional text is arbitrarily expandable. Each parameter element in the parameter list at that time is a binary tuple, and the parameter list can be arbitrarily expanded along with the parameter elements.
And 203, replacing the non-conventional text message with a text parameter value, and adding a start mark at the head end of the text parameter value and an end mark at the tail end of the text parameter value to obtain a formatted message corresponding to the non-conventional text message.
For example, when the text message to be sent is: this is my new weapon and new weapon parameters, where for the non-conventional text message "new weapon parameters", the sent version of the existing method is: xxxxxx (weapon link). And the transmission version in this application is: $1, i.e., formatting the message to $1.
And 204, replacing the unconventional text message with a formatted message in the text message to be sent, and adding a parameter element corresponding to the formatted message in the text message to be sent so as to complete formatting of the text message to be sent.
Corresponding to when the formatted message corresponding to the new weapon parameter is $1$, according to the processing of step 204, the message obtained after the text message to be sent is formatted is: this is my new weapon $1.
Step 205, in the formatted text message to be sent, regular matching is performed on the formatted message, so as to obtain a text parameter value in the formatted message.
I.e. the text parameter value in the above described formatting message $1$ is 1.
And 206, inquiring the text parameter value in the parameter list by taking the text parameter value as an index parameter, and determining a parameter element corresponding to the text parameter value.
The first parameter element is obtained in the parameter list, assuming that the first parameter element is (1001, { "ID":10001, "LV":10 }). Where parameter type-1001 (i.e., 1001 represents weapon), parameter data- "ID" 10001, "LV" 10. Where "ID" 10001 represents weapon ID and "LV" 10 represents weapon grade.
Step 207, replacing the text parameter value with a parameter element in the formatted text message to be sent.
The message obtained after the text message to be sent after the formatting in step 204 is processed in step 207 is: this is my new weapon $ (1001, { "ID":10001, "LV":10 }) $.
The formatting method in the implementation has good expansibility, and along with the change of the requirements, the weapon can possibly advance and the head portrait can change colors, at the moment, only the corresponding key value is added in the parameter list, and new parameter types are added, for example, a calling animal is added, only the number and the parameter elements are added, and no change of the format is needed for the irrelevant sequence.
It can be understood that, sometimes, the text message to be sent includes a plurality of non-conventional text messages, and at this time, a plurality of formatted messages need to be spliced, and in particular, when the text message to be sent is spliced, parameter elements of the formatted messages are spliced to obtain the formatted message of the text to be sent. For example, new weapon+new head, [ (1001, { "ID":10001, "LV":10 }), { "ID":5} ].
Extensions and modifications after message storage: if data need to be added, deleted and changed to a certain type of irregular text message, after the formatted message object stored in the disk is analyzed, the default value of the corresponding key, the old data of the corresponding key and the old data of the conversion corresponding key are provided correspondingly for the analyzed parameter data, and the analysis format problem is not needed to be considered.
In this embodiment, firstly, an irregular text message in a text message to be sent is obtained, then, a format parameter preset during formatting is obtained, at this time, the irregular text message can be formatted according to the format parameter to obtain a formatted message corresponding to the irregular text message, and then, in the text message to be sent, the irregular text message is replaced by the formatted message to complete formatting of the text message to be sent. The format of the non-conventional text message is also unified, so that the format of the non-conventional text message is unified, and the corresponding format of the text message to be sent containing the conventional text message is also unified, thereby solving the technical problems that the code is not easy to understand and maintain, the length and format of the message after the message is stored are fixed, and the expansion and modification are not easy because different non-conventional text content formats are different and are mixed with the conventional text in the existing message formatting method.
The foregoing is a second embodiment of a message formatting method provided in the embodiments of the present application, and the following is an embodiment of a message formatting device provided in the embodiments of the present application.
Referring to fig. 3, the message formatting device in this embodiment specifically includes:
a first obtaining unit 301, configured to obtain an irregular text message in a text message to be sent;
a second obtaining unit 302, configured to obtain a format parameter preset during formatting;
a first formatting unit 303, configured to format an irregular text message according to a format parameter, so as to obtain a formatted message corresponding to the irregular text message;
a second formatting unit 304, configured to replace the non-regular text message with the formatted message in the text message to be sent, so as to complete formatting of the text message to be sent.
Further, the format parameters include: a start flag, an end flag, and a text parameter value for the non-conventional text message;
the text parameter value is determined according to preset position information of a parameter element corresponding to the non-conventional text in the parameter list.
Further, the first formatting unit 303 is specifically configured to replace the non-conventional text message with a text parameter value, and add a start flag at the head end of the text parameter value and an end flag at the tail end of the text parameter value, so as to obtain a formatted message corresponding to the non-conventional text message.
Further, the preset position information is an arrangement sequence;
the configuration process of the text parameter value comprises the following steps:
acquiring the arrangement sequence of the parameter elements corresponding to the non-conventional text in the parameter list;
the arrangement order is taken as the text parameter value.
It can be understood that the message formatting device in this embodiment further includes:
the matching unit is used for carrying out regular matching on the formatted message in the formatted text message to be sent to obtain a text parameter value in the formatted message;
the query unit is used for querying the text parameter value in the parameter list by taking the text parameter value as an index parameter, and determining a parameter element corresponding to the text parameter value;
and the replacing unit is used for replacing the text parameter value with the parameter element in the formatted text message to be sent.
Further, the parameter elements include: the parameter type is the text type of the non-regular text, and the parameter data is the text data of the non-regular text.
The message formatting device in this embodiment firstly obtains an unconventional text message in a text message to be sent, then obtains a format parameter preset during formatting, at this time, formats the unconventional text message according to the format parameter to obtain a formatted message corresponding to the unconventional text message, and then replaces the unconventional text message with the formatted message in the text message to be sent so as to complete formatting of the text message to be sent. The format of the non-conventional text message is also unified, so that the format of the non-conventional text message is unified, and the corresponding format of the text message to be sent containing the conventional text message is also unified, thereby solving the technical problems that the code is not easy to understand and maintain, the length and format of the message after the message is stored are fixed, and the expansion and modification are not easy because different non-conventional text content formats are different and are mixed with the conventional text in the existing message formatting method.
The embodiment of the application also provides an embodiment of the message formatting device, and the detection device in the embodiment comprises a processor and a memory; the memory is used for storing the program codes and transmitting the program codes to the processor; the processor is configured to perform the message formatting method of the foregoing embodiments according to instructions in the program code.
The present application further provides an embodiment of a storage medium, where the storage medium is configured to store program code, and the program code is configured to execute the message formatting method in the foregoing embodiment.
It will be clear to those skilled in the art that, for convenience and brevity of description, specific working procedures of the above-described systems, apparatuses and units may refer to corresponding procedures in the foregoing method embodiments, which are not repeated herein.
The terms "first," "second," "third," "fourth," and the like in the description of the present application and in the above-described figures, if any, are used for distinguishing between similar objects and not necessarily for describing a particular sequential or chronological order. It is to be understood that the data so used may be interchanged where appropriate such that embodiments of the present application described herein may be capable of operation in sequences other than those illustrated or described herein, for example. Furthermore, the terms "comprises," "comprising," and "having," and any variations thereof, are intended to cover a non-exclusive inclusion, such that a process, method, system, article, or apparatus that comprises a list of steps or elements is not necessarily limited to those steps or elements expressly listed but may include other steps or elements not expressly listed or inherent to such process, method, article, or apparatus.
It should be understood that in this application, "at least one" means one or more, and "a plurality" means two or more. "and/or" for describing the association relationship of the association object, the representation may have three relationships, for example, "a and/or B" may represent: only a, only B and both a and B are present, wherein a, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one of" or the like means any combination of these items, including any combination of single item(s) or plural items(s). For example, at least one (one) of a, b or c may represent: a, b, c, "a and b", "a and c", "b and c", or "a and b and c", wherein a, b, c may be single or plural.
In the several embodiments provided in this application, it should be understood that the disclosed systems, apparatuses, and methods may be implemented in other ways. For example, the apparatus embodiments described above are merely illustrative, e.g., the division of elements is merely a logical functional division, and there may be additional divisions of actual implementation, e.g., multiple elements or components may be combined or integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown as units may or may not be physical units, may be located in one place, or may be distributed over a plurality of network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in each embodiment of the present application may be integrated in one processing unit, or each unit may exist alone physically, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in software functional units.
The integrated units, if implemented in the form of software functional units and sold or used as stand-alone products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application may be embodied in essence or a part contributing to the prior art or all or part of the technical solution in the form of a software product stored in a storage medium, including several instructions to cause a computer device (which may be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the methods of the embodiments of the present application. And the aforementioned storage medium includes: u disk, mobile hard disk, read-Only Memory (ROM), random access Memory (Random Access Memory, RAM), magnetic disk or optical disk, etc.
The above embodiments are merely for illustrating the technical solution of the present application, and not for limiting the same; although the present application 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 technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (6)

1. A method of message formatting, comprising:
acquiring an unconventional text message in a text message to be sent;
acquiring format parameters preset during formatting;
formatting the irregular text message according to the format parameter to obtain a formatted message corresponding to the irregular text message;
replacing the unconventional text message with the formatted message in the text message to be sent so as to complete formatting of the text message to be sent;
wherein the format parameters include: a start flag, an end flag, and a text parameter value of the non-regular text message;
the text parameter value is determined according to preset position information of the parameter element corresponding to the non-conventional text in a parameter list;
formatting the non-conventional text message according to the format parameter to obtain a formatted message corresponding to the non-conventional text message, wherein the method specifically comprises the following steps:
replacing the non-conventional text message with the text parameter value, adding the start mark at the head end of the text parameter value, and adding the end mark at the tail end of the text parameter value to obtain a formatted message corresponding to the non-conventional text message;
the method further comprises the steps of:
in the formatted text message to be sent, carrying out regular matching on the formatted message to obtain the text parameter value in the formatted message;
inquiring the text parameter value in the parameter list by taking the text parameter value as an index parameter, and determining a parameter element corresponding to the text parameter value;
and replacing the text parameter value with the parameter element in the formatted text message to be sent.
2. The message formatting method as in claim 1, wherein the preset location information is an arrangement order;
the configuration process of the text parameter value comprises the following steps:
acquiring the arrangement sequence of the parameter elements corresponding to the non-conventional text in the parameter list;
and taking the arrangement sequence as the text parameter value.
3. The message formatting method of claim 1, wherein the parameter elements include: a parameter type and parameter data, wherein the parameter type is the text type of the unconventional text, and the parameter data is the text data of the unconventional text.
4. A message formatting device, comprising:
a first acquiring unit configured to acquire an irregular text message in text messages to be transmitted;
the second acquisition unit is used for acquiring format parameters preset during formatting;
the first formatting unit is used for formatting the non-conventional text message according to the format parameters to obtain a formatted message corresponding to the non-conventional text message;
a second formatting unit, configured to replace, in the text message to be sent, the irregular text message with the formatted message, so as to complete formatting of the text message to be sent;
the format parameters include: a start flag, an end flag, and a text parameter value of the non-regular text message;
the text parameter value is determined according to preset position information of the parameter element corresponding to the non-conventional text in a parameter list;
the first formatting unit is specifically configured to:
replacing the non-conventional text message with the text parameter value, adding the start mark at the head end of the text parameter value, and adding the end mark at the tail end of the text parameter value to obtain a formatted message corresponding to the non-conventional text message;
the apparatus further comprises:
the matching unit is used for carrying out regular matching on the formatted message in the formatted text message to be sent to obtain a text parameter value in the formatted message;
the query unit is used for querying the text parameter value in the parameter list by taking the text parameter value as an index parameter, and determining a parameter element corresponding to the text parameter value;
and the replacing unit is used for replacing the text parameter value with the parameter element in the formatted text message to be sent.
5. A message formatting device, the device comprising a processor and a memory;
the memory is used for storing program codes and transmitting the program codes to the processor;
the processor is configured to perform the message formatting method of any one of claims 1 to 3 according to instructions in the program code.
6. A storage medium for storing program code for performing the message formatting method of any one of claims 1 to 3.
CN202111083118.1A 2021-05-31 2021-09-15 Message formatting method, device, equipment and storage medium Active CN113810268B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN2021106041467 2021-05-31
CN202110604146 2021-05-31

Publications (2)

Publication Number Publication Date
CN113810268A CN113810268A (en) 2021-12-17
CN113810268B true CN113810268B (en) 2024-02-20

Family

ID=78895458

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111083118.1A Active CN113810268B (en) 2021-05-31 2021-09-15 Message formatting method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113810268B (en)

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174214A (en) * 2006-11-02 2008-05-07 国际商业机器公司 Method for displaying and formatting messages in web applications using javaserver faces
CN107659380A (en) * 2017-09-05 2018-02-02 上海歌尔泰克机器人有限公司 Message transmission, message read method, equipment and system
CN108255552A (en) * 2017-12-22 2018-07-06 中国平安人寿保险股份有限公司 PUSH message method of reseptance, device, equipment and computer readable storage medium
CN108924037A (en) * 2018-06-29 2018-11-30 维沃移动通信有限公司 A kind of display methods and mobile terminal of rich media communications RCS message
CN109460268A (en) * 2018-11-19 2019-03-12 中国银行股份有限公司 Application parameter configuration method, device and system
CN110119508A (en) * 2019-03-29 2019-08-13 腾讯科技(深圳)有限公司 Filter method, system and the equipment of chat messages
CN110443291A (en) * 2019-07-24 2019-11-12 阿里巴巴集团控股有限公司 A kind of model training method, device and equipment
CN111614972A (en) * 2020-05-27 2020-09-01 网易(杭州)网络有限公司 System message processing method and device for live application
CN111740895A (en) * 2020-06-16 2020-10-02 东软睿驰汽车技术(沈阳)有限公司 Message notification method and device
CN111859900A (en) * 2020-07-14 2020-10-30 维沃移动通信有限公司 Message display method and device and electronic equipment
CN112818654A (en) * 2021-02-18 2021-05-18 北京奇艺世纪科技有限公司 Message storage method, message generation method, message storage device, electronic equipment and computer readable medium

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101774422B1 (en) * 2015-08-17 2017-09-05 네이버 주식회사 Method and system for transmitting text messages
US20200153781A1 (en) * 2018-11-13 2020-05-14 Matthew Kent McGinnis Methods, Systems, and Apparatus for Text to Persistent Messaging

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101174214A (en) * 2006-11-02 2008-05-07 国际商业机器公司 Method for displaying and formatting messages in web applications using javaserver faces
CN107659380A (en) * 2017-09-05 2018-02-02 上海歌尔泰克机器人有限公司 Message transmission, message read method, equipment and system
CN108255552A (en) * 2017-12-22 2018-07-06 中国平安人寿保险股份有限公司 PUSH message method of reseptance, device, equipment and computer readable storage medium
CN108924037A (en) * 2018-06-29 2018-11-30 维沃移动通信有限公司 A kind of display methods and mobile terminal of rich media communications RCS message
CN109460268A (en) * 2018-11-19 2019-03-12 中国银行股份有限公司 Application parameter configuration method, device and system
CN110119508A (en) * 2019-03-29 2019-08-13 腾讯科技(深圳)有限公司 Filter method, system and the equipment of chat messages
CN110443291A (en) * 2019-07-24 2019-11-12 阿里巴巴集团控股有限公司 A kind of model training method, device and equipment
CN111614972A (en) * 2020-05-27 2020-09-01 网易(杭州)网络有限公司 System message processing method and device for live application
CN111740895A (en) * 2020-06-16 2020-10-02 东软睿驰汽车技术(沈阳)有限公司 Message notification method and device
CN111859900A (en) * 2020-07-14 2020-10-30 维沃移动通信有限公司 Message display method and device and electronic equipment
CN112818654A (en) * 2021-02-18 2021-05-18 北京奇艺世纪科技有限公司 Message storage method, message generation method, message storage device, electronic equipment and computer readable medium

Non-Patent Citations (3)

* Cited by examiner, † Cited by third party
Title
Swapneel S. Naik ; A.U Bapat.Message priority based routing protocol in MANETs.《2015 International Conference on Pervasive Computing (ICPC)》.2015,全文. *
标文通与XSL-FO的格式分析及转换;许振伟等;《计算机工程与设计》;20130816(第08期);全文 *
跨平台汇编语言集成系统的设计与实现;蔡启先;王智文;陈志成;;广西科学院学报(第04期);全文 *

Also Published As

Publication number Publication date
CN113810268A (en) 2021-12-17

Similar Documents

Publication Publication Date Title
EP1916608A1 (en) A method for sharing the game data and the system thereof
WO2017168240A1 (en) Calculating structural differences from binary differences in publish subscribe system
CN112380225B (en) Time sequence data synchronization method, device, equipment and storage medium
JP5753946B2 (en) Method and system for downloading font files
CN112565146B (en) Data receiving method, device and computer readable storage medium
CN113557748A (en) Cross-platform blocking of telepresence services
CN111669316A (en) Instant message processing method, device, equipment, server and storage medium
CN112835972B (en) Unstructured data synchronization method and system
CN107707594A (en) It is a kind of to realize the document transmission method and device accelerated on demand
CN113810268B (en) Message formatting method, device, equipment and storage medium
CN110912805B (en) Message reading state synchronization method, terminal, server and system
CN111460038A (en) Quasi-real-time data synchronization method and device
CN108462733A (en) A kind of file accelerates transmission method and device
CN108255659A (en) A kind of application program capacity monitoring method and its system
CN107454456B (en) Management control method and system for floating layer elements
CN105610849B (en) Method and device for generating sharing label and method and device for displaying attribute information
CN110442439B (en) Task process processing method and device and computer equipment
CN112765397A (en) Audio conversion method, audio playing method and device
CN110865973B (en) Data processing method and equipment and related device
CN115801927A (en) Message parsing method and device
CN102981811A (en) Processing method and device of user option data
CN114979094A (en) Data transmission method, device, equipment and medium based on RTP
CN113824724A (en) Method and device for judging tampering of sensor data of intelligent substation and storage medium
CN107111823A (en) For the method, equipment and computer program product by Web Publishing advertisement
CN113949640A (en) Service data processing method and device

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