readme is aware of namespace (#206)
This commit is contained in:
parent
477b058f74
commit
a592199068
|
@ -65,6 +65,7 @@ Under Windows, we build some tools using the windows/dirent_portable.h file (whi
|
||||||
|
|
||||||
```C
|
```C
|
||||||
#include "simdjson/jsonparser.h"
|
#include "simdjson/jsonparser.h"
|
||||||
|
using namespace simdjson;
|
||||||
|
|
||||||
/...
|
/...
|
||||||
|
|
||||||
|
@ -89,6 +90,7 @@ of memory allocation with each new JSON document:
|
||||||
|
|
||||||
```C
|
```C
|
||||||
#include "simdjson/jsonparser.h"
|
#include "simdjson/jsonparser.h"
|
||||||
|
using namespace simdjson;
|
||||||
|
|
||||||
/...
|
/...
|
||||||
|
|
||||||
|
@ -106,6 +108,7 @@ Though the `padded_string` class is recommended for best performance, you can ca
|
||||||
|
|
||||||
```C
|
```C
|
||||||
#include "simdjson/jsonparser.h"
|
#include "simdjson/jsonparser.h"
|
||||||
|
using namespace simdjson;
|
||||||
|
|
||||||
/...
|
/...
|
||||||
std::string mystring = ... //
|
std::string mystring = ... //
|
||||||
|
@ -125,6 +128,7 @@ or
|
||||||
|
|
||||||
```C
|
```C
|
||||||
#include "simdjson/jsonparser.h"
|
#include "simdjson/jsonparser.h"
|
||||||
|
using namespace simdjson;
|
||||||
|
|
||||||
/...
|
/...
|
||||||
|
|
||||||
|
@ -149,6 +153,7 @@ copy the files in your project in your include path. You can then include them q
|
||||||
#include <iostream>
|
#include <iostream>
|
||||||
#include "simdjson.h"
|
#include "simdjson.h"
|
||||||
#include "simdjson.cpp"
|
#include "simdjson.cpp"
|
||||||
|
using namespace simdjson;
|
||||||
int main(int argc, char *argv[]) {
|
int main(int argc, char *argv[]) {
|
||||||
const char * filename = argv[1];
|
const char * filename = argv[1];
|
||||||
padded_string p = get_corpus(filename);
|
padded_string p = get_corpus(filename);
|
||||||
|
|
Loading…
Reference in New Issue