- The Modern C++ Challenge
- Marius Bancila
- 61字
- 2021-06-25 22:01:29
27. Splitting a string into tokens with a list of possible delimiters
Write a function that, given a string and a list of possible delimiter characters, splits the string into tokens separated by any of the delimiters and returns them in an std::vector.
Example: input: "this,is.a sample!!" with delimiters ",.! ", output: {"this", "is", "a", "sample"}.
推薦閱讀
- Rust編程:入門、實戰(zhàn)與進(jìn)階
- Ceph Cookbook
- Python高級編程
- Podman實戰(zhàn)
- Data Analysis with Stata
- Mastering Apache Maven 3
- 軟件供應(yīng)鏈安全:源代碼缺陷實例剖析
- Learning Hadoop 2
- HTML5權(quán)威指南
- jQuery技術(shù)內(nèi)幕:深入解析jQuery架構(gòu)設(shè)計與實現(xiàn)原理
- 石墨烯改性塑料
- 從零開始:C語言快速入門教程
- Selenium WebDriver Practical Guide
- Hands-On Dependency Injection in Go
- C++面向?qū)ο蟪绦蛟O(shè)計教程