MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / parseFloat

Function parseFloat

Libraries/SerializationText/SerializationJson.cpp:201–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201bool parseFloat(StringSpan token, float& value)
202{
203 char buffer[64];
204 SC_TRY(copyTokenToBuffer(token, buffer));
205 char* end = nullptr;
206 value = ::strtof(buffer, &end);
207 return buffer < end;
208}
209
210bool appendFormatted(SerializationTextOutput& output, const char* format, int value)
211{

Callers 1

serializeMethod · 0.85

Calls 1

copyTokenToBufferFunction · 0.85

Tested by

no test coverage detected