FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
esp32_https_server/src/ValidatorFunctions.cpp at master · playground/esp32_https_server · GitHub
playground
esp32_https_server
Repository navigation
Code
Pull requests
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
esp32_https_server
/
src
/
ValidatorFunctions.cpp
Copy path
More file actions
More file actions
Latest commit
History
History
History
14 lines (12 loc) · 288 Bytes
Breadcrumbs
esp32_https_server
/
src
/
ValidatorFunctions.cpp
Copy path
File metadata and controls
14 lines (12 loc) · 288 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#
include
"
ValidatorFunctions.hpp
"
namespace
httpsserver
{
bool
validateNotEmpty
(std::string s) {
return
s!=
"
"
;
}
bool
validateUnsignedInteger
(std::string s) {
for
(
size_t
x =
0
; x < s.
size
(); x++) {
if
(s[x]<
'
0
'
|| s[x]>
'
9
'
)
return
false
;
}
return
true
;
}
}
Back
|
FazBrowse Home
|
New Git URL