MCPcopy Create free account
hub / github.com/GaijinEntertainment/daScript / String

Method String

src/simulate/json_print.cpp:207–216  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

205 ss << int64_t(value);
206 }
207 virtual void String ( char * & value ) override {
208 if ( !ignoreNextFields.empty() && ignoreNextFields.back() ) return;
209 if ( unescape ) {
210 ss << "\"" << value << "\"";
211 } else if ( embed ) {
212 ss << value;
213 } else {
214 ss << "\"" << escapeString(value ? value : "",false) << "\"";
215 }
216 }
217 virtual void Double ( double & value ) override {
218 if ( !ignoreNextFields.empty() && ignoreNextFields.back() ) return;
219 ss << value;

Callers

nothing calls this directly

Calls 2

escapeStringFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected