123456789101112131415161718192021222324252627282930313233343536 |
- // strutil.h :
- //
- #if !defined(AGD_STRUTIL_H__63CB60B8_AF48_4ACA_BCB7_188E70BB5286__INCLUDED_)
- #define AGD_STRUTIL_H__63CB60B8_AF48_4ACA_BCB7_188E70BB5286__INCLUDED_
- #ifdef __cplusplus
- #include <stdint.h>
- #include <string>
- #include <vector>
- #include <regex>
- /////////////////////////////////////////////////////////////////////////////
- // strutil.h - Declarations:
- std::string & strucase(std::string &s);
- std::string strucase(std::string s);
- std::string strucase(const char *ps);
- std::string & strlcase(std::string &s);
- std::string strlcase(std::string s);
- std::string strlcase(const char *ps);
- std::string & ltrim(std::string &s);
- std::string & ltrim(std::string &s, const char *sep);
- std::string & rtrim(std::string &s);
- std::string & rtrim(std::string &s, const char *sep);
- std::string & trim(std::string &s);
- std::string & trim(std::string &s, const char *sep);
- std::string trim(const std::string &s);
- std::string trim(const std::string &s, const char *sep);
- int strsplit(const std::string &str, const char *sep, std::vector<std::string> &vec);
- std::string strFormatByteSize(uint64_t s, unsigned int dec = 1);
- std::string formatString(const char *fmt, ...);
- /////////////////////////////////////////////////////////////////////////////
- #endif // __cplusplus
- #endif // !defined(AGD_STRUTIL_H__63CB60B8_AF48_4ACA_BCB7_188E70BB5286__INCLUDED_)
|