如何将两个字符组合成一个字符?

发布于 2025-02-03 05:24:26 字数 322 浏览 5 评论 0原文

我正在构建一个文本编辑器应用程序。我想实现数字&像Apple的笔记应用程序一样的子弹。对于数字,我使用的是“ 1.” (数字 +全停止)。现在问题是当我尝试删除“ 1.”时使用BackSpace,我将不得不两次按下Backspace,因为“ 1.”被视为两个字符。当我的清单达到“ 10”时,这个问题变得更糟。或“ 100。”。

我一直在研究Unicode字符。有“ 1.”的Unicodes (\ u {2488}),“ 2” (\ u {2489}),但是这些是“ 20”。 (\ u {249b})。我找不到任何地方。

您能给我解决我的问题的解决方案或其他方法吗?

谢谢 !

I am building a text editor app. I want to implement numbers & bullets like apple's notes app. For numbers I am using "1." (number + full stop). Now the problem is when I try to remove "1." using backspace, I will have to press backspace twice because "1." treated as two characters. This problem becomes worse when my list reaches "10." or "100.".

I have been looking into unicode characters. There are unicodes for "1." (\u{2488}), "2." (\u{2489}), but these are upto "20." (\u{249B}) only. I could not find more than that anywhere.

Can you give me a solution or a different approach to solve my problem ?

Thank You !

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文