Do bulk replace of stl types.
This commit is contained in:
parent
521486be62
commit
c25a56ee19
531 changed files with 2274 additions and 2181 deletions
|
@ -2,8 +2,8 @@
|
|||
|
||||
#include "ByteTypes.h"
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include "String.h"
|
||||
#include "Vector.h"
|
||||
|
||||
class StringUtils
|
||||
{
|
||||
|
@ -18,7 +18,7 @@ public:
|
|||
static constexpr char SINGLE_QUOTE = '\'';
|
||||
static constexpr char COLON = ':';
|
||||
|
||||
static std::size_t countFirstConsecutiveHits(const std::string& input, char c);
|
||||
static std::size_t countFirstConsecutiveHits(const String& input, char c);
|
||||
|
||||
static bool isAlphaNumeric(char c);
|
||||
|
||||
|
@ -26,25 +26,25 @@ public:
|
|||
|
||||
static bool isSpace(char c);
|
||||
|
||||
static bool isWhitespaceOnly(const std::string& input);
|
||||
static bool isWhitespaceOnly(const String& input);
|
||||
|
||||
static std::string removeUpTo(const std::string& input, const std::string& prefix);
|
||||
static String removeUpTo(const String& input, const String& prefix);
|
||||
|
||||
static std::vector<std::string> split(const std::string& input);
|
||||
static Vector<String> split(const String& input);
|
||||
|
||||
static bool startsWith(const std::string& input, const std::string& prefix, bool ignoreWhitespace = false);
|
||||
static bool startsWith(const String& input, const String& prefix, bool ignoreWhitespace = false);
|
||||
|
||||
static std::string stripSurroundingWhitepsace(const std::string& input);
|
||||
static String stripSurroundingWhitepsace(const String& input);
|
||||
|
||||
static std::string stripQuotes(const std::string& input);
|
||||
static String stripQuotes(const String& input);
|
||||
|
||||
static std::vector<unsigned char> toBytes(const std::string& input);
|
||||
static Vector<unsigned char> toBytes(const String& input);
|
||||
|
||||
static std::string toLower(const std::string& s);
|
||||
static String toLower(const String& s);
|
||||
|
||||
static std::vector<std::string> toLines(const std::string& input);
|
||||
static Vector<String> toLines(const String& input);
|
||||
|
||||
static std::string toPaddedString(unsigned numBytes, unsigned entry);
|
||||
static String toPaddedString(unsigned numBytes, unsigned entry);
|
||||
|
||||
static std::string toString(const std::vector<unsigned char>& bytes);
|
||||
static String toString(const Vector<unsigned char>& bytes);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue