Text truncating method, text uploading method, text truncating device, and text uploading device
A truncation device and text technology, applied in the computer field, can solve the problems of truncation of garbled characters, loss of uploaded text information, and increased server burden, and achieve the effect of reducing the burden.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0022] Embodiments of the present invention will be described in detail below with reference to the accompanying drawings.
[0023] The embodiment of the present invention provides a text truncation method, such as figure 1 As shown, the method includes the following steps:
[0024] S11. Determine whether the number of bytes occupied by the text to be truncated is greater than the preset number of bytes to be truncated. When the number of bytes occupied by the text to be truncated is less than or equal to the number of bytes to be truncated, there is no need to truncate, and the truncation ends; When the number of bytes occupied by the truncated text is greater than the preset number of truncated bytes, go to step S12. Here, the text includes Chinese characters and foreign characters, wherein the Chinese characters occupy 2 bytes, and the foreign characters occupy 1 byte.
[0025] S12. Convert the text to be truncated into a byte array in the Chinese character coded characte...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com