Skip to content

Commit ad9847b

Browse files
committed
Updated README.md
1 parent 5f83410 commit ad9847b

File tree

1 file changed

+27
-25
lines changed

1 file changed

+27
-25
lines changed

README.md

Lines changed: 27 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,33 @@
22

33
[![Build Status](https://api.travis-ci.com/wsjcpp/wsjcpp-validators.svg?branch=master)](https://travis-ci.com/wsjcpp/wsjcpp-validators) [![Github Stars](https://img.shields.io/github/stars/wsjcpp/wsjcpp-validators.svg?label=github%20%E2%98%85)](https://github.com/wsjcpp/wsjcpp-validators/stargazers) [![Github Stars](https://img.shields.io/github/contributors/wsjcpp/wsjcpp-validators.svg)](https://github.com/wsjcpp/wsjcpp-validators/) [![Github Forks](https://img.shields.io/github/forks/wsjcpp/wsjcpp-validators.svg?label=github%20forks)](https://github.com/wsjcpp/wsjcpp-validators/network/members)
44

5+
## Integrate to your project
6+
7+
Just include this files:
8+
9+
- src.wsjcpp/wsjcpp_core/wsjcpp_core.cpp
10+
- src.wsjcpp/wsjcpp_core/wsjcpp_core.h
11+
- src/wsjcpp_validators.h
12+
- src/wsjcpp_validators.cpp
13+
14+
## Integrate via wsjcpp
15+
16+
```
17+
$ wsjcpp install "https://github.com/wsjcpp/wsjcpp-core:v0.2.3"
18+
$ wsjcpp install "https://github.com/wsjcpp/wsjcpp-validators:master"
19+
```
20+
21+
## Example usage
22+
23+
``` cpp
24+
25+
WsjcppValidatorUUID *pValidatorUUID = new WsjcppValidatorUUID();
26+
std::string sError = "";
27+
if (!pValidatorUUID->isValid("abcdef01-ABCD-EF23-1000-000000000001", sError)) {
28+
std::cout << sError << std::endl;
29+
}
30+
```
31+
532
Classes for data validation
633
734
## Completed classes
@@ -31,31 +58,6 @@ Classes for data validation
3158
- `WsjcppValidators::isValidIPv4(const std::string &sValue, std::string &sError)`
3259
- `WsjcppValidators::isValidIPv6(const std::string &sValue, std::string &sError)`
3360
34-
## Integrate to your project
35-
36-
Just include this files:
37-
38-
- src.wsjcpp/nlohmann_json/json.hpp
39-
- src/wsjcpp_validators.h
40-
- src/wsjcpp_validators.cpp
41-
42-
## Integrate via wsjcpp
43-
44-
```
45-
$ wsjcpp install https://github.com/wsjcpp/wsjcpp-validators:master
46-
```
47-
48-
## Example usage
49-
50-
``` cpp
51-
52-
WsjcppValidatorUUID *pValidatorUUID = new WsjcppValidatorUUID();
53-
std::string sError = "";
54-
if (!pValidatorUUID->isValid("abcdef01-ABCD-EF23-1000-000000000001", sError)) {
55-
std::cout << sError << std::endl;
56-
}
57-
```
58-
5961
## Example for your implementations
6062
6163
``` cpp

0 commit comments

Comments
 (0)