如何将两个字符组合成一个字符?
我正在构建一个文本编辑器应用程序。我想实现数字&像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 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论