30#ifndef _PSTRINGUTILS_H_
31#define _PSTRINGUTILS_H_
67 static std::vector<std::string>
Split(
const std::string &str,
const std::string &delimiters);
78 static bool IsInt(
const std::string &str);
88 static bool IsFloat(
const std::string &str);
103 static int ToInt(
const std::string &str,
bool *ok =
nullptr);
117 static double ToDouble(
const std::string &str,
bool *ok =
nullptr);
127 static bool IsEqualNoCase(
const std::string &a,
const std::string &b);
137 static bool ContainsNoCase(
const std::string &haystack,
const std::string &needle);
147 static bool BeginsWithNoCase(
const std::string &str,
const std::string &prefix);
Lightweight, dependency-free string utilities (pure C++17).
static bool IsFloat(const std::string &str)
static bool ContainsNoCase(const std::string &haystack, const std::string &needle)
static int ToInt(const std::string &str, bool *ok=nullptr)
static bool BeginsWithNoCase(const std::string &str, const std::string &prefix)
static bool IsEqualNoCase(const std::string &a, const std::string &b)
static std::vector< std::string > Split(const std::string &str, const std::string &delimiters)
static double ToDouble(const std::string &str, bool *ok=nullptr)
static bool IsInt(const std::string &str)