MCPcopy Create free account
hub / github.com/ablab/spades / to_float

Function to_float

ext/include/llvm/ADT/StringExtras.h:199–208  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

197namespace detail {
198template <typename N>
199inline bool to_float(const Twine &T, N &Num, N (*StrTo)(const char *, char **)) {
200 SmallString<32> Storage;
201 StringRef S = T.toNullTerminatedStringRef(Storage);
202 char *End;
203 N Temp = StrTo(S.data(), &End);
204 if (*End != '\0')
205 return false;
206 Num = Temp;
207 return true;
208}
209}
210
211inline bool to_float(const Twine &T, float &Num) {

Callers 1

inputMethod · 0.85

Calls 2

dataMethod · 0.45

Tested by

no test coverage detected