Liam0205 / liam0205.github.io

Deployment of my weblog.
https://liam0205.github.io
35 stars 5 forks source link

在 C++ 中移除序列中连续重复的特定值 | 始终 #278

Open Liam0205 opened 5 years ago

Liam0205 commented 5 years ago

https://liam.page/2019/01/27/remove-consecutive-duplicates-in-Cxx/

最近在写 YTL 中的字符串相关辅助函数。实现到 split 函数时,希望能够实现类似 Python 当中的 str.split 方法的功能。 If sep is not specified or is None, a different splitting algorithm is applied: runs of consecutive whitespace are regarded as