You can subscribe to this list here.
2009 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
(5) |
Dec
(1) |
---|---|---|---|---|---|---|---|---|---|---|---|---|
2010 |
Jan
|
Feb
(4) |
Mar
(1) |
Apr
(10) |
May
|
Jun
(1) |
Jul
|
Aug
(1) |
Sep
(4) |
Oct
|
Nov
|
Dec
|
2011 |
Jan
(1) |
Feb
(1) |
Mar
(2) |
Apr
|
May
(30) |
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
|
2012 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2013 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
(2) |
Aug
(2) |
Sep
|
Oct
(1) |
Nov
|
Dec
|
2014 |
Jan
|
Feb
|
Mar
|
Apr
(3) |
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2015 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
(1) |
2016 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(1) |
Nov
|
Dec
|
2018 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
|
|
1
|
2
(1) |
3
|
4
|
5
|
6
|
7
|
8
|
9
(1) |
10
|
11
|
12
|
13
|
14
|
15
|
16
(1) |
17
|
18
|
19
|
20
|
21
|
22
|
23
|
24
|
25
|
26
|
27
|
28
|
29
|
30
|
|
|
|
From: David S. <da...@st...> - 2014-04-16 00:02:33
|
The attached patch fixes a minor issue where the 'INCLUDE_DIRECTORIES' call uses 'CMAKE_SOURCE_DIR' instead of 'CMAKE_CURRENT_SOURCE_DIR'. This fix allows one to use the cmake build as part of a larger cmake build through the use of 'add_subdirectory'. Thanks, David Sankel -- David Sankel <da...@st...> Stellar Science Ltd Co - Stellar Scientific Software Solutions |
From: Ondrej T. <kon...@we...> - 2014-04-09 10:23:00
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, is there some choice, how to generate json output with right escaped unicode output like json in python. Here is my code: #include <stdio.h> #include <json/writer.h> #include <json/reader.h> #include <json/value.h> int main () { Json::FastWriter writer; Json::Reader reader; Json::Value root; const char * raw = "{\"Age\":34,\"Name\":\"Ond\\u0159ej T\\u016fma\"}"; if ( !reader.parse(raw, root)) { fprintf(stderr, "Json::Failed to parse data: %s", reader.getFormatedErrorMessages().c_str()); return 1; } printf("raw : %s\n", raw); printf("root: %s\n", writer.write(root).c_str()); return 0; } and here is my bad output: raw : {"Age":34,"Name":"Ond\u0159ej T\u016fma"} root: {"Age":34,"Name":"Ondřej Tůma"} How can i generate right output like in first line ? Thanks a lot! - -- Ondřej Tůma <mc...@ze...> www: http://ipv6.mcbig.cz jabber: mc...@ja... twitter: mcbig_cz -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) iEYEARECAAYFAlNFHegACgkQBmNIPxOnb/KrPgCdHRkFw85o68RC5HLbhTtqkISt kPIAn0GZJG9NamNyv9xG7Qkt/H4NXHo8 =no8F -----END PGP SIGNATURE----- |
From: 王远天 <xia...@ho...> - 2014-04-02 01:43:06
|
From: xia...@ho... To: jso...@li... Subject: Powerful Json::Path Date: Tue, 1 Apr 2014 09:54:45 +0000 Json::Value v;v["a"]["b"][0u] = 1; Json::Path p("a.b.c");const Json::Value &ref = p.resolve(v);// assert The above code with course an assert when call "resolve".That is because "resolve" do not process except conditions. const Value &Path::resolve( const Value &root ) const{ const Value *node = &root; for ( Args::const_iterator it = args_.begin(); it != args_.end(); ++it ) { const PathArgument &arg = *it; if ( arg.kind_ == PathArgument::kindIndex ) { if ( !node->isArray() || node->isValidIndex( arg.index_ ) ) { // Error: unable to resolve path (array value expected at position... } node = &((*node)[arg.index_]); } else if ( arg.kind_ == PathArgument::kindKey ) { if ( !node->isObject() ) { // Error: unable to resolve path (object value expected at position...) } node = &((*node)[arg.key_]); if ( node == &Value::null ) { // Error: unable to resolve path (object has no member named '' at position...) } } } return *node;} Users call "resolve" means they must take the risk of fatal error.so "Path" is useless. But Json::Path should be more powerfull.Suppose we have a function named "bad" in class Value, which specified the value itself is bad. User shall check it like below: Json::Value v;v["a"]["b"][0u] = 1; Json::Path p("a.b.c");const Json::Value &ref = p.resolve(v);// will not assert if (ref.bad()){ std::cout << "ref is bad." << std::endl; ref = 2; // any operation to bad value will cause assert} all we need to do is two step:1,declare a static member in Json::Value: static Value bad; bool bad() const { return &bad == this; }2,replace each "// Error: *" line to return Value::bad; further morewe could use Json::Path to resolve the exact type value, Like this: Json::Value v;v["a"]["b"][0u] = 1; Json::Path p("a.b[0]");Json::Integer i = p.resolveInt(v); if (i.bad()){ //do something} Wish this features will be added to new version. |