split-sms
Version:
An SMS message splitter with support for both GSM and Unicode.
113 lines • 8.74 kB
JSON
[{
"description": "Split 1 character message of 4-byte characters",
"message": "\uD83D\uDC33",
"parts": [{
"content": "\uD83D\uDC33",
"length": 1,
"bytes": 4
}],
"totalLength": 1,
"totalBytes": 4
},{
"description": "Split 3 character message of 4-byte and 2-byte characters",
"message": "\uD83D\uDC33\u2603\uD83D\uDC33",
"parts": [{
"content": "\uD83D\uDC33\u2603\uD83D\uDC33",
"length": 3,
"bytes": 10
}],
"totalLength": 3,
"totalBytes": 10
},{
"description": "Split full single message of 2-byte Basic Multilingual Plane characters",
"message": "\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603",
"parts": [{
"content": "\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603",
"length": 70,
"bytes": 140
}],
"totalLength": 70,
"totalBytes": 140
},{
"description": "Split full single message of 4-byte Supplementary Multilingual Plane characters",
"message": "\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33",
"parts": [{
"content": "\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33",
"length": 35,
"bytes": 140
}],
"totalLength": 35,
"totalBytes": 140
},{
"description": "Split full single message of mixed Supplementary Multilingual Plane and Basic Multilingual Plane characters",
"message": "\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603",
"parts": [{
"content": "\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603\uD83D\uDC33\u2603",
"length": 47,
"bytes": 140
}],
"totalLength": 47,
"totalBytes": 140
},{
"description": "Split 71 char multipart message of 2-byte Basic Multilingual Plane characters",
"message": "\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603",
"parts": [{
"content": "\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603",
"length": 67,
"bytes": 134
},{
"content": "\u2603\u2603\u2603\u2603",
"length": 4,
"bytes": 8
}],
"totalLength": 71,
"totalBytes": 142
},{
"description": "Split 70 char multipart message of 2-byte Basic Multilingual Plane characters with one 4-part Supplementary Multilingual Plane character at the 67th index",
"message": "\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\uD83D\uDC33\u2603\u2603\u2603",
"parts": [{
"content": "\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603\u2603",
"length": 66,
"bytes": 132
},{
"content": "\uD83D\uDC33\u2603\u2603\u2603",
"length": 4,
"bytes": 10
}],
"totalLength": 70,
"totalBytes": 142
},{
"description": "Split 35 char multipart message of 4-byte Supplementary Multilingual Plane characters with one 2-part Basic Multilingual Plane character at the 34th index",
"message": "\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\u2603\uD83D\uDC33",
"parts": [{
"content": "\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\u2603\uD83D\uDC33",
"length": 35,
"bytes": 138
}],
"totalLength": 35,
"totalBytes": 138
},{
"description": "Split 36 char multipart message of 4-byte Supplementary Multilingual Plane characters with one 2-part Basic Multilingual Plane character at the 34th index",
"message": "\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\u2603\uD83D\uDC33\uD83D\uDC33",
"parts": [{
"content": "\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\uD83D\uDC33\u2603",
"length": 34,
"bytes": 134
},{
"content": "\uD83D\uDC33\uD83D\uDC33",
"length": 2,
"bytes": 8
}],
"totalLength": 36,
"totalBytes": 142
},{
"description": "Split empty message",
"message": "",
"parts": [{
"content": "",
"length": 0,
"bytes": 0
}],
"totalLength": 0,
"totalBytes": 0
}]