Stun Server
Compliant with the latest RFCs including 5389, 5769, and 5780
discover the local host's own external IP address
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
stringhelper.h
Go to the documentation of this file.
1
/*
2
Copyright 2011 John Selbie
3
4
Licensed under the Apache License, Version 2.0 (the "License");
5
you may not use this file except in compliance with the License.
6
You may obtain a copy of the License at
7
8
http://www.apache.org/licenses/LICENSE-2.0
9
10
Unless required by applicable law or agreed to in writing, software
11
distributed under the License is distributed on an "AS IS" BASIS,
12
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
See the License for the specific language governing permissions and
14
limitations under the License.
15
*/
16
17
18
19
20
#ifndef STRINGHELPER_H
21
#define STRINGHELPER_H
22
23
#include <string>
24
25
namespace
StringHelper
26
{
27
28
bool
IsNullOrEmpty
(
const
char
* psz);
29
30
void
ToLower
(std::string& str);
31
void
Trim
(std::string& str);
32
33
int
ValidateNumberString
(
const
char
* psz,
int
nMinValue,
int
nMaxValue,
int
* pnResult);
34
}
35
36
37
38
#endif
/* STRINGHELPER_H */
39
StringHelper::ValidateNumberString
int ValidateNumberString(const char *psz, int nMinValue, int nMaxValue, int *pnResult)
Definition:
stringhelper.cpp:107
StringHelper::IsNullOrEmpty
bool IsNullOrEmpty(const char *psz)
Definition:
stringhelper.cpp:31
StringHelper::ToLower
void ToLower(std::string &str)
Definition:
stringhelper.cpp:37
StringHelper::Trim
void Trim(std::string &str)
Definition:
stringhelper.cpp:67
StringHelper
Definition:
stringhelper.cpp:29
common
stringhelper.h
Generated by
1.8.11