@brief Insert indentation to the serialization result. @param indent The indent width to be inserted. @param str A string to hold serialization result.
| 11053 | /// @param indent The indent width to be inserted. |
| 11054 | /// @param str A string to hold serialization result. |
| 11055 | void insert_indentation(const uint32_t indent, std::string& str) const noexcept { |
| 11056 | if (indent == 0) { |
| 11057 | return; |
| 11058 | } |
| 11059 | |
| 11060 | str.append(indent - get_cur_indent(str), ' '); |
| 11061 | } |
| 11062 | |
| 11063 | /// @brief Append an anchor property if it's available. Do nothing otherwise. |
| 11064 | /// @param node The target node which is possibly an anchor node. |
no test coverage detected