Search Results
Search type | Search syntax |
---|---|
Tags | [tag] |
Exact | "words here" |
Author |
user:1234 user:me (yours) |
Score |
score:3 (3+) score:0 (none) |
Answers |
answers:3 (3+) answers:0 (none) isaccepted:yes hasaccepted:no inquestion:1234 |
Views | views:250 |
Code | code:"if (foo != bar)" |
Sections |
title:apples body:"apples oranges" |
URL | url:"*.example.com" |
Saves | in:saves |
Status |
closed:yes duplicate:no migrated:no wiki:no |
Types |
is:question is:answer |
Exclude |
-[tag] -apples |
For more details on advanced search visit our help page |
Use this tag for code that parses its input, or that is source for a parser generator such as yacc or lex.
2
votes
1
answer
161
views
Library for parsing CSV data
Please review my C++ CSV parsing class.
I have some specific questions:
Should get_next_record be a static function? …
4
votes
1
answer
128
views
How can this C++ json library be improved
try_string(istrm, kvalue)) {
parse_status += "unexpected json parsing failure of name|";
return kvalue;
}
else { …
0
votes
2
answers
818
views
Binary protocol print utility in C++
Please review this protocol printer/decoder in C++.
I also attached a sample binary file to use to test.
Main program:
/*
program to parse a binary protocol layer with following form:
header: x byt …
4
votes
3
answers
2k
views
ini file parser in C++ - Take 2
Please review my ini file parser (and potentially some general config file formats).
This code is a continuation of this review:
ini file parser in C++
I have tried to incorporate all the suggestio …
13
votes
3
answers
13k
views
ini file parser in C++
Parsing the configuration into sections. …
2
votes
2
answers
2k
views
Replacing tokens in a text file with replaced text
This code parses a text file, replacing special tokens marked as $(token) with some replaced text. The $ symbol can be escaped by entering a double $$. In the example a user enters a text file conta …
4
votes
1
answer
119
views
String parsing/stripping code
I am mostly interested in how the parse_string function could be improved. But any comments on my test strategy also welcome.
The input is a string which can be either all digits in which case the r …
8
votes
2
answers
173
views
Token-finding function
I want to make sure find_value_from_key() is safe and efficient. My constraints are language C++, use of standard library ok, but cannot use Boost or any new C++11 features.
Can anyone offer any com …
3
votes
1
answer
844
views
Parse a contrived message protocol with first byte data length followed by data
I think this code to parse a contrived message protocol with first byte data length followed by data is a little ugly. Has anyone got any suggestions on how to make it more elegant and more robust?
…