MCPcopy Create free account
hub / github.com/OpenStarbound/OpenStarbound / insertWhitespace

Function insertWhitespace

source/core/StarFormattedJson.cpp:215–219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

213}
214
215void insertWhitespace(FormattedJson::ElementList& destination, FormattedJson::ElementLocation& at, String const& whitespace) {
216 if (whitespace == "")
217 return;
218 destination.insertAt(at++, WhitespaceElement{whitespace});
219}
220
221void insertWithWhitespace(FormattedJson::ElementList& destination, WhitespaceStyle const& style,
222 FormattedJson::ElementLocation& at, JsonElement const& element) {

Callers 1

insertWithWhitespaceFunction · 0.85

Calls 1

insertAtMethod · 0.80

Tested by

no test coverage detected