Lines Matching refs:str
61 return ss.str(); in StringToHex()
71 return ss.str(); in StringToHex()
81 return ss.str(); in StringToHex()
84 std::string StringUtils::HexToString(const std::string &str) in HexToString() argument
89 if (str.length() <= 0) { in HexToString()
92 for (size_t i = 0; i < str.length() - 1; i += STEP_2BIT) { in HexToString()
93 std::string byte = str.substr(i, hexStep); in HexToString()
104 std::vector<uint8_t> StringUtils::HexToByteVector(const std::string &str) in HexToByteVector() argument
107 int sz = static_cast<int>(str.length()); in HexToByteVector()
112 …auto temp = static_cast<uint8_t>((HexCharToInt(str.at(i)) << HEX_OFFSET) | HexCharToInt(str.at(i +… in HexToByteVector()
127 std::u16string StringUtils::ToUtf16(const std::string &str) in ToUtf16() argument
129 if (str.empty()) { in ToUtf16()
133 return Str8ToStr16(str); in ToUtf16()