Lines Matching refs:std

43  * @return Returns a new `std::string` object after conversion.
45 std::string UpperStr(const std::string& str);
52 * @return Returns a new `std::string` object after conversion.
54 std::string LowerStr(const std::string& str);
63 * @return Returns a new `std::string` object after replacement.
65 std::string ReplaceStr(const std::string& str, const std::string& src, const std::string& dst);
73 * @return Returns a new `std::string` object after trimming.
75 std::string TrimStr(const std::string& str, const char cTrim = ' ');
84 * @return Returns a new `std::string` object after conversion.
86 std::string DexToHexString(int value, bool upper = true);
94 * @param strs Indicates the `std::vector` object to store the results.
100 void SplitStr(const std::string& str, const std::string& sep, std::vector<std::string>& strs,
109 * @return Returns a new `std::string` object after conversion.
112 inline std::string ToString(T iValue)
114 return std::to_string(iValue);
126 bool StrToInt(const std::string& str, int& value);
136 bool IsNumericStr(const std::string& str);
146 bool IsAlphaStr(const std::string& str);
156 bool IsUpperStr(const std::string& str);
166 bool IsLowerStr(const std::string& str);
177 bool IsSubStr(const std::string& str, const std::string& sub);
187 * @param sub Indicates the `std::string` object to store the result string.
191 std::string::size_type GetFirstSubStrBetween(const std::string& str, const std::string& left,
192 const std::string& right, std::string& sub);
202 * @param sub Indicates the `std::vector` object to store all the result strings.
204 void GetSubStrBetween(const std::string& str, const std::string& left,
205 const std::string& right, std::vector<std::string>& sub);
215 bool IsSameTextStr(const std::string& first, const std::string& second);
225 bool IsAsciiString(const std::string& str);
232 * @param str16 Indicates a `std::u16string` object.
233 * @return Returns an empty `std::string` object if the operation fails.
235 std::string Str16ToStr8(const std::u16string& str16);
241 * @param str Indicates a `std::string` object.
242 * @return Returns an empty `std::u16string` object if the operation fails.
244 std::u16string Str8ToStr16(const std::string& str);
250 * @param str16 Indicates a `std::u16string` object.
253 int GetUtf16ToUtf8Length(const std::u16string& str16);
259 * @param str16 Indicates a `std::u16string` object.
265 int Char16ToChar8(const std::u16string& str16, char *buffer, int bufferLen);