Timeline for How do I tokenize a string in C++?
Current License: CC BY-SA 4.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 26, 2020 at 13:38 | history | edited | Jonathan Mee | CC BY-SA 4.0 |
added 141 characters in body
|
Sep 22, 2017 at 21:45 | history | edited | Jonathan Leffler | CC BY-SA 3.0 |
Remove reference to Docs
|
May 23, 2017 at 12:26 | history | edited | URL Rewriter Bot |
replaced http://stackoverflow.com/ with https://stackoverflow.com/
|
|
May 5, 2017 at 14:21 | history | edited | Jonathan Mee | CC BY-SA 3.0 |
added 252 characters in body
|
Dec 14, 2016 at 14:13 | comment | added | Jonathan Mee | @AndonM.Coleman Right, I'm with you. Obviously if it's in the C11 standard the interface and implementation have constraints placed upon them which require identical behavior independent of platform. Now the only problem is ensuring that the C11 function is available to us across platforms. Hopefully the C11 standard will be something that C++17 or C++20 chooses to pickup. | |
Dec 14, 2016 at 13:48 | comment | added | Andon M. Coleman |
Merely that it's not as non-standard as people might otherwise believe. strtok_s is provided by both C11 and as a standalone extension in Microsoft's C runtime. There's a curious bit of history here where Microsoft's _s functions became the C standard.
|
|
Dec 14, 2016 at 12:10 | comment | added | Jonathan Mee |
@AndonM.Coleman But this is a c++ question, and in C++ #include <cstring> only includes the c99 version of strtok . So my assumption is that you're just providing this comment as supporting material, demonstrating the implementation specific availability of strtok extensions?
|
|
Dec 14, 2016 at 9:43 | comment | added | Andon M. Coleman |
strtok_s is C11 standard, by the way. strtok_r is a POSIX2001 standard. Between both of those, there's a standard re-entrant version of strtok for most platforms.
|
|
Sep 20, 2016 at 10:48 | history | edited | Jonathan Mee | CC BY-SA 3.0 |
added 1 character in body
|
Sep 20, 2016 at 10:48 | history | rollback | Jonathan Mee |
Rollback to Revision 1
|
|
S Sep 15, 2016 at 15:38 | history | suggested | caps | CC BY-SA 3.0 |
Let's not assume the bad practics of `using namespace std` in an answer the docs are going to point to
|
Sep 15, 2016 at 15:27 | review | Suggested edits | |||
S Sep 15, 2016 at 15:38 | |||||
Jul 26, 2016 at 16:51 | history | answered | Jonathan Mee | CC BY-SA 3.0 |