Lines Matching full:string
4 #include <string.h>
8 #include <string>
19 * @param[in] std::string - the unescaped JSON as a string literal
20 * @return std::string - escaped JSON string literal
22 std::string escapeJSON(const std::string& input);
37 * @brief Inserts key-value into a JSON string
39 * @param[in] jsonStr - The JSON string
44 void jsonInsert(std::string& jsonStr, const std::string& fieldName,
45 const std::string& fieldValue, uint8_t indentCount);
48 * @brief Inserts key-value array into a JSON string
50 * @param[in] jsonStr - The JSON string
55 void jsonInsertArray(std::string& jsonStr, const std::string& fieldName,
56 const std::vector<std::string>& values,
60 * @brief Converts an integer to a formatted string
61 * @param[in] format - the format of output string
63 * @return std::string - the formatted string
66 std::string getNumberString(const char* format, T number) in getNumberString()
70 std::string numString; in getNumberString()
82 std::string("getNumberString: invalid format string: ") + format); in getNumberString()
90 * @return std::string - trimmed string
91 * @param[in] std::string - string to trim
93 std::string trimEnd(std::string s);
102 * If nothing else, it will just return the name as a string like
105 * @return std::string - The component name
107 std::string getComponentName(uint16_t compID, uint8_t creatorID);