ESP32 HTTPS Server
util.hpp
1 #ifndef SRC_UTIL_HPP_
2 #define SRC_UTIL_HPP_
3 
4 #include <Arduino.h>
5 
6 #include <cmath>
7 #include <string>
8 
9 namespace httpsserver {
10 
16 uint32_t parseUInt(std::string const &s, uint32_t max = 0xffffffff);
17 
21 int32_t parseInt(std::string const &s);
22 
26 std::string intToString(int i);
27 
28 }
29 
33 std::string urlDecode(std::string input);
34 
35 #endif /* SRC_UTIL_HPP_ */
int32_t parseInt(std::string const &s)
Utility function: Parse a signed integer from a string
Definition: util.cpp:34
uint32_t parseUInt(std::string const &s, uint32_t max)
Utility function: Parse an unsigned integer from a string
Definition: util.cpp:5
Definition: ConnectionContext.cpp:3
std::string intToString(int i)
Utility function: Transform an int to a std::string
Definition: util.cpp:42