Skip to content
#

cpp11

cpp logo

C++ is a popular and widely used mid-level language. It was designed as an extension of the C language.

Here are 2,961 public repositories matching this topic...

simdjson
jhalliday
jhalliday commented Feb 11, 2021

docs/tape.md contains example tape dump output for parse of jsonexamples/small/demo.json which begins as

0 r // pointing to 38 (right after last node)
1 { // pointing to next tape location 38 (first node after the scope)

However, when executing ./tools/json2json -d jsonexamples/small/demo.json the observed output is

0 : r // pointing to 39 (right after last node)
1 : { // pointing to ne

horenmar
horenmar commented Nov 25, 2020

They should take single matcher during construction, and their match method should take a generic range, using the new generic matcher support.

Expected usage:

REQUIRE_THAT(get_keys(), AllMatch(KeyPattern({1, 2, 3})));
REQUIRE_THAT(get_numbers(), NoneMatch(IsOdd{}));
REQUIRE_THAT(get_strings(), AnyMatch(Contains("webscale") && !Contains("MongoDB")));

the matching semantics

galkinvv
galkinvv commented Jan 21, 2020

The doc is great! Hoewever some areas are still missing.
C++11 intoduced raw string literals: https://en.cppreference.com/w/cpp/language/string_literal

It is useful in many different areas, like strings with quotes, multiline strings and for example windows paths without escaping backslashes:

const char win_path[] = R"(c:\some\unescaped\path)";

The same cppreference link als

Created by Bjarne Stroustrup

Released October 1985

Website
isocpp.org
Wikipedia
Wikipedia