|
2 | 2 |
|
3 | 3 | [](https://travis-ci.com/wsjcpp/wsjcpp-validators) [](https://github.com/wsjcpp/wsjcpp-validators/stargazers) [](https://github.com/wsjcpp/wsjcpp-validators/) [](https://github.com/wsjcpp/wsjcpp-validators/network/members)
|
4 | 4 |
|
| 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 | +
|
5 | 32 | Classes for data validation
|
6 | 33 |
|
7 | 34 | ## Completed classes
|
@@ -31,31 +58,6 @@ Classes for data validation
|
31 | 58 | - `WsjcppValidators::isValidIPv4(const std::string &sValue, std::string &sError)`
|
32 | 59 | - `WsjcppValidators::isValidIPv6(const std::string &sValue, std::string &sError)`
|
33 | 60 |
|
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 |
| -
|
59 | 61 | ## Example for your implementations
|
60 | 62 |
|
61 | 63 | ``` cpp
|
|
0 commit comments