#include <cstring>
#include <string>
#include <string_view>
#include <vector>
#include <iterator>
#include <cstdint>
Go to the source code of this file.
|
| std::string | format_date (double time) |
| |
| std::string | format_date_only (double time) |
| |
| std::string | format_distance (double dist, int precision=2) |
| |
| std::string | format_money (double cents, bool showCents=true) |
| |
| std::string | format_duration (double seconds) |
| |
| const char * | pi_strcasestr (const char *haystack, const char *needle) |
| |
| bool | starts_with (const std::string_view s, const std::string_view t) |
| |
| bool | ends_with (const std::string_view s, const std::string_view t) |
| |
| bool | starts_with_ci (const std::string_view s, const std::string_view t) |
| |
| bool | ends_with_ci (const std::string_view s, const std::string_view t) |
| |
| bool | compare_ci (const std::string_view s, const std::string_view t) |
| |
| std::string_view | read_line (std::string_view &s) |
| |
| std::string_view | strip_spaces (std::string_view &s) |
| |
| std::string | FloatToStr (float val) |
| |
| std::string | DoubleToStr (double val) |
| |
| std::string | AutoToStr (int32_t val) |
| |
| std::string | AutoToStr (int64_t val) |
| |
| std::string | AutoToStr (float val) |
| |
| std::string | AutoToStr (double val) |
| |
| int64_t | StrToSInt64 (const std::string &str) |
| |
| uint64_t | StrToUInt64 (const std::string &str) |
| |
| float | StrToFloat (const std::string &str) |
| |
| double | StrToDouble (const std::string &str) |
| |
| void | StrToAuto (int32_t *pVal, const std::string &str) |
| |
| void | StrToAuto (int64_t *pVal, const std::string &str) |
| |
| void | StrToAuto (float *pVal, const std::string &str) |
| |
| void | StrToAuto (double *pVal, const std::string &str) |
| |
| std::string | DecimalToDegMinSec (float dec) |
| |
◆ SIZET_FMT
◆ AutoToStr() [1/4]
| std::string AutoToStr |
( |
double |
val | ) |
|
◆ AutoToStr() [2/4]
| std::string AutoToStr |
( |
float |
val | ) |
|
◆ AutoToStr() [3/4]
| std::string AutoToStr |
( |
int32_t |
val | ) |
|
◆ AutoToStr() [4/4]
| std::string AutoToStr |
( |
int64_t |
val | ) |
|
◆ compare_ci()
| bool compare_ci |
( |
const std::string_view |
s, |
|
|
const std::string_view |
t |
|
) |
| |
|
inline |
◆ DecimalToDegMinSec()
| std::string DecimalToDegMinSec |
( |
float |
dec | ) |
|
Converts geographic coordinates from decimal to degree/minutes/seconds format and returns a string.
◆ DoubleToStr()
| std::string DoubleToStr |
( |
double |
val | ) |
|
◆ ends_with()
| bool ends_with |
( |
const std::string_view |
s, |
|
|
const std::string_view |
t |
|
) |
| |
|
inline |
◆ ends_with_ci()
| bool ends_with_ci |
( |
const std::string_view |
s, |
|
|
const std::string_view |
t |
|
) |
| |
|
inline |
◆ FloatToStr()
| std::string FloatToStr |
( |
float |
val | ) |
|
◆ format_date()
| std::string format_date |
( |
double |
time | ) |
|
◆ format_date_only()
| std::string format_date_only |
( |
double |
time | ) |
|
◆ format_distance()
| std::string format_distance |
( |
double |
dist, |
|
|
int |
precision = 2 |
|
) |
| |
◆ format_duration()
| std::string format_duration |
( |
double |
seconds | ) |
|
◆ format_money()
| std::string format_money |
( |
double |
cents, |
|
|
bool |
showCents = true |
|
) |
| |
◆ pi_strcasestr()
| const char * pi_strcasestr |
( |
const char * |
haystack, |
|
|
const char * |
needle |
|
) |
| |
◆ read_line()
| std::string_view read_line |
( |
std::string_view & |
s | ) |
|
|
inline |
◆ starts_with()
| bool starts_with |
( |
const std::string_view |
s, |
|
|
const std::string_view |
t |
|
) |
| |
|
inline |
◆ starts_with_ci()
| bool starts_with_ci |
( |
const std::string_view |
s, |
|
|
const std::string_view |
t |
|
) |
| |
|
inline |
◆ strip_spaces()
| std::string_view strip_spaces |
( |
std::string_view & |
s | ) |
|
|
inline |
◆ StrToAuto() [1/4]
| void StrToAuto |
( |
double * |
pVal, |
|
|
const std::string & |
str |
|
) |
| |
◆ StrToAuto() [2/4]
| void StrToAuto |
( |
float * |
pVal, |
|
|
const std::string & |
str |
|
) |
| |
◆ StrToAuto() [3/4]
| void StrToAuto |
( |
int32_t * |
pVal, |
|
|
const std::string & |
str |
|
) |
| |
◆ StrToAuto() [4/4]
| void StrToAuto |
( |
int64_t * |
pVal, |
|
|
const std::string & |
str |
|
) |
| |
◆ StrToDouble()
| double StrToDouble |
( |
const std::string & |
str | ) |
|
◆ StrToFloat()
| float StrToFloat |
( |
const std::string & |
str | ) |
|
◆ StrToSInt64()
| int64_t StrToSInt64 |
( |
const std::string & |
str | ) |
|
◆ StrToUInt64()
| uint64_t StrToUInt64 |
( |
const std::string & |
str | ) |
|